Twitter Followers Count Via REST API


#1

Hi ,

I would like to get all the followers count for my twitter account .
Can you please help me with api ?

Regards
Ashish


#2

Using the GET endpoint “users/show” and “users/lookup” should show a field called “followers_count”.


#3

Fyi


#4

The endpoint : https://api.twitter.com/1.1/users/show.json?screen_name=[HERE]&oauth_consumer_key=[HERE]&oauth_token=[HERE].
I am placing the Consumer Key(API Key) and Access Token generated but the request sends me {Error Code: 215 “Bad Authentication Data”}. Is there something wrong with the headers for authorization or something else?


#5

Yes, something is wrong. You should not add oauth parameters to the request like this. You need to form valid OAuth headers. Check the documentation.


#6