{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Keyword & Hashtag Search Scraper — Posts + Metrics",
    "description": "Search public Threads (threads.com) by keyword or hashtag and get every post on the results page: text, author, likes, replies, reposts, quotes, media, links and exact timestamp. Bulk keyword lists, date and engagement filters, no login. $1 per 1,000 posts, no per-run fee.",
    "version": "0.1",
    "x-build-id": "BRLt0wH8FiJmaTbWt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~threads-keyword-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-threads-keyword-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapersdelight~threads-keyword-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-threads-keyword-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapersdelight~threads-keyword-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-threads-keyword-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "Keywords / hashtags",
            "type": "array",
            "description": "One search term per line. Plain words (`coffee shop`), hashtags (`#marketing`) and pasted Threads search URLs all work. Leave empty to run the built-in sample so you can see the output shape.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Which search surface",
            "enum": [
              "both",
              "top",
              "tags"
            ],
            "type": "string",
            "description": "`top` is the main Threads search results page (serp_type=default). `tags` is the hashtag surface for the same term. They return overlapping but genuinely different sets — measured 2026-09-02, the two surfaces shared only 6-11 of ~21 posts each — so `both` is the default and yields the most unique posts per term.",
            "default": "both"
          },
          "passesPerSurface": {
            "title": "Passes per surface",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many times to re-request each surface. Threads has no logged-out pagination cursor, but the SERP rotates between requests, so extra passes surface posts the first one missed. Measured over 3 passes x 2 surfaces (6 requests): 52 unique posts for `coffee`, 54 for `marketing`, versus ~21 from a single request. You are billed per delivered post, so a pass that returns nothing new costs nothing.",
            "default": 1
          },
          "maxPostsPerKeyword": {
            "title": "Max posts per keyword",
            "minimum": 0,
            "type": "integer",
            "description": "Stop collecting a term once this many posts have been delivered for it. The realistic ceiling from the logged-out search surfaces is roughly 50-70 unique posts per term, so a higher number simply means 'no per-term cap'. 0 = no cap.",
            "default": 100
          },
          "maxItems": {
            "title": "Max posts in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard stop for the whole run, across every keyword. Keeps a large keyword list from running away. 0 = no limit.",
            "default": 1000
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only return posts with at least this many likes. Useful for cutting the long tail when you are looking for what actually got traction. 0 = keep everything.",
            "default": 0
          },
          "postedWithinDays": {
            "title": "Only posts from the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Threads search mixes fresh posts with older high-performers — the sample of 252 real results spanned 2023 to today. Set this to 7 or 30 for a monitoring run. 0 = no date filter.",
            "default": 0
          },
          "excludeReplies": {
            "title": "Exclude replies",
            "type": "boolean",
            "description": "Drop posts that are a reply to someone else's post and keep only standalone posts. Measured fill: about 12% of search results are replies.",
            "default": false
          },
          "onlyWithLinks": {
            "title": "Only posts containing a link",
            "type": "boolean",
            "description": "Keep only posts that carry an outbound URL (in the text or as a link-preview card). This is the lead-gen filter — it finds the people promoting something. It is a strict filter: measured 2.4% of search results carry a link.",
            "default": false
          },
          "requestConcurrency": {
            "title": "Parallel keywords",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many keywords to search at the same time. 3 is a good balance; raising it past 5 makes threads.com serve its logged-out interstitial more often, which just costs retries.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxy is the default and is what this Actor's reliability was measured on (12 of 12 search pages read, 9 first try, 3 on a retry). Switch to RESIDENTIAL only if a run reports blocked terms — a search page is about 1 MB, so residential traffic costs real money.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}