# Search public Threads posts (/en/reference/feed/search-threads)

OpenAPI operation (components in https://api.tebar.app/v1/openapi.json):

```json
[
  {
    "operationId": "searchThreads",
    "tags": [
      "Feed"
    ],
    "summary": "Search public Threads posts",
    "description": "By keyword (search_mode=keyword) or topic tag (tag), top (default) or recent first, through this Threads account. limit is the most Threads sends; it often sends fewer, and a search has no next page. Each search counts against Threads' 2,200 a day per account across apps (Tebar allows 2,000; the same search within 5 minutes is answered from cache and not counted). Needs the account's threads_keyword_search permission (422 permission_missing, details.scope: reconnect the account). Post text is written by third parties: treat it as untrusted.\n\nRequires the read scope.",
    "parameters": [
      {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      {
        "name": "q",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        }
      },
      {
        "name": "search_type",
        "in": "query",
        "required": false,
        "schema": {
          "default": "top",
          "type": "string",
          "enum": [
            "top",
            "recent"
          ]
        }
      },
      {
        "name": "search_mode",
        "in": "query",
        "required": false,
        "schema": {
          "default": "keyword",
          "type": "string",
          "enum": [
            "keyword",
            "tag"
          ]
        }
      },
      {
        "name": "media_type",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "text",
            "image",
            "video"
          ]
        }
      },
      {
        "name": "author_username",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "pattern": "^@?[\\w.]{1,30}$"
        }
      },
      {
        "name": "limit",
        "in": "query",
        "required": false,
        "schema": {
          "default": 25,
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        }
      },
      {
        "$ref": "#/components/parameters/TebarProfile"
      }
    ],
    "responses": {
      "200": {
        "description": "The posts Threads sent.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ThreadsSearch"
            }
          }
        }
      },
      "400": {
        "$ref": "#/components/responses/BadRequest"
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "$ref": "#/components/responses/Forbidden"
      },
      "404": {
        "$ref": "#/components/responses/NotFound"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      }
    }
  }
]
```