Skip to main content
Twitter/X data via Apify. Search tweets with advanced query syntax, or scrape profiles, tweet URLs, and lists. Returns slimmed tweet projections by default; pass filter.mode=full for the raw payload. 1 endpoint available through Lava’s AI Gateway. See the X (Twitter) API docs for full documentation.
Supports both managed (Lava’s API keys) and unmanaged (bring your own credentials) mode.

Endpoints

Scrape tweets from Twitter/X. Supports search terms (Twitter advanced search syntax), profile handles, tweet URLs, and list URLs. By default Lava returns a compact projection (~400 bytes/tweet) with id/url/text/createdAt/lang/counts, a slim author (userName, name, description, followers, verified), and slimmed entities (hashtags, expanded URLs, user mentions); retweets and quotes are recursively slimmed. Pass filter.mode="full" to receive the raw Apify payload (~4-6KB/tweet) with media variants, card binding values, and full author metadata. $0.40 per 1,000 tweets.

POST https://api.apify.com/v2/acts/apidojo~tweet-scraper/run-sync-get-dataset-items — $0.008 / request
const data = await lava.gateway('https://api.apify.com/v2/acts/apidojo~tweet-scraper/run-sync-get-dataset-items', { body: {"searchTerms":["from:NASA"],"maxItems":20,"sort":"Latest"} });

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests