{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Search Scraper: Recent Posts & Dates",
    "description": "Scrape Threads posts by keyword or hashtag, recent or top. Get text, date, likes, replies, reposts, author and media, plus follower counts on demand. Filter by date range, author, likes and exact match. No login. Export to JSON, CSV or Excel, or run via API and MCP.",
    "version": "0.1",
    "x-build-id": "I2ObTiKgO8vzCsiYU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wiseus-labs~threads-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wiseus-labs-threads-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/wiseus-labs~threads-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wiseus-labs-threads-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/wiseus-labs~threads-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wiseus-labs-threads-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": {
          "queries": {
            "title": "🔑 Search queries",
            "type": "array",
            "description": "Keywords, phrases or #hashtags to search on Threads, one per line. For example: coffee, remote work, #travel. Each query is searched separately and every post row says which query found it.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "🧭 Search type",
            "enum": [
              "recent",
              "top",
              "both"
            ],
            "type": "string",
            "description": "Recent shows the newest posts first and goes back in time. Top shows the posts Threads ranks as most relevant. Both mixes the two without duplicates. For example, pick Recent to watch a brand.",
            "default": "recent"
          },
          "exactMatch": {
            "title": "✅ Only posts that contain the keyword",
            "type": "boolean",
            "description": "Threads search also returns loosely related posts. When on, only posts whose text contains your keyword or phrase are kept, in any letter case. For example, \"coffee\" matches \"Coffee!\" and \"#coffee\". For #hashtags the word counts with or without the #. Turn off to get every post Threads returns.",
            "default": true
          },
          "includeAuthorDetails": {
            "title": "👥 Add author followers",
            "type": "boolean",
            "description": "Adds the follower count, profile links and profile topics of each author to the post rows, for example to find big creators. Runs take longer.",
            "default": false
          },
          "dateFrom": {
            "title": "📅 Posted after",
            "pattern": "^(|\\d{4}-\\d{2}-\\d{2}.*|\\s*\\d+\\s*(minute|minutes|min|mins|hour|hours|hr|hrs|h|day|days|d|week|weeks|w|month|months|year|years|y)\\s*(ago)?\\s*)$",
            "type": "string",
            "description": "Only posts published on or after this date. Pick a date (YYYY-MM-DD, UTC) or a relative time such as \"7 days\" (7 days ago). Through the API you can also use hours, for example \"24 hours\". For monitoring, schedule a daily run with \"1 day\" here to get only new posts."
          },
          "dateTo": {
            "title": "📅 Posted before",
            "pattern": "^(|\\d{4}-\\d{2}-\\d{2}.*|\\s*\\d+\\s*(minute|minutes|min|mins|hour|hours|hr|hrs|h|day|days|d|week|weeks|w|month|months|year|years|y)\\s*(ago)?\\s*)$",
            "type": "string",
            "description": "Only posts published on or before this date. A date (YYYY-MM-DD, UTC) includes that whole day. A relative time such as \"2 days\" means up to 2 days ago. Leave empty for up to now."
          },
          "author": {
            "title": "Author username",
            "type": "string",
            "description": "Only posts by this Threads user, for example \"nasa\". The @ is optional."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many likes, for example 10. 0 keeps all posts.",
            "default": 0
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Keep posts that are replies to other posts. Turn off to get only original posts.",
            "default": true
          },
          "uniqueAuthors": {
            "title": "One post per author",
            "type": "boolean",
            "description": "Keep at most one post per author for each query, the first one found. Use it to get a list of different creators. Skipped posts do not count toward the maximum.",
            "default": false
          },
          "maxPostsPerQuery": {
            "title": "Max posts per query",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many posts to save for each query, for example 100. Posts removed by your filters do not count. Threads shows a limited number of posts per hour of history, so very busy keywords are sampled rather than complete.",
            "default": 50
          },
          "maxItems": {
            "title": "Max posts in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many posts across all queries, for example 500. 0 means no limit.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Queries in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many queries are searched at the same time, for example 5. Keep the default unless you have a reason to change it.",
            "default": 5
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}