Twitter Search

Hey guys :v:
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

from%3Aelonmusk

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? 
q=from%3ACmdr_Hadfield%20%23nasa&result_type=popular

Can someone tell me what I’m doing wrong?

from:elonmusk should do the trick.

Nice, worked like a charm :+1:

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)?

hey @automatron!

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 :slight_smile:

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.