Threads Scraper: Posts & Profiles

Tested threads scraper methods for 2026: browser renders fetch profiles, posts, replies and search anonymously; static HTTP gets nothing. Walls mapped.

MMotherlode Lab12 min read
Magpie title card: Threads Scraper: Posts & Profiles

Threads prohibits automated collection in the first lines of its robots.txt, then serves profiles, posts, replies, and keyword search to any anonymous browser that asks. That gap is the whole story of building a threads scraper in 2026. I ran one against threads.com on 2026-10-30 from a home connection: a real browser renders the public pages, and plain HTTP gets nothing at all.

The tool doing the fetching here is Magpie v0.1.32-1-g29b6218, a local CLI scraper (free to download, AGPL-3.0-or-later or commercial). Honest fit for this site: Partly. The browser-render mode fetches every public page I tested, but there is no Threads-specific extractor, and crawl mode refuses the site on robots grounds. Magpie does support cookie-based logins elsewhere; I ran none here, because logged-in scraping of other people’s content is exactly what Meta’s file prohibits. You get clean markdown or the raw rendered DOM, and the parsing is yours.

Read the robots file, because this one means it

Most robots.txt files are routing suggestions. This one opens with a legal position:

# Notice: Collection of data on Threads through automated means is
# prohibited unless you have express written permission from Threads
# and may only be conducted for the limited purpose contained in said
# permission.

Then it enforces it: User-agent: * gets Disallow: /, which means every unspecified bot is banned from the entire site. Fourteen named agents get the same total ban, including the usual AI crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot) and, in a detail I appreciate, Scrapy. Search and social-preview bots (Googlebot, Bingbot, DuckDuckBot, Discordbot, TelegramBot and others) get partial access to profiles and posts but not to /*/comments/, /*/p/, or account paths.

What this means practically, with Magpie’s scope stated precisely: a single magpie scrape is a user-directed fetch and never consults robots.txt, so the commands below run. magpie crawl does check, and it refuses the seed immediately:

$ magpie crawl "https://www.threads.com/@natgeo" --max-pages 1 --schema s.json
Error: crawl: seed www.threads.com: robots.txt disallows crawl

I’m not a lawyer and this isn’t legal advice. Meta’s position is written down, the link to its Automated Data Collection Terms is in the same file, and if your use case is bulk commercial collection, that file is telling you the price of admission. What I can report is what the server actually serves, and that is the rest of this article.

A static fetch returns nothing at all

Threads moved domains: every threads.net URL 301-redirects to threads.com. Follow the redirect and you still land on a JavaScript shell. A curl of threads.com/@natgeo returns 260,180 bytes, a <title> of just “Threads”, and zero occurrences of the string “natgeo” in the payload. The post pages are no better: a static fetch of a permalink ships exactly two meta tags, bingbot noarchive and viewport. No OpenGraph tags. Nothing for a preview bot to show.

Magpie’s static fetch dies at the quality gate, which is the correct verdict:

$ magpie scrape "https://www.threads.com/@natgeo"
Error: quality blocked (empty) for https://www.threads.com/@natgeo

One correction for anyone working from older notes. Our own plan had a 2026-10-11 entry saying a public profile “loaded with recent posts (14K chars)” over static fetch. That no longer reproduces. Either the site changed or the test window caught a server-side experiment; either way, re-test before you trust a months-old screenshot of Threads behavior, including mine. Most scraping guides, including ScrapFly’s October 2026 one, describe threads.net as “doesn’t even load without JavaScript” and reach for Playwright on that basis. The first half matches what I saw. The second half undersells how much you can get from a single rendered page.

The browser render is the threads scraper

Magpie escalates to a real browser when you pass --render browser, and that is the difference between 260,180 bytes of shell and the actual profile:

$ magpie scrape "https://www.threads.com/@natgeo" --render browser --format json

The JSON record’s markdown holds 274 words: the bio (“Step into wonder and find your inner explorer with National Geographic”), a follower count rounded to “18.4M”, and a run of recent posts, each with its relative timestamp and engagement numbers:

natgeo 1d The last person to be imprisoned for witchcraft in Britain was
in 1944, and Winston Churchill even called the trial "obsolete tomfoolery."
879 35 39 3

(abridged). A full profile render takes 8.5 seconds wall-clock. The page ends at “Log in to see more from natgeo”, which is the anonymous cap: 18 unique post links exist in the rendered DOM for this account, then the wall.

The five doors, verified on 2026-10-30:

Door Anonymous browser render Static fetch
Profile threads.com/@user Bio + follower count + ~18 recent posts, then login wall 260 KB JS shell, zero profile data
Post permalink /@user/post/<code> Post text, quoted posts, replies with counts Shell, 2 meta tags, no og tags
Keyword search /search?q=<term> Worked: 1,041 words of results on one test query Untested (nothing to test against)
Tag search /search?q=<tag>&serp_type=tags&tag_id=<id> Worked: 1,213 words on one test tag Untested
Home feed threads.com/ 117 words, a few viral posts, login wall Shell

Zero JSON-LD ships on any of these pages, so structured_data comes back empty and none of Magpie’s 27 verticals match. The guest-view pattern here rhymes with our LinkedIn profiles guide: anonymous access exists, it is genuinely useful, and it ends where login begins. Unlike LinkedIn, there is no structured sidecar to parse instead; the payload is Meta’s internal GraphQL cache format, which is the next two sections.

Profiles: rounded numbers in markdown, exact numbers in the payload

The cleaned markdown rounds followers to “18.4M”. Advertising dashboards want the integer. It survives in the hydration payload, the blob of JSON Meta embeds so the React app can start without a second round trip. Get the rendered DOM instead of the cleaned markdown and the payload comes with it:

$ magpie scrape "https://www.threads.com/@natgeo" --render browser \
    --page-format html --out natgeo.html

--page-format html returns the cleaned DOM with script tags intact, 1.1 MB for this profile, carrying 42 data-sjs script blocks. The fields are plain JSON inside them, so a few regexes go a long way:

import re

h = open("natgeo.html").read()
count = re.search(r'"follower_count":(\d+)', h)
print("follower_count:", count.group(1))
codes = sorted(set(re.findall(r'href="/@natgeo/post/([A-Za-z0-9_-]+)"', h)))
print("post codes:", len(codes))
print(codes[:3])
follower_count: 18412339
post codes: 18
['De5EPv3CR13', 'De5EXtJHW_t', 'De9jG7LFCr4']

Eighteen post codes is a discovery list the markdown never gave you, because the cleaner strips links. Those codes build permalink URLs, which is how you scale past the first page of a profile’s recent posts. The payload carries the rest of the profile card too: username, full_name, biography, verification flags, and bio links, all greppable by field name. If you have used hidden-data extraction on Instagram, this is the same schema; Threads reuses Instagram’s model objects (text_post_app_ prefixes everywhere), so existing Instagram parsers need smaller edits than you’d expect. The general technique has its own guide: finding a website’s hidden API, which walks the devtools hunt that this payload saves you.

Posts and replies ride the thread_items payload

A permalink page rendered in browser mode gives you the thread as readable markdown. The title becomes the post text (“Update: We were late to work this morning because we were stepping on leaves”), and the body runs 282 words: the post itself at “128K views”, a quoted natgeotv post, then replies with usernames and relative dates. The catch is that reply engagement flattens into bare numbers. The payload shows this post’s like_count as 2,117; the markdown renders it as “2.1K” ahead of five more unlabeled numbers, and reconstructing those from prose alone is guesswork.

The payload has the labeled version. Render the same permalink with --page-format html and the thread_items block arrives with every reply as a structured object:

import re

h = open("post.html").read()
texts = re.findall(r'"caption":\{"text":"((?:[^"\\]|\\.)*)"', h)
likes = re.findall(r'"like_count":(\d+)', h)
print("captions:", len(texts), "| like_counts:", len(likes))
print("likes sample:", likes[:6])
captions: 21 | like_counts: 22
likes sample: ['2117', '1203', '1', '0', '1331', '0']

Twenty-one captions and twenty-two like counts on a thread with roughly a dozen visible replies, because the payload holds quoted content and hover-preview objects alongside the visible thread. Counts are exact integers here: 2,117 likes in the payload is “2.1K” in the markdown. Media survives the same way; this page’s payload carries 22 image_versions2 and 22 video_versions blocks with CDN URLs, while the markdown shows none. Eight is_verified: true flags cover the participants. This is the same extraction pattern ScrapFly teaches with Playwright, and if your pipeline is Python-first their open-source parser is a solid reference for the field names.

Keyword search works without a login

This one contradicts the popular guides. ScrapFly’s FAQ says search results “require login”. On 2026-10-30, anonymous keyword search rendered fine:

$ magpie scrape "https://www.threads.com/search?q=web%20scraping" \
    --render browser --format json

Title: “Search • Threads”. 1,041 words of results, real posts with usernames, dates, and engagement counts, including one from an account called gitrepos_ ranking a scraper library with its star count. Tag search works too, via the URL the site itself generates: /search?q=Perpetual%20Planet&serp_type=tags&tag_id=18364282039110499 returned 1,213 words on one tag.

Scope that claim honestly before you build on it. I verified one keyword query and one tag URL, once each. I did not test pagination, did not profile result ranking, and did not test whether the wall flips after heavy use. Given that Meta changed the static-fetch behavior sometime between October 11 and October 30, treat search as a working door that may lock without notice, and structure your pipeline so a login step is a configuration change rather than a rewrite. That advice holds for every page in this article; it is double for search.

Dead ends, mapped

The robots.txt declares sixteen sitemaps, including threads_high_potential_posts_v2_sitemap.xml.gz (post URLs) and three tag files. Discovery would be trivial. It is also fiction for anonymous clients: every sitemap returns HTTP 403, to curl with a full Chrome header set and to Magpie’s fetcher alike, and magpie map fails on the first one. The sitemap list tells you what Google gets behind authorization, not what you get.

Other walls, all verified: the home feed renders 117 words before the login prompt, so it is a sample, not a source. Cleaned markdown drops every link, including the permalinks you need for crawling profiles, which is why the html-format recipe above exists. And logged-in-only surfaces (replies tabs, activity, follower lists) have no anonymous equivalent at all; the robots file bans those paths even for authorized search bots.

If Threads hardens further, the remaining anonymous surface shrinks to whatever the browser still renders, and there is no in-document fallback like the JSON-LD that carries Reddit’s public pages. Meta ships zero structured data here. When that surface disappears, the choice becomes the official API or a hosted actor, and both have terms attached.

The official API, and when to use it instead

Meta ships a real Threads API, and it is the right tool for one specific case: your own account. Publishing, reading your own posts and profile, managing replies, and insights all run through it with a Meta app and a Threads user access token. The permissions that would make it a scraping substitute are gated: threads_keyword_search (public keyword search) and threads_profile_discovery (public profile lookup) require approval with access restrictions, per Meta’s documentation as summarized in ScrapFly’s October 2026 guide. So the API covers publishing and self-analytics, while everyone else’s content stays in scraping territory.

The hosted-actor market reads the same pages this article does. Apify lists several no-login Threads actors (posts, profiles, search) that package this same render-and-parse approach behind an API with rotating infrastructure. If you need volume and a service-level agreement, that is the path that shifts the compliance burden onto a vendor’s contract. If you want the data on your own machine with no per-record pricing, the Magpie chain above is about six commands. The social media scrapers overview ranks both shapes across platforms.

How polite can you be

My full test was about 20 requests over an evening at 2 to 3 second spacing, seven of them consecutive browser renders, and no challenge or block appeared at any point. That is a small sample from a residential connection, and I did not test sustained volume, parallel sessions, or a datacenter IP. Threads is lighter-handed than most of Meta’s properties in anonymous mode, but the guardrails Meta applies to this site have changed at least once this month, so a throttle you set yourself is the only one you control.

A workable cadence: render the profile with --page-format html, pull the 18 post codes, fetch permalinks one at a time with a 3-second sleep between renders, and re-fetch profiles on a watch schedule rather than in a loop. For change detection on a profile you follow, Magpie’s watch mode on the profile URL gives you diff-on-change without re-rendering on a timer, and a watch counts as a single run in the Desktop app’s 5-free-runs trial.

FAQ

Is scraping Threads legal? Meta’s robots.txt states automated collection requires express written permission and links its Automated Data Collection Terms. Public pages are served to anonymous browsers, and courts in several jurisdictions have treated public-data scraping differently from logged-in data. For bulk or commercial use, get the permission the file asks for. Not legal advice.

Does Threads have an official API? Yes. It publishes posts, reads your own posts and profile, manages replies, and provides insights, via a Meta app and user access token. Public keyword search and profile discovery need separately approved permissions, so it does not replace scraping for other people’s content.

Can you scrape Threads without logging in? Yes, for public pages: profiles, post permalinks, keyword search, and tag feeds all rendered anonymously in a real browser on 2026-10-30. Replies tabs, follower lists, and activity views stay login-only, and the anonymous profile view caps out around 18 recent posts.

Why does my requests-based scraper return nothing? Threads serves anonymous static clients a 260 KB JavaScript shell with no profile data, no OpenGraph tags, and a generic title. The quality gate is right to call it empty. You need a real browser render, or an extraction route that reads the hydration payload after rendering.

Can Magpie scrape Threads? Partly. --render browser fetches every public page tested, with --page-format html exposing the exact-count payload. There is no Threads vertical, crawl refuses on robots.txt, and logged-in surfaces are out of scope entirely.

The chain, in six commands

magpie scrape "https://www.threads.com/@user" --render browser --page-format html --out p.html
python3 extract_profile.py p.html          # exact follower_count + 18 post codes
magpie scrape "https://www.threads.com/@user/post/<code>" --render browser --format json
magpie scrape ".../post/<code>" --render browser --page-format html --out t.html
python3 extract_thread.py t.html           # labeled reply counts + media URLs
sleep 3                                    # repeat per post, or hand off to watch

Start with one profile and one permalink before you script the loop. If the render starts returning the 260 KB shell instead of a title, the anonymous window has moved again, and the robots.txt comment was the honest announcement.

Stop renting credits.

One flat price, your machine, your keys.

Download free for Windows, macOS and Linux

Windows · macOS · Linux $49/mo flat, cancel anytime