{"uid":"cap_SO6CLtuU9Qhc5oHEQ3sX1","slug":"twitterapi-io-get-user-last-tweets-0a6555e5","name":"TwitterAPI.io – Get User Last Tweets","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/user/last_tweets?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","properties":{"cursor":{"type":"string","description":"Cursor from the previous page"},"userId":{"type":"string","description":"Numeric X user ID (alternative to userName)"},"userName":{"type":"string","description":"X username without @ (or pass userId)"},"includeReplies":{"type":"boolean","description":"Include replies, default false"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"tweets":[{"id":"...","text":"..."}]},"status":"success","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_I2Qdh0H2rwOIgsOBmw5lH","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":"Fetches the most recent tweets posted by a specific X (Twitter) user, with optional pagination and reply inclusion.","exampleAgentPrompt":"Can you pull the most recent tweets from the X account @elonmusk and show me what he's been posting? Include replies too.","exampleUseCases":[{"title":"Monitoring a brand's latest posts","prompt":"Get me the last tweets from the X account @Nike so I can track what they've been promoting this week."},{"title":"Journalist researching a public figure","prompt":"Pull the recent tweets from @AOC on Twitter — I need to see her latest statements and replies for a news piece I'm writing."},{"title":"Automated competitor tracking pipeline","prompt":"Fetch the latest tweets from the X user with ID 44196397 and include any replies, using the cursor 'abc123' to continue from where we left off last time."}],"resultDescription":"Returns a paginated list of recent tweet objects (each with tweet ID and text), a next_cursor string for fetching subsequent pages, a has_next_page boolean, and a status field indicating success.","failureModes":["Invalid or missing userName/userId returns an error or empty result","Expired or invalid cursor causes pagination failure","Rate limiting or authentication errors if the X-API-Key is missing or quota exceeded","Private/suspended accounts return no tweets","Malformed query parameters may return a 400-level error"],"whenToPreferThis":"Use this endpoint when you need the most recent tweets from a known X user (by username or numeric ID), especially when you need to paginate through their timeline or optionally include replies. Prefer this over search endpoints when you already know the specific account you want to track, rather than searching by keyword or topic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T06:33:55.802Z","isFirstParty":false,"canonicalSlug":"twitterapi-io-get-user-last-tweets-0a6555e5"}