I need to get the following stats for a twitter account on daily basis:
Likes per day
Replies per day
Retweets per day
Followers per day
Just like facebook graph API request "/me/insights/page_impressions?period=day"
I am trying twitter ads api but its not working. Can someone please tell me exact api and query.
Thanks in advance!!
This is possible using the commercial Twitter Engagements API from Gnip. The Ads API is for promoted content.
Related
I want to pull tweets from an authenticated user's home timeline (user + people the user follows) of past 7 days. How can I do this? The documentation of GET statuses/home_timeline only provides a count parameter and some other parameters like since_id and max_id which I don't really understand.
Documentation: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/timelines/api-reference/get-statuses-home_timeline
Is there any other endpoint which might help? Or is it just impossible to do so?
The recent search in the Twitter v2 API can do what you are asking.
Here is an example:
https://api.twitter.com/2/tweets/search/recent?query=from:username is:verified&max_results=100
The Research Search API can only search in the last 7 days by default. You can return a maximum of 100 tweets per request.
Docs:
https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-rule
Is there a way to get tweets of users who i am following using Account Activity API?
Or there is any way to get tweets of specific users?
Yes, absolutely! If your account is subscribed to the AA API then you should see Tweets mentioning you on the webhook. If you are interested in Tweets from specific users then use the timelines API.
I have access to Twitter's API, and I'm using the Tweepy module to query tweets. However, I can't figure out how to search tweets in a specific time slot, like march 1st - july 20th.
The Twitter API only allows you to query back in time for 7 days, see the API documentation. That is, unless you pay for that extra access.
Is there a way to list the retweets a Twitter account did between two dates? I need to list retweets from 13-11-2015 to 20-11-2015 of an specific account for a project and I can't get them.
Not in the free Twitter API - the search functionality is limited to a window of 7 days in the past. For full historical search capability you need to look at the commercial Gnip API offerings from Twitter.
Is there a way in the Twitter API v1.1 to get the id's of all the users that replied, favorited and retweeted to a particular tweet using its id?
I've searched in older posts but I didn't find an simple way to do it.
Thanks
According to Twitter Staff Episod,
It's not possible with the API after the fact for a tweet that has more than 100 retweets. You would need to collect them in real time as they happen to collect them all. The Streaming API is the best bet for tracking such things.
So, you can only get 100 Retweets ID of a tweet through REST API. Move to Streaming API to get all the Retweets ID but you can't get the past data. You can only get data in Streaming API from present - to - future.