---
title: "How to get Threads data"
description: "Search Threads posts by keyword and read any public profile, its posts and replies as JSON, without Meta app review. What the official Threads API allows, code and prices."
canonical_url: https://groundsocial.dev/guides/how-to-get-threads-data
---
# How to get Threads data

> Search Threads posts by keyword and read any public profile, its posts and replies as JSON, without Meta app review. What the official Threads API allows, code and prices.

_Checked 2026-11-27._

Meta’s Threads API publishes and reads the accounts that authorise your app; searching public posts needs a separately approved permission. A data API reads what Threads shows logged-out visitors: one GET searches public posts by keyword, 1 credit, and others read any profile and its posts.

> **Checked 27 November 2026** Every request on this page was run against the live API on that date, and the sample response is from that run. Official-API facts link to the platform’s own pages.

## The official Threads API

The Threads API is a Meta Graph API for the accounts that log in to your app.

- It publishes posts, manages replies and reads insights for the users who authorise the app.
- Keyword and topic-tag search across public posts needs the `threads_keyword_search` permission, granted through Meta app review; without it, search returns only the user’s own posts.
- Reading another account’s profile or posts by username is not part of the API.

Sources: [Threads API overview](https://developers.facebook.com/docs/threads/overview), [Keyword search](https://developers.facebook.com/documentation/threads/keyword-search).

## Quick start

1. **Get a key.** [Sign up](https://groundsocial.dev/app/sign-in?new=1) with an email code: 100 free credits, no card. An agent can sign itself up with `POST https://api.groundsocial.dev/v1/agent/signup`.
2. **Set it in your shell.** `export GROUNDSOCIAL_API_KEY=gs_live_…`
3. **Make the call.** Posts matching a keyword: `GET /v1/threads/search/posts`, 1 credit.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/threads/search/posts?q=coffee" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/threads/search/posts?q=coffee', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/threads/search/posts?q=coffee",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

## Sample response

Trimmed from the real response on 27 November 2026: lists cut to their first items and long strings shortened, private people’s names and handles cut to initials. Every field is described in the [tutorial](https://groundsocial.dev/tutorials/threads/search/python).

```json
{
  "posts": [
    {
      "pk": "4039043876535158894",
      "id": "4039043876535158894_76999027634",
      "code": "DgNkQGFGEhu",
      "taken_at": 1795711572,
      "text": "Good morning! ☕ That first warm sip makes the whole morning feel softer. How do you like your coffee?\n               \nMy Coffee 💜▓\nTara kape ☕️🫶",
      "media_type": 1,
      "user": {
        "pk": "76999027634",
        "username": "t.k.",
        "full_name": "L.B.",
        "is_verified": false
      },
      "like_count": 129,
      "reply_count": 120,
      "repost_count": 0,
      "quote_count": 1,
      "is_reply": false
    }
  ]
}
```

## What else you can get from Threads

| What you get | Endpoint | Credits |
| --- | --- | --- |
| [Posts matching a keyword](https://groundsocial.dev/tutorials/threads/search/python) | `GET /v1/threads/search/posts` | 1 |
| [A profile with follower count](https://groundsocial.dev/tutorials/threads/profile/python) | `GET /v1/threads/users/zuck` | 1 |
| [An account’s posts](https://groundsocial.dev/tutorials/threads/user-posts/python) | `GET /v1/threads/users/zuck/posts` | 1 |
| [One post](https://groundsocial.dev/tutorials/threads/post/python) | `GET /v1/threads/posts/DZpPDXbCeTt` | 1 |
| [Replies to a post](https://groundsocial.dev/tutorials/threads/replies/python) | `GET /v1/threads/posts/DZpPDXbCeTt/replies` | 1 |
| [Find accounts](https://groundsocial.dev/tutorials/threads/user-search/python) | `GET /v1/threads/search/users` | 1 |

Each row links to its tutorial. Every Threads endpoint and price: [Threads API](https://groundsocial.dev/threads-api).

## Tips

- `sort=recent` is newest first; the default `top` is Threads’ own ranking.
- For monitoring, search `sort=recent` on a schedule and keep the `pk`s you have seen.
- Logged-out search returns one page per query, so run several specific queries rather than one broad one.

## Use it from Claude or Cursor (MCP)

Every endpoint is also an MCP tool on the remote server `https://api.groundsocial.dev/mcp`. The `?platforms=threads` below loads only the Threads tools. The client signs in with OAuth, or send your key as a Bearer token. Tools used in this guide: `threads_search_posts`, `threads_user_get`, `threads_user_posts`, `threads_post_get`, `threads_post_comments`, `threads_search_users`.

Claude Code:

```bash
claude mcp add --transport http groundsocial "https://api.groundsocial.dev/mcp?platforms=threads"
```

Cursor:

```json
{
  "mcpServers": {
    "groundsocial": {
      "url": "https://api.groundsocial.dev/mcp?platforms=threads"
    }
  }
}
```

Claude.ai:

```text
Customize → Connectors → + Add → Add custom connector
URL: https://api.groundsocial.dev/mcp?platforms=threads
```

> **Then ask** “Search Threads for recent posts about “cold brew” and summarise what people complain about.”

Setup for ChatGPT, VS Code, Windsurf, n8n and others: [MCP client setup](https://groundsocial.dev/mcp).

## Pricing

Pay per call from prepaid credits; no subscription. 100 free credits cover the examples on this page. Costs below are at the [credit packs](https://groundsocial.dev/pricing)’ highest and lowest rates.

| Job | Credits | Cost |
| --- | --- | --- |
| Hourly search for one keyword, 30 days | 720 | $0.72 → $0.29 |
| 500 profiles with their posts | 1,000 | $1.00 → $0.40 |

## FAQ

### Do I need a Threads or Instagram account?

No. Calls read what Threads shows a logged-out visitor.

### Are failed calls charged?

No. A target that does not exist answers `404 target_not_found`, an upstream failure answers `503`, and neither costs anything. Credits never expire.

### Is Groundsocial official?

No. Groundsocial is an independent API that reads what the platform shows a logged-out visitor. Threads is a trademark of Instagram, LLC (Meta Platforms, Inc.). We are not affiliated with or endorsed by Threads, Instagram or Meta.

## Go deeper

- [Threads tutorials: 6 endpoints in six languages](https://groundsocial.dev/tutorials/threads)
- [What replaced CrowdTangle?](https://groundsocial.dev/answers/what-replaced-crowdtangle)
- [Does Threads have an API?](https://groundsocial.dev/answers/does-threads-have-an-api)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api)

## Related guides

- [How to get Instagram data](https://groundsocial.dev/guides/how-to-get-instagram-data)
- [How to get Bluesky data](https://groundsocial.dev/guides/how-to-get-bluesky-data)

Threads is a trademark of Instagram, LLC (Meta Platforms, Inc.). We are not affiliated with or endorsed by Threads, Instagram or Meta.

_Canonical HTML: https://groundsocial.dev/guides/how-to-get-threads-data_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial: Social data in one API call](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Playground](https://groundsocial.dev/playground.md)
- [Use cases](https://groundsocial.dev/use-cases.md)
- [Brand monitoring API](https://groundsocial.dev/use-cases/brand-monitoring-api.md)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api.md)
- [Comment scraping API](https://groundsocial.dev/use-cases/comment-scraping-api.md)
- [Influencer discovery API](https://groundsocial.dev/use-cases/influencer-discovery-api.md)
- [Video transcript API](https://groundsocial.dev/use-cases/video-transcript-api.md)
- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api.md)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api.md)
- [Trend detection API](https://groundsocial.dev/use-cases/trend-detection-api.md)
- [Social lead generation API](https://groundsocial.dev/use-cases/lead-generation-api.md)
- [Market research API](https://groundsocial.dev/use-cases/market-research-api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Guides","item":"https://groundsocial.dev/guides"},{"@type":"ListItem","position":3,"name":"How to get Threads data","item":"https://groundsocial.dev/guides/how-to-get-threads-data"}]}
```
