# Threads Posts Scraper: Profile Timelines & Engagement (`xmolodtsov/threads-posts-scraper`) Actor

Scrape threads posts from public profile timelines by username or profile URL. Export text, timestamps, likes, replies, reposts, quotes, media URLs and author details.

- **URL**: https://apify.com/xmolodtsov/threads-posts-scraper.md
- **Developed by:** [GoFetch](https://apify.com/xmolodtsov) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

Scrape threads posts from public profile timelines using usernames or profile URLs. This scraper for threads posts returns post text, timestamps, engagement counts, media URLs, permalinks and public author details in a structured dataset. Use it for brand monitoring, content research, reporting and collecting your own public publishing history without a login or account cookies.

### What data you get

One output row represents one unique public post from the requested profile's timeline. A timeline page can contain several posts in a thread; each eligible post gets its own row. Repeated posts across pages are saved once per run, including after a restart. Posts by other authors embedded in a timeline are excluded.

The dataset includes:

- The exact post `id`, caption `text`, UTC `timestamp` and `permalink`.
- Public `likeCount`, `replyCount`, `repostCount` and `quoteCount` values.
- A `media` array of image or video URLs, including carousel items.
- An `author` object with public profile ID, username, display name and verification status.

Unavailable text or counts are represented by `null`; an empty media array is valid for a text-only post. Counts are a snapshot of what the public endpoint exposes during collection. They can change between runs.

This actor reads profile timelines. It does not collect the replies beneath an individual post. The separate replies actor takes post URLs; find it in the developer's scraper links below. Follower lists, contact enrichment, private posts and authenticated account data are outside this actor's scope.

### How to use it

#### Apify Console

1. Open the actor in [Apify Console](https://console.apify.com/actors).
2. Enter one or more usernames or profile URLs in **Usernames or profile URLs**.
3. Set **Maximum posts per profile** and **Maximum total results**. The supplied example uses NASA and ten posts.
4. Keep the default Apify datacenter proxy settings and start the run.
5. Open the Dataset tab to inspect the overview and export JSON, CSV, Excel or another supported format.

Use a small first run to confirm the fields meet your needs. For several profiles, `maxPostsPerProfile` limits each profile separately while `maxResults` limits the combined dataset. Inputs are processed in order, so an earlier profile can use the remaining global allowance.

#### API and MCP

Start a run through the API using an Apify token stored in your environment. The asynchronous endpoint returns a run ID; poll the run to completion, then read its default dataset.

```bash
curl --request POST \
  'https://api.apify.com/v2/acts/xmolodtsov~threads-posts-scraper/runs' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"usernames":["nasa"],"maxPostsPerProfile":10,"maxResults":10}'
```

Read the [Actor API guide](https://docs.apify.com/api/v2/acts) for run options and dataset access. The same actor input can be used from an Apify MCP client: ask it to run this actor with a public profile username and a result limit, then retrieve the dataset. Supply explicit limits when an automated assistant chooses the input.

### Pricing

Billing uses saved results: one unique post successfully written to the dataset is one result. Duplicate posts and failed requests do not create additional billable rows. There are no start fees or optional charge events in this actor.

| Apify plan | Price per 1,000 results |
| --- | --- |
| FREE | $2.28 |
| BRONZE | $2.05 |
| SILVER | $1.82 |
| GOLD | $1.60 |

Platinum and Diamond use the Gold rate. At the listed rates, 200 saved posts cost $0.456 on Free, $0.410 on Bronze, $0.364 on Silver or $0.320 on Gold. A ten-post run is $0.0228 at the Free tier or $0.0160 at Gold, before any applicable plan credits. The Free-tier 200-post example requires multiple runs because of the per-run cap. If a source ends after fewer posts, only the saved rows count. A user's maximum charge setting can stop the run before the requested result count.

#### Is it free?

Apify free plan users can collect up to **100 results per run** and make **20 runs per calendar month**. These are limits set by this developer, rather than general Apify platform limits. Free-plan credits may cover charges at the Free-tier price above; the actor is priced per result.

The monthly allowance resets at the start of a new UTC calendar month and is shared across this actor's runs for your user account. A run refused because all 20 slots are used ends SUCCEEDED with a clear quota message and makes no scraping requests. Free runs always use Apify Proxy; custom proxy URLs are ignored. Paid plans remove these developer free-plan caps, subject to your input and charge limits.

### Input

```json
{
  "usernames": ["nasa"],
  "maxPostsPerProfile": 10,
  "maxResults": 10,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

| Field | Meaning |
| --- | --- |
| `usernames` | Required array of 1–100 public profile usernames, @handles or Threads profile URLs. Handles are normalized and duplicate inputs removed. |
| `maxPostsPerProfile` | Positive integer from 1 to 10,000. Default 100; the example uses 10. Limits post rows, not thread edges. |
| `maxResults` | Positive integer from 1 to 10,000. Default 100; the example uses 10. Global saved-row cap across all profiles. |
| `proxyConfiguration` | Apify datacenter only, automatic by default. Paid callers may supply their own `proxyUrls` (their bandwidth) or set `useApifyProxy: false` for direct access. Free runs always use automatic Apify datacenter. |

Proxy options are limited to `useApifyProxy` (boolean), `proxyUrls` (array of proxy URLs), `apifyProxyGroups` and its SDK alias `groups`. Group arrays accept `BUYPROXIES94952` or `SHADER`, case-insensitively; an empty array means automatic datacenter. When both aliases are set, a nonempty `groups` array takes precedence. Unsupported groups, country/subdivision selection, tiered routes and other SDK options fail as `invalid:` before any proxy request. The JSON editor exposes only this supported configuration; proxy credentials belong only in your own custom URLs. Free runs ignore custom URLs, direct selection and accepted datacenter groups.

Both current threads.com and legacy threads.net profile URLs are accepted. Post URLs are rejected: provide the profile that owns the timeline. No password, session token, login cookie or account connection is needed or accepted as an input field.

The source may expose fewer posts than requested. The 10,000 input limit is a safety bound, not a promise of historical coverage. Pagination follows public cursors, has a finite page bound and stops before the run deadline. There is no date filter or keyword search in this actor; filter exported rows downstream.

### Output

The default dataset overview shows the post ID, text, timestamp, engagement counts, media, permalink and author. This is an actual saved post from a public-profile run:

```json
{
  "id": "4025371820235557316",
  "text": "Do you want to be an astronaut?\n\nApplications are now open to join NASA's astronaut corps. Join us as we expand the frontiers of discovery in low Earth orbit, on the Moon, and beyond — apply by Dec. 3",
  "timestamp": "2026-11-07T20:03:13.000Z",
  "likeCount": 2291,
  "replyCount": 153,
  "repostCount": 200,
  "quoteCount": 44,
  "media": [
    {
      "type": "video",
      "url": "https://scontent-dfw6-2.cdninstagram.com/o1/v/t16/f2/m84/AQOTFJma4p5XAdpw0KuqSdiyHCFH5gdyXrZWfPXdKu4b-BzbA09VqBfQPzn-RDCYfUtSdJfWHzooEr5kEYQ3tyzERVpU1M_pis3qWmE.mp4?_nc_cat=102&_nc_sid=5e9851&_nc_ht=scontent-dfw6-2.cdninstagram.com&_nc_ohc=37pCoA4fPjEQ7kNvwFlmn0u&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uRkVFRC5DMy4xMjgwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTgxMjgxNTgyMTk5NjAzODksImFzc2V0X2FnZV9kYXlzIjoxMCwidmlfdXNlY2FzZV9pZCI6MTAxNjQsImR1cmF0aW9uX3MiOjY0LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&ccb=17-1&vs=a077fc9e1101fa33&_nc_vs=HBksFQIYTGlnX2JhY2tmaWxsX3RpbWVsaW5lX3ZvZC8zNTFCOTZBMDU1MDk0NjBEQjgwNDI3NTA1OEUwN0I5MF92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0YyMUU5NzU4RDFBOTRGNkE5RjdCMkI5RjNENURCQTA3X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwOIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRJjb3B5X3NhbXBsZV9ncm91cHMBMRUAACaKgZDy192zQBUCKAJDMywXQFAEGJN0vGoYEmRhc2hfYmFzZWxpbmVfMV92MREAdeoHZeieAQA&_nc_gid=DGAlHxNkUKG7JO9nru6HCg&_nc_ss=78289&_nc_map=urlgen_bucketless&_nc_zt=28&oh=00_AQRgeCH19qSf9QA1ilB0Us4b-aKDgdrf52HDbvGbTiI4Kw&oe=6AFEBC62"
    }
  ],
  "permalink": "https://www.threads.com/@nasa/post/Dfc_lfaAgnE",
  "author": {
    "id": "28829152388",
    "username": "nasa",
    "name": "NASA",
    "verified": true
  }
}
```

![Public post dataset preview](https://api.apify.com/v2/key-value-stores/2DxCOvbMjhvK3S1qP/records/threads-posts-scraper-output.png)

The preview shows the same saved dataset in a compact table. Media URLs point to the source CDN and expire. Download media promptly in your own workflow if you need an archive; storing a CDN URL alone does not preserve the file. The actor exports links rather than downloading image or video files. Nested `author` and `media` values are easiest to consume in JSON; select or flatten fields for spreadsheet exports.

### Guarantees and failure semantics

Saved rows are deduplicated by exact post ID before writing. On restart, the actor reads existing rows from the default dataset, restores their IDs and counts, and continues within the original limits. Dataset writes are serialized so the charge limit is checked between writes. An append is never retried blindly. If its acknowledgement is lost, collection stops, the actor reconciles saved IDs and per-profile counts against the default dataset, and finishes with the saved output. A resumed run keeps its original monthly admission, including across a UTC month boundary. Changing input limits during a resumed run is not a supported way to extend the original job.

A zero-row run is SUCCEEDED as “no results” only when the source confirms an empty timeline, private profile or missing profile. Private metadata (`text_post_app_is_private: true`) needs no timeline; `STATISTICS.inputs` marks it `private: true`. Missing profiles are marked `invalid: true`; public timelines with no eligible posts are marked `sourceEnd: true`. All three have `confirmedEmpty: true` and no failure reason. A timeline ending with `has_next_page=false` is a normal source end. A missing profile can mean a renamed or unavailable account; it does not establish whether the account exists for logged-in visitors. A login wall alone confirms none of these states, including for suspended accounts.

A zero-row run is FAILED when the public timeline cannot be answered. Status messages begin with `blocked:`, `network:`, `timeout:`, `invalid:` or `outdated:` to distinguish access challenges, transport trouble, deadlines, invalid input and changes to the public data format. The actor discovers the pagination operation from public JavaScript bundles during each run; a previously observed ID is accepted only after a valid pagination response. It does not silently claim success on an unverified first page.

If posts were already saved before a later source error, the run ends SUCCEEDED with partial output. Check `STATISTICS` in the run's key-value store for per-profile saved counts, failures, source-end flags, answered percentage, request totals and block rate. A successful run does not promise that every requested profile or historical post was available. Repeated or missing cursors stop collection and are recorded as a source-format failure. Access challenges trigger bounded retries with fresh proxy sessions; the actor never switches automatically to a more expensive proxy class.

### Integrations

Export datasets through [Apify's dataset API](https://docs.apify.com/api/v2/datasets) or connect a completed run to an Apify integration. Make and n8n workflows can pass a list of profiles, wait for completion and forward selected fields to a spreadsheet or reporting database. Webhooks and schedules can automate recurring collection through your own Apify account.

For recurring monitoring, use the post ID as your downstream key. Deduplication inside this actor covers one run and its restarts; separate daily runs may intentionally return the same post with updated counts. Keep your own observation date when comparing engagement over time. If partial results are unsuitable for a report, inspect `STATISTICS` before importing the dataset.

### More scrapers from this developer

**TikTok:** [TikTok Search Scraper](https://apify.com/xmolodtsov/tiktok-search-scraper): Videos and creators for any keyword, pay per result ·
[TikTok Profile Scraper (Pay Per Result)](https://apify.com/xmolodtsov/tiktok-profile-scraper): Profiles, followers and latest posts by username ·
[TikTok Comments Scraper](https://apify.com/xmolodtsov/tiktok-comments-scraper): Comments and full reply threads from any video ·
[TikTok Hashtag Scraper](https://apify.com/xmolodtsov/tiktok-hashtag-scraper): Videos for any hashtag, with views, likes and music ·
[TikTok Sound & Music Scraper](https://apify.com/xmolodtsov/tiktok-sound-scraper): Videos that use a sound or song ·
[TikTok Top Ads Scraper](https://apify.com/xmolodtsov/tiktok-top-ads-scraper): Public Creative Center ad rankings, engagement, media and landing pages

**Social & news:** [Reddit Search Scraper](https://apify.com/xmolodtsov/reddit-scraper): Posts by keyword, subreddit or author ·
[Google News Scraper](https://apify.com/xmolodtsov/google-news-scraper): Google News results as clean full-text articles ·
[Threads Replies Scraper](https://apify.com/xmolodtsov/threads-replies-scraper): Public post replies, likes, authors and inline nested replies

**Instagram:** [Instagram Reel Scraper](https://apify.com/xmolodtsov/instagram-reel-scraper): Public profile reels, plays, captions, music and media URLs ·
[Instagram Comment Scraper](https://apify.com/xmolodtsov/instagram-comment-scraper): Public post and reel comments, likes, timestamps and usernames ·
[Instagram Post Scraper](https://apify.com/xmolodtsov/instagram-post-scraper): Public profile posts, likes, captions, locations and media URLs

**E-commerce:** [Prom.ua Product Search Scraper](https://apify.com/xmolodtsov/prom-ua): Prom.ua product search results, no browser needed ·
[Amazon Product Search & Bestsellers Scraper](https://apify.com/xmolodtsov/amazon-search-scraper): Search results and product details from Amazon ·
[AliExpress Search Scraper](https://apify.com/xmolodtsov/aliexpress-search-scraper): AliExpress products by keyword with prices, orders and shipping ·
[AliExpress Product Reviews Scraper](https://apify.com/xmolodtsov/aliexpress-reviews-scraper): Public product reviews, ratings, buyer photos and follow-up feedback

**Maps & leads:** [Google Maps Scraper](https://apify.com/xmolodtsov/google-maps-scraper): Places, leads and emails from Google Maps

**Ads:** [Facebook Ad Library Scraper (Meta Ads Library)](https://apify.com/xmolodtsov/facebook-ads-library-scraper): Ads from the Meta Ad Library, with EU reach and payers ·
[Google Ads Transparency Scraper](https://apify.com/xmolodtsov/google-ads-transparency-scraper): Google ad creatives by advertiser or domain, with regional details

**Video:** [YouTube Transcript Scraper](https://apify.com/xmolodtsov/youtube-transcript-scraper): Transcripts, subtitles and captions from YouTube videos ·
[YouTube Shorts Scraper](https://apify.com/xmolodtsov/youtube-shorts-scraper): Shorts of any channel with exact views, likes and duration ·
[YouTube Channel Scraper](https://apify.com/xmolodtsov/youtube-channel-scraper): Every video of a channel, with channel stats ·
[YouTube Search Scraper](https://apify.com/xmolodtsov/youtube-search-scraper): Search results and videos for any keyword ·
[YouTube Comments Scraper](https://apify.com/xmolodtsov/youtube-comments-scraper): Comments, replies and likes from any video ·
[Bilibili Comments Scraper](https://apify.com/xmolodtsov/bilibili-comments-scraper): Public hot comments and reply threads by video or keyword

**Jobs:** [SEEK Job Listings Scraper](https://apify.com/xmolodtsov/seek-jobs-scraper): Public AU/NZ job listings, salaries and redacted descriptions

### FAQ

#### Can it collect replies to a post?

This actor collects a profile's timeline posts. Use the separate replies actor listed above for a post's discussion, supplying post URLs there. The `replyCount` field here is a public count, not an embedded collection of replies.

#### Why did I receive fewer posts than requested?

The public timeline may end early, the profile may be private or missing, or your global, per-profile or charge limit may have been reached. Later access errors can also leave a partial dataset. Inspect the run message and `STATISTICS` before assuming a profile has no more content. Public web endpoints do not guarantee complete historical coverage.

#### Is it legal to scrape threads posts?

This actor accesses public data only and does not bypass login walls. Your use of collected data must comply with applicable laws, platform terms and privacy obligations, including GDPR and CCPA where relevant. Public availability does not remove responsibilities around personal data, retention or redistribution. Collect only what your purpose requires and obtain qualified advice for your circumstances.

#### Can media links be used later?

Source CDN URLs expire and may stop working. Fetch files promptly if your workflow requires them, and respect the rights attached to the source material. A later run may provide refreshed URLs for posts that remain publicly available.

### Support

Use the actor's [Apify Issues tab](https://apify.com/xmolodtsov/threads-posts-scraper/issues) for reproducible failures or field questions. Include the run ID, approximate run time, the failure token and a minimal public-profile input. Do not share API tokens, proxy credentials or account cookies. A run ID lets support inspect the stored statistics and distinguish an empty source from a transport or format problem.

# Changelog

This Actor's version history is a separate document: https://apify.com/xmolodtsov/threads-posts-scraper/changelog.md

# Actor input Schema

## `usernames` (type: `array`):

Public Threads profile usernames, @handles, or threads.com/net profile URLs. Post URLs are not accepted.

## `maxPostsPerProfile` (type: `integer`):

Stop after this many unique public posts from each profile. A timeline may end before this number.

## `maxResults` (type: `integer`):

Maximum unique posts saved across all profiles. Apify free plan: 100 results per run, 20 runs per month (developer limits).

## `proxyConfiguration` (type: `object`):

Apify Proxy is datacenter only (automatic, BUYPROXIES94952 or SHADER). Supports useApifyProxy, proxyUrls, apifyProxyGroups and its groups alias; country and other SDK options are rejected. Paid callers may use their own proxyUrls or direct access. Free runs ignore custom URLs and use automatic Apify datacenter.

## Actor input object example

```json
{
  "usernames": [
    "nasa"
  ],
  "maxPostsPerProfile": 10,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One unique public post per row with id, text, timestamp, engagement counts, media, permalink and author.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "usernames": [
        "nasa"
    ],
    "maxPostsPerProfile": 10,
    "maxResults": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xmolodtsov/threads-posts-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "usernames": ["nasa"],
    "maxPostsPerProfile": 10,
    "maxResults": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("xmolodtsov/threads-posts-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "usernames": [
    "nasa"
  ],
  "maxPostsPerProfile": 10,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call xmolodtsov/threads-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xmolodtsov/threads-posts-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/89g0qrwM1qMUsVixt/builds/YtcB4EAnCNdQFrBFu/openapi.json
