DEV Community

Jay
Jay

Posted on AI-assisted

How to Export a Full Threads Thread (Post, Author Follow-Ups and Nested Replies) to CSV Without Login

Longer updates on Meta Threads are usually split across a chain of self-replies from the author, followed by reader replies and nested back-and-forth underneath. Threads has no export button, and copying a thread by hand into a spreadsheet loses the reading order and which comment answered which.

Meta's official Threads API is built mainly for managing your own account and requires a Meta developer app and App Review. If you only need public posts and replies in CSV for research, archiving or reporting, you can collect them from Threads' public web endpoints without logging in.

This tutorial shows how to export a complete public Threads thread—the opening post, the author's follow-up posts in order, and nested replies—first in Apify Console without code, then through the Apify API in Python.

Disclosure: we built Threads Scraper at NexusCortex. It costs $2.00 per 1,000 results ($0.002 each) plus Apify's $0.00005 run start fee; Apify's free plan includes $5 of monthly usage, so you can test it without paying.

What you can and can't get without a login

Before starting a run, note what Threads exposes to logged-out visitors:

  • Author follow-up posts (includeAuthorThread): Starting from a post URL, the scraper saves the linked post (positionInThread: 1) and the author's follow-up posts after it in order (positionInThread: 2, 3, ...), sharing threadRootCode. If you link to a middle follow-up rather than the root post, Threads hides earlier posts, so numbering starts at the linked post.
  • Direct and nested replies (includeNestedReplies): Logged-out visitors see only the first page of Top replies and the first page of Recent replies. The scraper collects both and removes duplicates, yielding about 40 direct replies per post. Turning on includeNestedReplies expands replies to replies up to 6 levels deep, recording depth, parentReplyCode, parentPostCode and rootPostCode.
  • View counts (includeViewCounts): Optional. Reads viewCount on post rows via one extra request per post. Reply rows have no viewCount because Threads shows view counts only on posts.
  • Unfinished targets (SUMMARY.retryInput): If a run hits maxItems, budget or timeout, unfinished targets are marked partial in SUMMARY.targets, and SUMMARY.retryInput provides a pasteable input object to finish only those targets.

Option 1: Export a thread in Apify Console (no code)

  1. Open Threads Scraper and click Try for free (no credit card required for a free Apify account).
  2. Clear the pre-filled Profiles (usernames or URLs) field so only your post link runs.
  3. Under Post URLs, paste one or more public links (/@user/post/CODE, /t/CODE, threads.net or app threads.com/share/... links). Here we use https://www.threads.com/@zuck/post/DeZtrvAEfEr.
  4. Keep Include the author's thread enabled (pre-filled on in Console) and turn on Include replies to replies.
  5. Set Replies per post URL to 50 and Maximum results (total) to 60 (also your cost cap: 60 results cost $0.12).
  6. Click Start, then open the Output tab and click Export to download CSV, Excel or JSON.

What the exported rows look like

In our cloud test run across three post URLs with includeAuthorThread, includeNestedReplies and includeViewCounts enabled, 30 rows finished in under 30 seconds.

Below is an excerpt from that run—Mark Zuckerberg's four-post Muse Wonder thread (DeZtrvAEfEr), followed by a direct reply and a level-2 nested reply under NASA's Voyager 1 post (Df46GElEWj2):

type username code positionInThread / depth parentReplyCode likeCount viewCount text (shortened)
post zuck DeZtrvAEfEr pos 1 — 1,008 110,330 It's been just over a year since we started Meta Superintelligence Labs...
post zuck DeZtp7KER52 pos 2 — 100 11,303 You can use Muse Wonder to power your Muse by subscribing today...
post zuck DeZtp8hkWfQ pos 3 — 83 10,554 Muse Wonder is also available through Muse Code, the Meta Model API...
post zuck DeZtp8qkfMa pos 4 — 90 7,379 Muse Wonder is a major leap towards delivering personal superintelligence...
post nasa Df46GElEWj2 pos 1 — 45,169 1,014,483 As of 5:16 a.m. EST today, NASA's Voyager 1 spacecraft reached one light-day...
reply hanseidev Df49pPhH5Ae depth 1 null 497 — It blows my mind that 1970s hardware is now a full light day away from us...
reply _wotv_ Df5BAXZFBhC depth 2 Df49pPhH5Ae 118 — And yet our televisions stop working within 5-10 years…

Notice one quirk in the raw timestamps: follow-ups 2, 3 and 4 on DeZtrvAEfEr all share createdAt: 2026-10-12T16:56:28.000Z, earlier than post 1 (16:57:09.000Z). Using positionInThread instead of sorting by timestamp keeps the thread in reading order. On reply rows, parentReplyCode is null for direct replies (depth: 1) and holds the parent reply's code for deeper replies (depth: 2+), letting you rebuild the conversation tree in Excel, SQL or pandas.

Option 2: Export via the Apify API (Python)

Console options map directly to JSON over the Apify API. One default differs: includeAuthorThread is pre-filled on in Console, but defaults to false via API, so pass it explicitly.

Create a token in Apify Console > Settings > API & Integrations, then run:

pip install apify-client pandas
export APIFY_TOKEN=your_token
Enter fullscreen mode Exit fullscreen mode
import os
import pandas as pd
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("nexuscortex/threads-scraper").call(run_input={
    "postUrls": ["https://www.threads.com/@zuck/post/DeZtrvAEfEr"],
    "includeAuthorThread": True,
    "includeNestedReplies": True,
    "maxRepliesPerPost": 50,
    "maxItems": 60,
})

items = client.dataset(run.default_dataset_id).list_items().items
df = pd.DataFrame(items)
cols = [
    "type", "threadRootCode", "positionInThread", "depth",
    "parentReplyCode", "username", "createdAt", "likeCount",
    "replyCount", "text", "url",
]
df[[c for c in cols if c in df.columns]].to_csv("threads-thread.csv", index=False)
print(f"Saved {len(df)} rows to threads-thread.csv")

summary = client.key_value_store(run.default_key_value_store_id).get_record("SUMMARY")
if summary and summary["value"].get("retryInput"):
    print("Retry unfinished targets:", summary["value"]["retryInput"])
Enter fullscreen mode Exit fullscreen mode

The same JSON body also works with Apify's synchronous HTTP endpoint (/v2/acts/nexuscortex~threads-scraper/run-sync-get-dataset-items) from cURL, n8n, Make or Zapier. To attach each author's follower count and bio to every post and reply row, add "includeAuthorProfile": True (no extra result charge, though runs take longer).

Cost and limits

  • Pricing: $2.00 per 1,000 results ($0.002 each) on Free ($1.80 Bronze, $1.70 Silver, $1.60 Gold+), plus Apify's $0.00005 start fee. Proxy traffic and compute are included. A 60-row thread export costs $0.12; the $5 free monthly allowance covers about 2,500 results.
  • Limits: public posts only; about 40 direct replies per post when logged out (nested replies up to 6 levels); CDN media links expire after a few days; exported posts and replies are personal data under laws such as GDPR and CCPA.

Run it in Apify Console or through the API on Threads Scraper.

Top comments (0)