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

Asked Jul 6, 2024·1 reply·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

1 reply

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

js
$(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"