How to get a value from this api (similar to one of my other posts)

How do i get the “channels.counts[1].count” from here? https://studio.nia-statistics.com/api?id=UClOyuxZvQkoHoIn15kNbkUw

The post this is very close to my question: How do I get a specific value from an api?

not sure which value u’re after, but u needa get it into a object variable first…

$(eval let api=$(urlfetch json https://studio.nia-statistics.com/api?id=UClOyuxZvQkoHoIn15kNbkUw);)

and then after the semicolon u just gotta type “api” a dot and whichever piece of info u want from the api… for example if u want the number of likes it would be “api.channels.counts.3.count”

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