Hello there! :wave:
I’m working on a Twitter app that uses the Reverse Chronological API, the issue I’m having is with the start_time and end_time filters when I add them I always get empty results ({"meta"=>{"result_count"=>0}})
I know for sure that this user has tweets on the period so I’m in doubt if this is a problem on my side, supposedly I’m using the proper format for dates. Can you help me understand what the problem is?

Example request:

https://api.twitter.com/2/users/188842347/timelines/reverse_chronological?tweet.fields=attachments%2Cauthor_id%2Cconversation_id%2Ccreated_at%2Centities%2Cid%2Cin_reply_to_user_id%2Cpublic_metrics%2Creferenced_tweets&user.fields=id%2Cname%2Cprofile_image_url%2Curl%2Cusername%2Cverified&exclude=replies&expansions=author_id%2Creferenced_tweets.id.author_id&start_time=2022-01-01T09%3A00%3A00Z&end_time=2022-06-09T18%3A00%3A00Z

Response:

{"meta"=>{"result_count"=>0}}

Relevant fields unencoded:

"start_time": "2022-01-01T09:00:00Z",
"end_time": "2022-06-09T18:00:00Z"

PS: If I include max_results and remove the two time filters it works. Tried different combinations and dates and it looks like having at least one of the filters results in empty results.

Tried with the TypeScript sdk and I get the same issue, empty results when passing either “start_time” or “end_time”. Could it be a format issue? When I try another format I get errors in the format though :man_shrugging: I’m confused with this one, please help :slight_smile:

I think this might be related:

This endpoint has a per-user rate limit of 180 requests per 15-minute window and returns 800 of the most recent Tweets. Timelines introduction | Docs | Twitter Developer Platform

I think if the user has 800 tweets in their timeline that are more recent, you will not be able to go back that far.

Tried with a more recent time window and now I see some results… Thanks for bringing this up I didn’t understand very well how the start and end_times worked :+1:

1 Like