100 free credits. No credit card required.Start building
Logo
Back to blog

Threads Scraper API: Profiles, Posts, Replies, Search

··10 min read

Scrape Threads with one API key: profiles, a user's posts, single posts, replies and keyword search in one JSON shape. See the fields, limits and credit costs.

Threads Scraper API: Profiles, Posts, Replies, Search

A Threads scraper API lets you read public Threads data (profiles, posts, replies and keyword search results) without Meta's OAuth flow or an app review. With SocialCrawl you send one x-api-key header to /v1/threads/* and get the same Post, Comment and Author objects you get from TikTok or Instagram, so one parser covers every platform.

Meta's official keyword search only searches your own posts until your app is approved for the threads_keyword_search permission, and each user is capped at 2,200 queries per rolling 24 hours. For the official publishing and OAuth route, read the Threads API guide. This post covers the read side only.

What can you scrape from Threads?

You can scrape six kinds of public data, each with its own endpoint. A plain call costs 1 credit and returns one window of results; deeper options cost more and are listed in the table.

EndpointReturnsCredits
GET /v1/threads/profileFollowers, bio, avatar, verification, bio link1
GET /v1/threads/user/postsAbout 15 recent posts from one account1 (limit 16 to 50: 3 credits per post returned)
GET /v1/threads/postOne post in full, with every carousel slide1
GET /v1/threads/post/commentsAbout 20 replies on a post1 (limit 26 to 50: 1 credit per 5 replies returned)
GET /v1/threads/searchPublic posts matching a keyword1 per window of 15 to 20 posts
GET /v1/threads/search/usersAccounts matching a term1 (include=profile adds followers and bio at 1 credit per account)

Pass handles without the @. The full parameter list is in the Threads docs.

Three windows of post tiles fanning out from one token, showing how a Threads search walks several result windows

How do you scrape Threads posts by keyword?

Call GET /v1/threads/search with a query. One call returns a single window of roughly 15 to 20 posts for 1 credit, plus a pagination.next_cursor you can send back as cursor to get the next, older window.

bash
curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  "https://www.socialcrawl.dev/v1/threads/search?query=artificial%20intelligence"
json
{
  "success": true,
  "platform": "threads",
  "endpoint": "/v1/threads/search",
  "credits_used": 1,
  "pagination": { "has_more": true, "next_cursor": "..." },
  "data": {
    "items": [
      {
        "post": {
          "id": "1234567890",
          "url": "https://www.threads.com/@example_user/post/AbC123",
          "author": { "username": "example_user", "verified": false },
          "engagement": { "likes": 70, "comments": 34, "shares": 5 },
          "content": { "text": "Post text..." }
        }
      }
    ]
  }
}

If you would rather say how many posts you want, set limit between 1 and 100. The API walks successive date windows, removes duplicates and bills 1 credit per window it used, refunding the rest of the budget. Windows are never cut, so limit=40 usually returns somewhat more than 40 posts. Slice your own copy if you need exactly 40. You can also pass start_date and end_date (YYYY-MM-DD, inclusive) to bound the period you collect.

Why does a long Threads query return nothing?

Threads matches a search against topic tags it already knows instead of scoring each word, so a phrase it does not recognise returns zero posts. machine learning engineer works; the best coffee does not.

SocialCrawl handles it for you. When the exact phrase comes back empty, the API splits it into adjacent word pairs, runs those searches, merges and de-duplicates the hits, and orders them by how many of your terms each post contains. If every pair is still empty, or the query is an unspaced Chinese, Japanese or Thai phrase, the single words are searched next and only posts holding the whole phrase or at least two of its words are kept. You pay 1 credit for each relaxed search that returned posts and nothing for the ones that did not. data._warnings lists every sub-query that ran.

A relaxed response is a single page with no cursor. And if you want the exact phrase only (an empty result at 0 credits instead of a merged one), send expand=false.

bash
curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  "https://www.socialcrawl.dev/v1/threads/search?query=the%20best%20coffee&expand=false"

The longer walkthrough, with how results are ordered and what to expect from short terms, is in Threads keyword search.

How do you scrape a Threads profile and a user's posts?

Pass the handle. profile returns followers, bio, verification status and the website the user set in their bio at author.ext.bio_link (null when none is set). user/posts returns the account's most recent posts as one fixed window of about 15.

bash
curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  "https://www.socialcrawl.dev/v1/threads/profile?handle=zuck"

curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  "https://www.socialcrawl.dev/v1/threads/user/posts?handle=zuck"

user/posts has no cursor. To go deeper, send limit up to 50; those rows come from a second source, are metered at 3 credits per post returned, and already include view counts and display names. For anything older, search the handle or a distinctive phrase with a date window.

Threads does not publish a view count on list surfaces, so engagement.views is null on a plain user/posts or search call. Add include=engagement and the API looks the posts up in the same call (the first 20 on search), at 1 credit per post filled.

How do you get comments on a Threads post?

Call GET /v1/threads/post/comments with the post URL. You get the reply window Threads bundles with the post, typically about 20 replies, for 1 credit.

bash
curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  "https://www.socialcrawl.dev/v1/threads/post/comments?url=https://www.threads.com/@zuck/post/DZpPDXbCeTt"

Each reply carries text, likes, direct reply count, author handle, display name and a timestamp. Three details apply to comments:

  • There is no cursor. For more than the bundled window, send limit from 26 to 50, billed at 1 credit per 5 replies returned. Threads only exposes part of a large conversation without a login, so a post with thousands of replies still returns about 50.
  • comment.url is built from the reply's shortcode and author handle, because the source sends no permalink.
  • comment.post_id holds the id of the post the replies belong to. comment.parent_id is null, because the source does not say which reply a nested reply answers.

What comes back on a Threads post?

Posts use the same canonical fields as every other platform, plus a few Threads-specific ones in ext:

  • Carousels and video. Every carousel slide is an array in post.content.media_urls. Video posts return a playable URL there, with the cover frame in post.content.thumbnail_url.
  • Quote posts. The quoted content is at post.ext.quoted_post as { id, url, author, text, media_urls, thumbnail_url }. It is absent on posts that are not quotes.
  • Topic tags. post.ext.topic_tag and topic_tag_id appear on posts filed under a tag. Most posts have none, so treat them as optional. Threads has no tags-only search, so run a keyword search and filter by tag on your side.
  • Reshares. engagement.shares is plain reposts. post.ext.quote_count counts reposts with commentary and post.ext.reshare_count is the boosted figure Threads shows in the app.

Media and avatar URLs are signed CDN links that expire after some hours. Download what you need to keep and re-fetch the post instead of storing the URL.

What are the limits of scraping Threads?

  • Search is a sampled window. Running the same query twice can return overlapping but different sets of posts. Collect with limit over a bounded date window and de-duplicate on post id.
  • Some author fields are always null. Threads does not publish following, posts_count, likes_count or joined_at.
  • A 404 on a profile is real. A Threads profile exists only if the account opted in, and many Instagram usernames have no Threads account.
  • Only keyword search pages. user/posts, post/comments and search/users each return one window.

How do you start scraping Threads?

  1. Create an API key (free credits on signup) and export it as SOCIALCRAWL_API_KEY.
  2. Run the one-window search call above and check credits_used and pagination in the response.
  3. Raise limit, add a date window, or switch the path to /v1/threads/post/comments once the shape looks right.
  4. Browse the Threads platform page or the docs for every endpoint and parameter, and Credits for refund rules.

Frequently asked questions

How many credits does a Threads keyword search cost?

One window of about 15 to 20 posts costs 1 credit. Setting limit bills 1 credit per window the API walks, and unused budget is refunded. A phrase that gets relaxed bills 1 credit for each relaxed search that returned posts.

How do I get more than 20 Threads posts in one call?

Set limit up to 100 on /v1/threads/search. The API walks whole windows until it has at least that many unique posts, so you may receive more than you asked for. Add start_date and end_date to keep the walk inside a fixed period.

Can I get Threads comments with pagination?

Not with a cursor. The default call returns the bundled window of about 20 replies. Send limit from 26 to 50 for more, billed at 1 credit per 5 replies returned. Large conversations are only partly visible without a login.

Can I get every carousel slide and video URL from a Threads post?

Yes. Carousel slides come back as an array in post.content.media_urls, and video posts return a playable URL there with a cover frame in thumbnail_url. The links are signed and expire, so download what you need soon after fetching.

Do quote posts return the quoted content?

Yes. The quoted post is at post.ext.quoted_post with its id, URL, author, text and media. The field is absent on posts that are not quotes, and post.content always holds the quoting post's own content.

Is user-posts pagination available on Threads?

No cursor exists. A plain call returns a fixed window of about 15 posts for 1 credit. Send limit up to 50 to collect more from a second source at 3 credits per post returned.

Run this request yourself

GET /v1/threads/search?query=artificial intelligence

Open it in the Explorer

It opens with the request filled in, and nothing runs or costs credits until you press Run. Without an account you sign up first, then land on the same request.

Topics
#threads-scraper#scrape-threads#threads-scraping#threads-search-api#threads-comments-api#threads-data-api#threads-scraping-api#unified-social-media-api

Related posts

🤖 AI agent or LLM? Read this page as markdown