Answer the question
In order to leave comments, you need to log in
How to get the number of followers from social networks (there is an example site)?
Hello.
I want to create a fan site on the example of this www.temnikova.ru
I need to extract the number of subscribers from social networks in real time.
My assumption is that it is done using the API of each network or a grabber or a parser + cron (updates the data).
I need to end up inserting something like this into the page <div id="youtube"></div>
using PHP or JS or something like that. And the result is the number of subscribers on YouTube.
Please advise at least in what direction to move and whether this statistic will greatly affect the page load time.
I ask for advice or a ready-made solution, if any.
Thanks in advance to everyone for your attention.
================================================= =
UPD: Is it possible to take all this data? Or do you need permission (access token) in some social networks from the owner of the profile (for example, Instagram)?
Answer the question
In order to leave comments, you need to log in
For VK user subscribers, use the method
with the fields = followers_count
parameter
For a VK group
with the fields = members_count parameter
For a OK group
with
the
fields = members_count parameter Youtube and Instagram need to get a key for API requests. Read documentation: https://developers.facebook.com/docs/graph-api/ref... https://dev.twitter.com/rest/reference/get/users/show https://developers.google. com/youtube/v3/docs/chan...
https://www.instagram.com/developer/endpoints/user...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question