For personal purpose, I need to know the number of followers, likes, subscribers, etc…
The examined social platforms are:
- Facebook (number of likes)
- Instagram (number of followers)
- Youtube (number of subscribers)
- Twitter (number of followers)
Let’s start.
Facebook – likes
https://graph.facebook.com/?ids=[URL_TO_ANALYZE]&fields=engagement&access_token=[TOKEN]
To use Facebook, you need to create a new app and use the generated token.
More on developer.facebook.com.
Instagram – Followers
https://www.instagram.com/dilettaleotta/?__a=1
Instagram is simple, you need to parse the returned Json. The field is called “edge_followed_by”.
Youtube – Subscribers
Same as Facebook, you need to register your new app and create a new Key.
More info here: console.cloud.google.com
Twitter – Followers
https://cdn.syndication.twimg.com/widgets/followbutton/info.json?screen_names=lupasca
Easy also for Twitter. Parse json and get values!
Field is called “followers_count”.
Enjoy.