{"uid":"cap_DlFwRJdJmQj9kf4qaFcbQ","slug":"aisa-payment-gateway-tweet-thread-context-bf2bd13d","name":"AIsa Payment Gateway - Tweet Thread Context","description":"Get the thread context of a tweet. Suppose a tweet thread consists of t1, t2 (replying to t1), t3 (replying to t2), and t4, t5, t6 (all replying to t3). If we provide an API where you input t3 and receive t1, t2, t3, t4, t5, t6. Pagination is supported. The pagination size cannot be set (due to Twitter's limitations), and the data returned per page is not fixed.","url":"https://pay.lnpay.ai/twitter/tweet/thread","method":"GET","headers":{},"bodySchema":{"type":"object","required":["tweetId"],"properties":{"cursor":{"type":"string","description":"The cursor to paginate through the results. First page is \"\"."},"tweetId":{"type":"string","description":"The tweet ID to get. Can be a reply tweet or a original tweet."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AzHM54mrhoX-PVMWFISIi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves the full thread context of a tweet, including ancestor and descendant replies, given any tweet ID in the thread.","exampleAgentPrompt":"Can you pull the full thread context for tweet ID 1234567890123456789 — I want to see the original tweet, all the replies leading up to it, and all the replies branching off from it?","exampleUseCases":[{"title":"Reconstruct viral tweet debate","prompt":"There's a tweet going viral about climate policy — tweet ID 9876543210987654321 — can you pull the entire thread for me so I can see how the conversation unfolded from the original post all the way through every reply and sub-reply?"},{"title":"Find root of reply chain","prompt":"I saw a reply from someone that seems interesting but I'm missing the context — the tweet ID is 1122334455667788990. Can you fetch the full thread so I can read the original tweet and everything that came before and after it?"},{"title":"Archive complete Twitter conversation","prompt":"I need to archive an entire Twitter conversation for research purposes. Starting from tweet ID 5544332211009988776, can you retrieve all the ancestor tweets and every reply branching off from it, paginating through the full thread until you have everything?"}],"resultDescription":"Returns a paginated list of tweets forming the full thread context: ancestors (tweets leading up to the input tweet) and descendants (all replies branching from it). Each page contains a variable number of tweets due to Twitter API limitations, plus a cursor for fetching the next page.","failureModes":["Invalid or non-existent tweetId returns empty results or error","Tweet is private/protected and not accessible","Pagination cursor is invalid or expired","Rate limiting or payment failure returns 402 or 429 status","Twitter API downstream outage causes failure"],"whenToPreferThis":"Use this endpoint when you need to reconstruct a full Twitter/X conversation thread — both the ancestor chain and all descendant replies — from any tweet in that thread. It is preferable when you need the complete context of a discussion, not just direct replies or the original tweet alone.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:30:27.347Z","isFirstParty":false}