Query Website Data via REST Platform

Hi,

I was successfully able to query and show web data in my HA dashboard via the REST platform like this:

  - platform: rest
    resource: https://api.printables.com/graphql/
    method: POST
    payload: '{"operationName":"UserProfileSocial","variables":{"id": "101152"},"query":"query UserProfileSocial($id: ID!) {\n  user(id: $id) {\n    publicUsername\n    downloadCount\n}}" }'
    name: Prusa Download Counter
    value_template: "{{ value_json.data.user.downloadCount }}"
    headers:
      Content-Type: application/json

It shows me a download counter from my printables website profile:

image

Now I would like to do the same from a different website → Makerworld https://makerworld.com/en/@pixelwave

Any idea how to do that from a generic website … I do not think MakerWorld supports GRAPHQL like printables …

I figured I can use the Web Scrape integration.

The printables scrape returns a result:
https://www.printables.com/@pixelwave

body > div > div.layout.container-xxl.svelte-1lrirdz > aside > div > div > div.profile-sidebar.svelte-156i68x > div > div > div.stats.svelte-156i68x > div.stats-row.inherit-color.svelte-156i68x > div:nth-child(1) > span

But the Makerworld scrape does not return a result?
https://makerworld.com/en/@pixelwave

#userInfo_wrap > div.MuiStack-root.portal-css-ir5o7x > div > div:nth-child(3) > span