API · Threads
GET /threads/search/posts
Search Threads posts by keyword, top or newest first.
| Request | GET /v1/threads/search/posts |
| Operation id | threads.search.posts |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search Threads posts by keyword, top or newest first.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | Search text. Example: coffee. |
sort | "top" | "recent" | no | top (default, Threads’ ranking) or recent (newest first). One of top, recent. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Matching posts. | ThreadsPostList |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The account or post does not exist, or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Threads is temporarily unavailable. Retryable; nothing was charged. | Error |
ThreadsPostList fields
| Field | Type | Description |
|---|---|---|
posts | ThreadsPost[] | |
next_cursor | string | null | Pass as cursor for the next page; null on the last page. |
Errors use one shape everywhere; see Errors for every code and what to do.