{"uid":"cap_pp15fTKfVrNrgTobMNh8M","slug":"x-data-gateway-fetch-tweet-by-id-915b6749","name":"X Data Gateway – Fetch Tweet by ID","description":"One post by numeric ID: text, author, metrics (likes, retweets, replies, quotes, views). e.g. GET /tweets/by/id?id=20","url":"https://x-data-gateway.annushka1190.workers.dev/tweets/by/id","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":["id"],"properties":{"id":{"type":"string","description":"Numeric tweet ID"}}}},"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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ajEhmTxspyVf2wFb5i2yt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves a single tweet's text, author, and engagement metrics by its numeric tweet ID from Twitter/X in real time.","exampleAgentPrompt":"Can you pull up the details for tweet ID 1234567890 — I want to see the text, who posted it, and how many likes and retweets it has?","exampleUseCases":[{"title":"Verify a viral tweet's authenticity","prompt":"Someone sent me tweet ID 1876543210 claiming a CEO said something controversial — can you fetch the actual tweet text and author so I can confirm it's real?"},{"title":"Track engagement on a published post","prompt":"I posted tweet 1987654321 earlier today — can you grab the current like and retweet counts so I can see how it's performing?"},{"title":"Archive tweet content for research","prompt":"I need the full text and author details for tweet ID 1765432109 to include in my research notes — can you fetch that for me?"}],"resultDescription":"Returns a JSON object with the tweet's numeric ID, full text, author username, and engagement metrics including like count and retweet count.","failureModes":["Tweet ID not found or deleted — returns error or empty data","Invalid or non-numeric tweet ID — schema validation failure","Tweet from a private/suspended account — access denied or empty response","Payment not processed (x402 flow fails) — request blocked before reaching Twitter data","Rate limiting on the upstream Twitter/X API — may return errors during high load"],"whenToPreferThis":"Use this endpoint when you have a specific tweet's numeric ID and need its text, author, and engagement metrics without setting up a Twitter Developer account or API key. It is ideal for one-off lookups, quick verification, and agent workflows that encounter tweet IDs and need to resolve them on demand with pay-per-use USDC pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:48:41.666Z","isFirstParty":false}