POST

Threads Search

/v1/threads/search

Search Threads posts by query string. Filter by top or recent results with configurable limits.

Request Parameters

ParameterTypeRequiredDescription
querystringYesSearch query string
search_typestringNo"top" or "recent" (default: top)
limitintNoMax results (1-100) (default: 20)

Example

curl -X POST https://query-data-api.notpeople.ai/v1/threads/search \
  -H "X-API-Key: th_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"query": "technology", "search_type": "top", "limit": 10}'

Response Schema

All responses include success, data, and usage fields.

FieldTypeDescription
metadata.urlstringSearch URL used
metadata.querystringSearch query string
metadata.search_typestringSearch type used (top or recent)
metadata.posts_foundintNumber of posts returned
metadata.elapsed_msintRequest duration in milliseconds
metadata.type_breakdownobjectCount of posts by type
metadata.with_mediaintNumber of posts with media attached
metadata.with_reply_to_postintNumber of posts with linked reply context
pkstringPrimary key identifier
idstringFull post ID (pk_userId)
graph_idstringGraph API ID
codestringPost shortcode for URL
textstringPost text content
taken_atintUnix timestamp
post_typestringPost type (post, reply, repost, quote)
usernamestringAuthor handle
full_namestringAuthor display name
user_idstringAuthor user ID
is_verifiedboolAuthor verification status
profile_pic_urlstringAuthor profile picture URL
reply_to_userstring | nullUsername being replied to
reply_to_postobject | nullFull post object being replied to
quoted_postobject | nullQuoted post data if applicable
like_countintNumber of likes
reply_countintNumber of replies
repost_countintNumber of reposts
quote_countintNumber of quotes
share_countintNumber of shares
is_pinnedboolWhether the post is pinned
media_typeintMedia type identifier
mediaarrayAttached media [{type, url, width, height}]
video_urlstring | nullDirect video URL if applicable
image_urlstring | nullDirect image URL if applicable

Example Response

{
  "success": true,
  "metadata": {
    "url": "https://www.threads.com/search?q=technology&serp_type=default",
    "query": "technology",
    "search_type": "top",
    "posts_found": 1,
    "elapsed_ms": 6081,
    "type_breakdown": { "post": 1 },
    "with_media": 0,
    "with_reply_to_post": 0
  },
  "data": [
    {
      "pk": "3861216015158238231",
      "id": "3861216015158238231_64697976210",
      "graph_id": "18078178052120522",
      "code": "DWVy4IYjlwX",
      "text": "Im kind of jealous of the times we had before technology...",
      "taken_at": 1774512839,
      "post_type": "post",
      "username": "fierceflrican",
      "full_name": "MISS FIERCE FL RICAN",
      "user_id": "64697976210",
      "is_verified": false,
      "profile_pic_url": "https://scontent.cdninstagram.com/.../photo.jpg",
      "reply_to_user": null,
      "reply_to_post": null,
      "quoted_post": null,
      "like_count": 2,
      "reply_count": 0,
      "repost_count": 1,
      "quote_count": 0,
      "share_count": 0,
      "is_pinned": false,
      "media_type": 19,
      "media": [],
      "video_url": null,
      "image_url": null
    }
  ],
  "usage": {
    "unique_posts": 83,
    "limit": 6000,
    "remaining": 5917
  }
}

Try this endpoint live

Sign up for free to try endpoints directly from the docs. No credit card required.

Create Free Account