{"uid":"cap_kzjaOarjV7QvcEBXnl9BS","slug":"x-data-gateway-fetch-tweets-by-id-87d2afbf","name":"X Data Gateway – Fetch Tweets by ID","description":"Up to 50 tweets by comma-separated IDs. e.g. GET /tweets?ids=20,21,22","url":"https://x-data-gateway.annushka1190.workers.dev/tweets","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["ids"],"properties":{"ids":{"type":"string","description":"Comma-separated tweet IDs, max 50"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.007","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.007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FmgQsjuOq9GYs7qcWq6qG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves full tweet data for up to 50 tweets by their numeric IDs from Twitter/X in real-time, billed per request in USDC via x402.","exampleAgentPrompt":"Can you fetch the full text and details for these tweets — IDs 1782345678901234567, 1782345678901234568, and 1782345678901234569?","exampleUseCases":[{"title":"Monitor viral tweet content","prompt":"Pull the tweet content for these 10 tweet IDs I collected — 1782345678901234567, 1782111234567890123, 1783456789012345678 — so I can see what's going viral right now."},{"title":"Fact-check a cited tweet","prompt":"Look up tweet ID 1784567890123456789 and get me the exact text — I want to verify what was actually said before I reference it in my article."},{"title":"Batch archive tweets for analysis","prompt":"Retrieve the full content of these 50 tweet IDs for me: 1780001234567890123, 1780001234567890124, 1780001234567890125 — I need to analyze the language patterns across all of them."}],"resultDescription":"Returns a JSON object containing an array of tweet data objects, each with at minimum the tweet's numeric ID and full text content. Up to 50 tweets can be returned in a single response.","failureModes":["Invalid or malformed tweet IDs return an error or empty data array","More than 50 IDs provided may result in an error or truncated response","Deleted or private tweets may return empty results or be omitted","Payment failure via x402 protocol blocks the request entirely","Non-numeric or incorrectly formatted ID strings cause validation errors"],"whenToPreferThis":"Choose this endpoint when you need to fetch specific tweets by their known numeric IDs without a Twitter developer account or API key. It is ideal for AI agents needing pay-per-use access to tweet content with no subscription or credential setup. Prefer this over scraping or Twitter's own API when you want frictionless per-request billing in USDC and real-time data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:47:25.451Z","isFirstParty":false}