The Twitter Search API allows you to refine your queries using advanced search parameters directly within the query field. These parameters, including date and time filters, are appended as part of the search string to extract highly specific data. Below is a guide on how to utilize them effectively.
since:[YYYY-MM-DD]since:2025-01-06 fetches tweets from January 6, 2025, onwards.
until:[YYYY-MM-DD]until:2025-01-07 fetches tweets up to January 7, 2025.
since_time:[UNIX_TIMESTAMP]since_time:1736169600 fetches tweets starting from 2025-01-06 00:00:00 UTC.
until_time:[UNIX_TIMESTAMP]until_time:1736256000 fetches tweets up to 2025-01-07 00:00:00 UTC.
since with until, or since_time with until_time, for precise filtering.since_time:1736169600 until_time:1736256000 fetches tweets between 2025-01-06 00:00:00 UTC and 2025-01-07 00:00:00 UTC.
To search for tweets from @elonmusk between January 6, 2025, 00:00 UTC, and January 7, 2025, 00:00 UTC using UNIX timestamps:
https://api.scraper.tech/twitter/search?q=from:elonmusk since_time:1736169600 until_time:1736256000
from:elonmusk since:2025-01-06 until:2025-01-07 Tesla fetches tweets by @elonmusk about "Tesla" within the specified date range.
from:ElonMusk works the same as from:elonmusk.
since and until use UTC dates, since_time and until_time ensure precision with UNIX timestamps.
since_time without until_time to fetch tweets from a specific point in time moving forward.
from:elonmusk since_time:1736169600 until_time:1736256000 retrieves Elon Musk’s tweets during January 6, 2025.
from:NASA since_time:1736169600 Mars retrieves NASA’s tweets about Mars from January 6, 2025.