How do I specify specific data from an API?

I am attempting to extract specific data from the Steam API so far I have been able to filter the results, here is an example;

Which gives me;

{"218620":
  {"success":true,
   "data":
     {"metacritic": 
       {"score":79,"url":"https:\/\/www.metacritic.com\/game\/pc\/payday-2?ftag=MCD-06-10aaa1f"}
     }
  }
}

However, what I want is just the numerical score, so in this instance, it would just display ‘79’.

I am presenting the data using an iframe which is why it needs to call the specific value. If anyone has any suggestions about how I can do this or maybe offer up an alternative way to parse the data.

My Shopify skills are limited (4 Shopify Developer Skills & Their Practical Application | Adeva) so this might seem like a basic question or a rather rudimentary way to extract the data so apologies in advance. I am also adding the code to Shopify which is PHP based if that helps.

I know https://steamspy.com/api.php have their own API which offers similar data would it be easier to collect it from there instead of directly from the Steam Store?

Not sure if you are posting on the right forum.
Is this about SketchUp?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.