Hi folks, I’m doing the following query to the Twitter API v2 to get all the user tweets from thread.
Thread query:
https://api.twitter.com/2/tweets/search/recent?query=conversation_id:${conversationId}+from:${username}&expansions=author_id,attachments.media_keys&user.fields=name,profile_image_url&tweet.fields=created_at,source,entities,public_metrics&media.fields=preview_image_url,url
For some conversations like this: /growth_student/status/1393245462954713089 it returns all the tweets but for this other one /searchbrat/status/1391043242901262343 it does not work and returns 0.
Not sure what can cause this since both tweets look threads
.
Thanks for your help in advance.
To use conversation_id: query parameter, you also have to specify start_time parameter API reference | Docs | Twitter Developer Platform
Also, searchbrat/status/1391043242901262343 is from May 8th, which is more than 7 days ago - so it will not have results in Standard v2 Access, only Academic Access can retrieve the full archive in v2.
2 Likes
@IgorBrigadir ahh I see.
So, if a thread is from 1 year ago I would not be able to access it right? Is it working on the API V1?
No, on v1.1 the only way to get old tweets is with Premium Search Tweets: Full-Archive API | Docs | Twitter Developer Platform and that doesn’t have conversation_id operator Operators by product | Docs | Twitter Developer Platform so you’ll have to use to:user and then get replies of replies that way too.
1 Like
So right now there is no way to “load” a thread from 2 weeks ago, is that right?