Threads post search
Beta GET /v1/threads/search
GET /v1/threads/search
Posts matching a keyword: one page of about 15 to 20 results, no paging. start_date and end_date filter the page by post date (Threads does not apply them itself).
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search terms. Also accepted as keyword, q. |
start_date | string | no | Only posts from this date (YYYY-MM-DD). Also accepted as startDate. |
end_date | string | no | Only posts up to this date (YYYY-MM-DD). Also accepted as endDate. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl
curl -G "https://api.socialscrape.io/v1/threads/search" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "query=basketball"Python
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,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])TypeScript
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);
}n8n
{
"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": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"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=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-1.cdninstagram.com&_...",
"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=NDAxODk0NTgxNDYzODE5NDUxMw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHM...",
"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=NDAxODk0NTgxNDYzODE5NDUxMw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkZFRUQueHBpZHM..."
],
"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=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDAwLmMyIn0&_nc_ht=scontent-ord5-1.cdninstagram.com&_...",
"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 @albertapp Player of the Game ✅",
"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=NDAxODgyNTExMzc2Nzc3OTM3Mg%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI...",
"video_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t16/f2/m84/AQOmaKESeWr8pOkJ3c0O-kE__uVf5E8p_LHJKVMYjtYHBejzxWKEh-KI9gXBY2g9OvzIjjTXIGvQ6OsicXX8VcvVW1V7I5CYd8oQUGc.mp4?_nc_cat=107&_nc_sid=5e9851&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_ohc=...",
"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
}Response#
A list of Post objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Related endpoints#
- Threads profile (
GET /v1/threads/profile) - Threads profile posts (
GET /v1/threads/profile/posts) - Threads post (
GET /v1/threads/post) - Threads user search (
GET /v1/threads/search/users)