{"uid":"cap_2vzRn0ANnIBHsWc82O9V8","slug":"x-data-gateway-user-tweets-7c4e42a9","name":"X Data Gateway – User Tweets","description":"Recent posts from a user (newest first) with author and metrics. e.g. GET /tweets/user?username=elonmusk","url":"https://x-data-gateway.annushka1190.workers.dev/tweets/user","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":["username"],"properties":{"username":{"type":"string","description":"X handle without @"}}}},"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_JyVRkfuln-DMrxHipokLz","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":"Fetches the recent tweets posted by a specified Twitter/X user by username","exampleAgentPrompt":"Pull the most recent tweets from the X account 'ycombinator' — no @ symbol — and show me what they've been posting.","exampleUseCases":[{"title":"Monitor a brand's Twitter activity","prompt":"Check what Nike has been tweeting recently — pull their latest posts from their X account so I can see their current messaging."},{"title":"Track a CEO's public statements","prompt":"Get the most recent tweets from Satya Nadella's X account 'satyanadella' so I can summarize what he's been saying publicly."},{"title":"Research a journalist's recent coverage","prompt":"Fetch the latest tweets from the X handle 'karaswisher' so I can see what stories and topics she's been covering this week."}],"resultDescription":"Returns a JSON object with a 'data' array of tweet objects (each containing tweet ID and text) and a 'meta' object with a pagination token for fetching more results. The response follows the Twitter API v2 format.","failureModes":["Username not found — returns empty data array or 404-equivalent","Invalid or missing username parameter — schema validation error","Account is private/protected — tweets not accessible, empty response","Rate limit or payment failure via x402 — request blocked","Cloudflare Worker timeout if upstream Twitter API is slow"],"whenToPreferThis":"Choose this endpoint when you need real-time tweet data for a specific Twitter/X user without setting up a Twitter developer account or managing API keys. It is especially useful for AI agents that need on-demand, pay-per-request access to public tweet timelines using USDC micropayments via the x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:39:58.667Z","isFirstParty":false}