Hi,
I am trying to use the Twitter Premium API to find older posts of a specific user and it seems this should be possible within the Sandbox Full archive environment.
There seems to still be some limitation somewhere which i cannot find, or maybe I am just doing something wrong here?
With the standard API, through user_timeline, I can find the latest 3200 tweets for this specific user, giving me the oldest tweet from December 2016. But, with the premium API Full Archive, this tweet is nowhere to be found, and it seems I can still only find tweets from the past 30 days.
Standard API user_timeline request:
GET 1.1/statuses/user_timeline.json?screen_name=profreidd&max_id=807297844936533404
Response:
[
{
"created_at": "Fri Dec 09 13:55:59 +0000 2016",
"id": 807222261690368000,
"id_str": "807222261690368000",
*** omitted rest of data for clarity ***
}
]
Premium API Full Archive request:
POST 1.1/tweets/search/fullarchive/test.json
{
"query": "from:profreidd",
"fromDate": 201612080000,
"toDate": 201612100000
}
Response:
{
"results": [],
"requestParameters": {
"maxResults": 100,
"fromDate": "201612080000",
"toDate": "201612100000"
}
}
As you can see, the first request returns a tweet from December 09, 2016, but from the premium API fullarchive with dates from 2016-12-08 to 2016-12-10 that tweet or any other tweets are not found.
The API works though, I can find the world’s first tweet by @jack with
POST 1.1/tweets/search/fullarchive/test.json
{
"query": "from:jack",
"toDate": 200603220000,
"fromDate": 200603210000
}