Threads post search API
Posts matching a keyword: one page of about 15 to 20 results, no paging.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
start_date and end_date filter the page by post date (Threads does not apply them itself).
You send query.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/threads/search" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'query=basketball'import os
import requests
params = {
"query": "basketball",
}
res = requests.get(
"https://api.socialscrape.io/v1/threads/search",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/threads/search");
url.search = new URLSearchParams({
query: "basketball",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Threads post search",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/threads/search",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "query",
"value": "basketball"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search terms. Also accepted as keyword, q. |
start_date | string | Only posts from this date (YYYY-MM-DD). Also accepted as startDate. | |
end_date | string | Only posts up to this date (YYYY-MM-DD). Also accepted as endDate. | |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_1606b873a2f08bbcddca5a85",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "threads",
"id": "4018945814638194513",
"url": "https://www.threads.com/@bookmakerstips/post/DfGKezVDW9R",
"type": "image",
"author": {
"id": "77238389559",
"handle": "bookmakerstips",
"name": "Book Makers",
"url": "https://www.threads.com/@bookmakerstips",
"avatar_url": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-19/752994703_17893726308573560_3020655541855839830_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZy...",
"verified": false
},
"title": null,
"text": "BOOOOOOM 💥 💥 \nBasketball done and dusted ✅️\nCongratulations ❤️ 🎉",
"published_at": "2026-10-29T23:14:57Z",
"duration_seconds": null,
"language": "en",
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": 2,
"comments": 0,
"shares": 0,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/879745885_17911689090573560_4594557330892881901_n.webp?_nc_cat=100&ig_cache_key=NDAxODk0NTgxNDYzODE5N...",
"video_url": null,
"audio_url": null,
"image_urls": [
"https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/879745885_17911689090573560_4594557330892881901_n.webp?_nc_cat=100&ig_cache_key=NDAxODk0NTgxNDYzODE5N..."
],
"width": 1125,
"height": 491
},
"song": null,
"location": null,
"is_pinned": false,
"is_sponsored": false,
"extra": {
"code": "DfGKezVDW9R",
"full_id": "4018945814638194513_77238389559",
"quotes": 0,
"reply_control": "everyone",
"reposts": 0
}
},
{
"object": "post",
"platform": "threads",
"id": "4018825113767779372",
"url": "https://www.threads.com/@atlantadream/post/DfFvCX4jBws",
"type": "video",
"author": {
"id": "63232452248",
"handle": "atlantadream",
"name": "Atlanta Dream",
"url": "https://www.threads.com/@atlantadream",
"avatar_url": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-19/842005499_17989100859108249_9049345542735375395_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZy...",
"verified": true
},
"title": null,
"text": "A SCRIBBLE, G SCRIBBLE ✍️. THE BIG AG! ALLISHA GR🅰️Y \n\nFrom timely buckets to a stellar defensive effort, Lish came in like the beat on 24s! She is YOUR @al...",
"published_at": "2026-10-29T19:15:38Z",
"duration_seconds": null,
"language": "en",
"hashtags": null,
"mentions": [
"albertapp"
],
"stats": {
"views": null,
"likes": 1531,
"comments": 30,
"shares": 176,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.71878-15/879376656_984030317470177_849654799963576848_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=110&ig_cache_key=NDAxO...",
"video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t16/f2/m84/AQOmaKESeWr8pOkJ3c0O-kE__uVf5E8p_LHJKVMYjtYHBejzxWKEh-KI9gXBY2g9OvzIjjTXIGvQ6OsicXX8VcvVW1V7I5CYd8oQ...",
"audio_url": null,
"image_urls": null,
"width": 1080,
"height": 1350
},
"song": null,
"location": null,
"is_pinned": false,
"is_sponsored": false,
"extra": {
"code": "DfFvCX4jBws",
"full_id": "4018825113767779372_63232452248",
"quotes": 18,
"reply_control": "everyone",
"reposts": 158,
"shares_sent": 16
}
}
],
"cursor": null,
"has_more": false,
"parent": null
},
"cursor": null,
"has_more": false
}Fields
A page of results. Each entry in items is a Post. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.threads.search(...) and the TypeScript client client.threads.search(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.