i would like to access tweet replies older than month

i have sandbox full archive can i fetch tweet replies using that

if not how can i get tweet replies to my own tweets older than month

You won’t be able to query for specific replies, but you can query for (to:user OR user) -from:user to get all replies to you or mentions of you, which should cover all replies too.

Great can you mention any endpoint or documentation

Oh, sure - i meant using Premium Search Tweets: Full-Archive API | Docs | Twitter Developer Platform the sandbox full archive. The query is set with the query parameter Premium search APIs | Docs | Twitter Developer Platform

You could try twarc1 (en) - twarc twarc in the command line to make calls to Premium APIs

okay thanks is there any limitations in this call ? api call limitation or tweet count limitations ?

Premium API has limitations on the API Calls, you pay for a number of calls in a month, and each call can retrieve a max of 500 tweets or 30 days worth of tweets, whichever is smaller, and so paginating results uses up multiple calls - so it’s worth using the counts endpoint first to plan your collection.

i am not using premium or purchased version can you tell me limitation for this environment

Also i am using this endpoint with query=@userName and not getting all the tweets

Do i have any other option to get older tweet instead of using this endpoint : https://api.twitter.com/1.1/tweets/search/fullarchive

The limits for sandbox are limited query operators that are marked “Sandbox” only Operators by product | Docs | Twitter Developer Platform - and it’s 100 tweets or 30 days worth of tweets, whichever is smaller per call, and you only get 50 calls per month.

Maybe you’re looking for from:username instead?

Without academic access, no.

i want to get all the replies for one user so using @username and not getting all the replies where user is mentioned

i have used query: @InfinniumTest and this is the reply where user is mentioned but it is not returning in the api call

What’s the tweet ID for that? And what’s the full code snippet that you’re using and is the query just @InfinniumTest and nothing else or are there other operators and parameters set? Is this 30day or fullarchive endpoint? The default for fullarchive if start and end dates are not set is to return the last 30 days worth of tweets, so it may be that.

i am now using query to:{userName} OR @userName in query

using full archive endpoint

i have given from date 200603210000
and end date to today

also i am facing error in using since_id

The tweet from your screenshot isn’t there it seems.

since_id is not a valid parameter for the v1.1 Premium API: Premium search APIs | Docs | Twitter Developer Platform

If you try using twarc for example, do you get the same errors? twarc1 (en) - twarc

eg using the 30day endpoint to test, assuming myenv is the name of your 30day environment defined on https://developer.twitter.com/en/account/environments because there’s definitely results there:

twarc search "to:InfinniumTest OR @InfinniumTest" --30day "myenv" --from_date "2020-08-01" --to_date "2022-08-22" --limit 100 > tweets.jsonl