x/
thread-context
tiktok / profilesTikTok Profiles APItiktok / videosTikTok Videos APItiktok / video-transcriptTikTok Video Transcript APItiktok / commentsTikTok Comments APItiktok / comment-repliesTikTok Comment Replies APItiktok / searchTikTok Search APItiktok / hashtagsTikTok Hashtags APItiktok / trending-feedTikTok Trending Feed APItiktok / followers-listTikTok Followers List APItiktok / following-listTikTok Following List APItiktok / user-videosTikTok User Videos APItiktok / live-room-infoTikTok Live Room Info APItiktok / search-usersTikTok Search Users APItiktok / songTikTok Song APItiktok / song-videosTikTok Song Videos APItiktok / popular-songsTikTok Popular Songs APItiktok / top-searchTikTok Top Search APItiktok / user-liveTikTok User Live APIx / profilesTwitter Profile Scraper APIx / followers-listX Followers List APIx / postsTwitter Tweet Scraper APIx / post-retweetersX Post Retweeters APIx / user-postsTwitter User Tweets Scraper APIx / searchTwitter Search APIx / following-listX Following List APIx / post-quotesX Post Quotes APIx / post-repliesX Post Replies APIx / trendsX Trends APIx / mentionsTwitter Mentions APIx / search-usersTwitter User Search APIx / communityX Community APIx / community-postsX Community Posts APIx / thread-contextX Thread Context APIinstagram / postsInstagram Posts APIinstagram / post-infoInstagram Post Info APIinstagram / hashtag-postsInstagram Hashtag Posts APIinstagram / reels-searchInstagram Reels Search APIinstagram / story-highlightsInstagram Story Highlights APIinstagram / tagged-postsInstagram Tagged Posts APIinstagram / transcriptInstagram Transcript APIinstagram / audio-reelsInstagram Audio Reels APIinstagram / commentsInstagram Comments APIfacebook / pagesFacebook Pages APIfacebook / postsFacebook Posts APIfacebook / group-postsFacebook Group Posts APIfacebook / reelsFacebook Reels APIfacebook / commentsFacebook Comments APIfacebook / comment-repliesFacebook Comment Replies APIfacebook / company-reviewsFacebook Company Reviews APIfacebook / video-transcriptFacebook Video Transcript APIfacebook / ad-transcriptFacebook Ad Transcript APIfacebook / events-searchFacebook Events Search APIfacebook / event-detailsFacebook Event Details APIfacebook / profile-eventsFacebook Profile Events APIfacebook / profile-photosFacebook Profile Photos APIfacebook / profilesFacebook Profiles APIinstagram / followers-countInstagram Followers Count APIinstagram / profilesInstagram Profiles APIinstagram / followers-listInstagram Followers List APIinstagram / following-listInstagram Following List APIinstagram / reelsInstagram Reels APIinstagram / searchInstagram Search APIinstagram / highlight-itemsInstagram Highlight Items APIinstagram / trending-reelsInstagram Trending Reels APIyoutube / channelsYouTube Channels APIyoutube / videosYouTube Videos APIyoutube / channel-videosYouTube Channel Videos APIyoutube / playlist-videosYouTube Playlist Videos APIyoutube / channel-live-videosYouTube Channel Live Videos APIyoutube / commentsYouTube Comments APIyoutube / comment-repliesYouTube Comment Replies APIyoutube / community-postsYouTube Community Posts APIyoutube / shortsYouTube Shorts APIyoutube / searchYouTube Search APIyoutube / hashtag-searchYouTube Hashtag Search APIyoutube / transcriptsYouTube Transcripts APIlinkedin / profilesLinkedIn Profiles APIlinkedin / companiesLinkedIn Companies APIlinkedin / postsLinkedIn Posts APIlinkedin / jobsLinkedIn Jobs APIlinkedin / company-jobsLinkedIn Company Jobs APIlinkedin / company-postsLinkedIn Company Posts APIlinkedin / post-commentsLinkedIn Post Comments APIlinkedin / profile-postsLinkedIn Profile Posts APIlinkedin / search-jobsLinkedIn Search Jobs APIlinkedin / search-peopleLinkedIn Search People APIlinkedin / search-postsLinkedIn Search Posts APIreddit / postsReddit Posts APIreddit / commentsReddit Comments APIreddit / subreddit-postsReddit Subreddit Posts APIreddit / searchReddit Search APIreddit / subreddit-detailsReddit Subreddit Details APIreddit / subreddit-searchReddit Subreddit Search APIpinterest / profilesPinterest Profiles APIpinterest / pinsPinterest Pins APIpinterest / user-pinsPinterest User Pins APIpinterest / searchPinterest Search APIthreads / postsThreads Posts APIthreads / profilesThreads Profiles APIthreads / user-postsThreads User Posts APIbluesky / profileBluesky Profile APIbluesky / postBluesky Post APIbluesky / user-postsBluesky User Posts APIfacebook-marketplace / location-searchFacebook Marketplace Location Search APIfacebook-marketplace / searchFacebook Marketplace Search APIfacebook-marketplace / itemFacebook Marketplace Item APIfacebook-ad-library / adFacebook Ad Library Ad APIfacebook-ad-library / company-adsFacebook Ad Library Company Ads APIfacebook-ad-library / company-searchFacebook Ad Library Company Search APIfacebook-ad-library / searchFacebook Ad Library Search APIgoogle-ad-library / adGoogle Ad Library Ad APIgoogle-ad-library / advertiser-searchGoogle Ad Library Advertiser Search APIgoogle-ad-library / company-adsGoogle Ad Library Company Ads APIgoogle-maps / searchGoogle Maps Search APIgoogle-maps / place-detailsGoogle Maps Place Details APIgoogle-maps / reviewsGoogle Maps Reviews APItiktok-ad-library / adTikTok Ad Library Ad APItiktok-ad-library / searchTikTok Ad Library Search APIlinkedin-ad-library / adLinkedIn Ad Library Ad APIlinkedin-ad-library / searchLinkedIn Ad Library Search APItiktok-shop / searchTikTok Shop Search APItiktok-shop / productsTikTok Shop Products APItiktok-shop / productTikTok Shop Product APItiktok-shop / product-reviewsTikTok Shop Product Reviews APIseo / google-organic-serpGoogle Organic SERP APIseo / keyword-difficultyKeyword Difficulty APIseo / keyword-overviewKeyword Overview APIseo / keyword-search-volumeKeyword Search Volume APIseo / keywords-for-siteKeywords for Site APIseo / keyword-suggestionsKeyword Suggestions APIseo / ranked-keywordsRanked Keywords APIseo / related-keywordsRelated Keywords APIseo / relevant-pagesRelevant Pages APIseo / search-intentSearch Intent APItiktok-shop / user-showcaseTikTok Shop User Showcase APIsnapchat / profileSnapchat Profile APIsnapchat / spotlightSnapchat Spotlight APIsnapchat / spotlight-commentsSnapchat Spotlight Comments APItwitch / profileTwitch Profile APItwitch / user-videosTwitch User Videos APIkwai / profileKwai Profile APIkwai / user-postsKwai User Posts APIkwai / postKwai Post APIamazon / best-sellersAmazon Best Sellers APIamazon / product-detailAmazon Product Details APIamazon / product-searchAmazon Product Search APIamazon / reviewsAmazon Reviews APIamazon / seller-infoAmazon Seller Info APIgoogle-play / app-detailGoogle Play App Detail APIgoogle-play / app-rankingsGoogle Play App Rankings APIgoogle-play / app-reviewsGoogle Play App Reviews APIapple-app-store / app-detailApple App Store App Detail APIapple-app-store / app-reviewsApple App Store App Reviews APIapple-app-store / rankingsApple App Store Rankings APItruth-social / profileTruth Social Profile APItruth-social / user-postsTruth Social User Posts APItruth-social / postTruth Social Post APIdouyin / live-room-detailDouyin Live Room Detail APIdouyin / user-profileDouyin User Profile APIdouyin / user-videosDouyin User Videos APIdouyin / video-commentsDouyin Video Comments APIdouyin / video-detailDouyin Video Detail APIdouyin / video-searchDouyin Video Search APIrednote / comment-repliesRednote Comment Replies APIrednote / home-recommendationsRednote Home Recommendations APIrednote / note-commentsRednote Note Comments APIrednote / note-detailRednote Note Detail APIrednote / search-notesRednote Search Notes APIrednote / search-usersRednote Search Users APIrednote / user-notesRednote User Notes APIrednote / user-profileRednote User Profile API

Read the context around an X post from its link, with the target post, earlier posts it replies to and public replies returned together with relationship IDs.

X Thread Context API

The post and its context
Which post replies to which
Conversation grouping
0.5 credits / result
Ready
Ready

Enter parameters and send a request. The task status and normalized results will appear here.

README

X Thread Context

An X thread connects a post to the message it replies to, earlier messages along that reply chain and the replies that follow, rather than simply grouping posts published around the same time. Keeping those relationships with the post text and author information helps readers follow how a discussion developed and understand the context of an individual message.

Features

  • Read the selected post with its surrounding discussionUse a post link to collect the target message together with earlier public messages along its reply chain and the available replies that follow, giving you context beyond the selected message alone.
  • Understand which posts belong together and who replies to whomAlongside text, authors and interaction counts, conversation_id identifies the conversation a post belongs to and in_reply_to_id identifies the post it directly replies to, giving you links between the individual records.

Parameters

ParametersRequiredDescription
urlsRequiredRequired list of public X post links containing /status/ followed by a numeric post ID, such as https://x.com/BaganiTohid/status/2110635249889919362; put one link per line in the Playground or use a JSON urls array, rather than profile or community links.
results_limitOptionalOptional maximum context records for each input post, from 1 to 2000, with a default of 100; two post links with a limit of 20 each request up to 20 related records, rather than sharing one total of 20.

How to Use

The request starts a background collection task, so its first response gives you a task ID rather than the finished data; use that ID to check progress and retrieve the results.

  1. Copy the public post link you want to understand and choose how many context records to request for it; if you have several links, put each one in the urls list.
  2. Before running the example, replace $SOCQ_API_KEY with your own API key or set that environment variable. Send the JSON input to POST /v1/x/thread-context with the Authorization header shown below, then save the task_id from the response.
  3. Use GET /v1/tasks/{task_id} with the saved ID to check progress. queued means waiting, running means collection is in progress, and retrying means another attempt is underway. Wait for succeeded before reading the results; if the task is failed, read error_message for the reason.
  4. When the task succeeds, read data.results.items: each item in this list describes one post and its available conversation relationships. An empty list means the task completed without returning any records.
  5. If data.results.has_more is true, the next_cursor value is the marker for another page of saved results. Copy it unchanged into the cursor parameter of GET /v1/tasks/{task_id}?cursor=... and continue until has_more is false.
curl -X POST "https://api.socq.ai/v1/x/thread-context" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://x.com/BaganiTohid/status/2110635249889919362"],"results_limit":20}'

Best Use Cases

  • Review a message with the context needed to read it: Place the target post next to the returned earlier messages and replies, including their text and authors, to prepare a reading view for someone checking what the selected message was responding to.
  • Build a map of the returned reply relationships: Group posts by conversation_id and match each in_reply_to_id to another record’s id to draw the reply links that are present, leaving gaps visible when a referenced post was not returned.
  • Prepare source material for a conversation summary: Save the post text, author names, times and reply relationships as an ordered reading set for a separate human or software summarization step, rather than expecting a finished summary in the response.

Pro Tips

  • When arranging a discussion for reading, connect posts using their relationship IDs first and use publication time only as supporting context, because a time-sorted list alone does not tell you which message each post answers.
  • If in_reply_to_id refers to an ID that is absent from your saved records, keep that reference as a missing link instead of attaching the reply to a different post or inventing the missing text.
  • When several submitted links belong to the same conversation, merge saved results by post ID so a shared earlier post does not appear several times in your reading set.
  • If you only need a selected post’s replies, use X Post Replies; if you only need the selected post itself, use X Posts instead of collecting surrounding context.

Use these APIs when you need a different type of public X data.

  • Twitter Tweet Scraper API — Retrieve public post text, authors, engagement, media, hashtags, mentions, and conversation relationships from x.com or twitter.com status URLs.
  • Twitter Profile Scraper API — Retrieve public account identity, biographies, avatars, cover images, account status, and visible audience statistics by username.
  • Twitter User Tweets Scraper API — Collect recent public posts, authors, media, hashtags, mentions, and engagement by username with replies excluded.
  • Twitter Search API — Find public posts by search expression with latest or top ordering and a configurable result limit.
  • X Followers List API — Collect public follower account identities and visible profile metrics for one or more X usernames.
  • X Following List API — Collect profiles followed by public X accounts, including identity, biographies, account signals, visible counters, and source usernames.
  • X Post Quotes API — Collect public quote posts for known status URLs with commentary, authors, engagement, media, timestamps, and source-post context.
  • X Post Replies API — Collect public replies from X post URLs with selectable ordering, reply text, authors, visible engagement, media, and parent-post context.
  • X Post Retweeters API — Collect a task-level unique set of normalized public profiles for accounts that reposted known X or Twitter status URLs.
  • X Trends API — Collect current public X trend snapshots for known numeric WOEIDs with source rank, query, description, and location context.
  • Twitter Mentions API — Collect public posts mentioning a specified account.
  • Twitter User Search API — Find public X accounts by keyword.
  • X Community API — Read community links for descriptions, membership counts, rules and joining policies.
  • X Community Posts API — Read the public posts shared in a community, with their text, authors and interaction counts.

Explore other platforms

Combine X data with public data from other supported social platforms.

X Thread Context API — FAQ