Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter follower count number

Tags:

php

curl

twitter

Is the only way to get the follower count number in plain text is using cURL? or does the twitter API provides any such option?

like image 810
user1117313 Avatar asked Dec 30 '11 19:12

user1117313


People also ask

How do I count my Twitter followers?

Click on your profile image (top left) to go to your profile information. In the top right, you will see your follower count rounded to the nearest hundred. Click on that and you will see a list of all your followers along with an exact follower count.

Why can't I follow more than 5000 on Twitter?

Every Twitter account can follow up to 5,000 accounts. Once you reach that number, you may need to wait until your account has more followers before you can follow additional accounts. This number is different for each account and is automatically calculated based on your unique ratio of followers to following.

How many people have over 1000 Twitter followers?

Inside Twitter: An In-Depth Look Inside the World of Twitter The Facts: 92.4% of Twitter users follow less than 100 people, while 97.8% of Twitter users follow less than 400 people. At the other end of the extreme, 0.94% of Twitter users follow more than 1,000 people.

Is 5000 followers on Twitter a lot?

Five thousand followers indicates that you have a successful and popular account (if you aren't famous) but it's not significant in any other way. Only 2.05% of Twitter accounts have more than 1,000 followers and the vast majority, 95.8%, have less than 500 followers.


2 Answers

https://api.twitter.com/1/users/lookup.json?screen_name=tvdw (my profile, just replace the screen name)

Also available as XML: https://api.twitter.com/1/users/lookup.xml?screen_name=tvdw

Obtaining it in PHP:

$data = json_decode(file_get_contents('https://api.twitter.com/1/users/lookup.json?screen_name=tvdw'), true);
echo $data[0]['followers_count'];
like image 98
Tom van der Woerdt Avatar answered Sep 27 '22 22:09

Tom van der Woerdt


In API version 1.1 you can use: https://dev.twitter.com/docs/api/1.1/get/users/show

the 'followers_count' field should contain the follower count number.

In API version 1 which is deprecated you can use: https://dev.twitter.com/docs/api/1/get/users/show

like image 20
myyk Avatar answered Sep 27 '22 21:09

myyk