---
title: "Threads Post Search API"
method: GET
path: "/v1/threads/search"
tags: ["Threads"]
---

# Threads Post Search API

`GET /v1/threads/search`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/threads/search`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Threads keyword search — posts with engagement + media.

Pass a keyword and get public Threads posts from Meta's Top SERP hydrate as clean JSON: id, code, url, text, ISO publishedAt, author{username,displayName,verified}, engagement{views,likes,replies,reposts,quotes}, threadId/isReply/isQuote, and media[] (carousel children deduped — the same image never appears twice in different crops). orderBy=relevant (default) keeps Meta's query ranking; post_dated sorts that fetched window by publishedAt newest-first; engagement ranks by likes+replies+reposts+quotes+views. Unknown orderBy is 400. The sort is the returned page, not a second crawl of Threads. Flat 2 credits (parity with twitter/search). When Meta's search page itself renders 'No results' the answer is an immediate empty 200 at 0 credits — a definitive verdict, not an outage, so there is nothing to retry. A transient Meta miss is retried in-request, then rescued by the same query's 6h last-good page (labelled stale:true + cached:true, fetchedAt = scrape time, servedAt = now, 0 credits), then the fallback path. A retryable 502 UPSTREAM_UNAVAILABLE (0 credits) is returned only when every path missed — the endpoint never answers 404 “No posts found” for an upstream outage. Pass cache=true for the 24h shared cache (0 credits on hit).

Docs: https://captapi.com/apis/threads-search

## Query parameters

- `q` string, required
- `limit` integer
- `orderBy` string
- `cache` boolean

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `query` string: The search query you sent.
    - `totalReturned` integer: Number of items returned in this response.
    - `results` object[]
      - `platform` string: Platform identifier for this response (matches the endpoint's platform).
      - `id` string: Id of this results item.
      - `code` string: Code. Example: "DbkGsmYk-Ah".
      - `url` string: Canonical URL of the item.
      - `text` string: Text content.
      - `publishedAt` string: Post publish time as ISO-8601 UTC (Meta Top SERP — may be months old).
      - `threadId` string: Thread id. Example: "3955315825888714785".
      - `replyToId` unknown
      - `quoteId` unknown
      - `isReply` boolean: Whether the tweet is a reply.
      - `isQuote` boolean: Is quote. Example: false.
      - `author` object: Author name or handle.
        - `username` string
        - `displayName` string
        - `verified` boolean
      - `engagement` object: Engagement metrics for the item.
        - `views` unknown
        - `likes` integer
        - `replies` integer
        - `reposts` integer
        - `quotes` integer
      - `media` string[]: CDN URLs for the post's images/videos. Carousel children are deduped by file — the same image never repeats in a different crop.

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
