I have been trying for a while now to fetch only tweets from e.g Elon Musk. I follow the suggested structure in the twitter documentation.
This is my search query
This is how twitter suggest you put your search query;
You want: popular Tweets from @Cmdr_Hadfield mentioning the hashtag #nasa
Your search URL is: https://api.twitter.com/1.1/search/tweets.json?
Can someone tell me what I’m doing wrong?
from:elonmusk should do the trick.
Nice, worked like a charm
Happy that it worked. Have fun!
This seems to only return the most recent tweets - I think within 7 days based on twitter API docs. Any idea how to get all tweets (spanning back 5+ years)?
Did you set the Return All option to true? Also, there is an additional optional field that you can set to specify the date. Let me know if this helps
Hey Harshil. Yes I believe so.
It appears that this is a limitation with Twitter v2 API - Search Tweets introduction | Docs | Twitter Developer Platform
Standard developer accounts can only access seven days of tweets as it says there. You need a researcher/academic developer account to access more.
Is this also your understanding of the twitter api?
Hey @automatron, according to their documentation it seems like historical data is only available for Research/Academic purposes. Hence, you need to have a developer account to access them.