{"uid":"cap_zI1yJCeinhplbDXUMZ59c","slug":"twitterapi-io-advanced-tweet-search-c14623dd","name":"TwitterAPI.io Advanced Tweet Search","description":"TwitterAPI.io docs: REST API for X (Twitter) data, covering tweet search, users, followers, replies, lists, communities and trends. Authenticate with an X-API-Key header.","url":"https://api.twitterapi.io/x402/twitter/tweet/advanced_search?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Search query, same syntax as X advanced search"},"cursor":{"type":"string","description":"Cursor from the previous page; omit for the first page"},"queryType":{"enum":["Latest","Top"],"type":"string","description":"Sort order, default Latest"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"tweets":[{"id":"1850000000000000000","text":"...","author":{"userName":"nasa"},"createdAt":"..."}],"next_cursor":"...","has_next_page":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J6hPb-AJL5C5NtylYXMR9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search X (Twitter) tweets using advanced query syntax, returning paginated tweet results with author info","exampleAgentPrompt":"Search X for the latest tweets about 'climate change policy' using TwitterAPI.io's advanced search and show me the most recent results.","exampleUseCases":[{"title":"Brand Mention Monitoring","prompt":"Search X for the latest tweets mentioning 'OpenAI GPT-5' so I can see what people are saying about it right now."},{"title":"Competitor Intelligence Tracking","prompt":"Find the top tweets about 'Tesla Cybertruck recall' on X — I want to see what's getting the most engagement, not just the newest posts."},{"title":"Hashtag Campaign Analysis","prompt":"Pull the latest tweets using the hashtag #EarthDay2025 from X so I can gauge how the campaign is trending."}],"resultDescription":"Returns a JSON array of tweets, each with an ID, text content, author username, and creation timestamp, plus a next_cursor string and has_next_page boolean for paginating through additional results.","failureModes":["Missing required 'query' parameter returns a 400 validation error","Invalid or expired cursor returns an error or restarts pagination","Rate limits or quota exhaustion returns a 402 or 429 response","Overly broad queries may return empty results for niche topics","Payment not processed (insufficient USDC balance) results in a 402 error"],"whenToPreferThis":"Choose this endpoint when you need programmatic access to X tweet search with advanced query syntax (Boolean operators, from:, to:, since:, until:, etc.) and need paginated results with author metadata. Prefer it over scraping or unofficial tools when you need reliable, structured tweet data at scale with predictable per-call pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T23:02:48.294Z","isFirstParty":false,"canonicalSlug":"twitterapi-io-advanced-tweet-search-c14623dd"}