{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Search Scraper | Keywords, Dates, Views | No Login",
    "description": "Search public Threads posts by keyword, phrase or hashtag, newest or top, by date or hour. Only posts that contain your keyword, view counts, language filter, only new posts for monitoring, replies with their parent post, profiles and account search. No login. From $0.99/1K.",
    "version": "0.1",
    "x-build-id": "RXWR5nTioeDxFOmkQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/monkey.d.scraping~threads-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-monkey.d.scraping-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/monkey.d.scraping~threads-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-monkey.d.scraping-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/monkey.d.scraping~threads-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-monkey.d.scraping-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words, phrases, brand names or #hashtags to search in public Threads posts. One per line, up to 100 per run. A phrase of several words returns posts that contain all of its words.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Results per keyword or account",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of rows to collect for each keyword or account. Each row is one dataset item and one charge.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "recent",
              "top"
            ],
            "type": "string",
            "description": "Recent returns the newest posts first and walks back in time until the limit or the start date. Top returns the posts Threads ranks highest in the period, most liked first (the last 30 days when no start date is set).",
            "default": "recent"
          },
          "startDate": {
            "title": "From date",
            "pattern": "^\\s*([+-]?\\s*\\d+\\s*([Mm]inute|[Hh]our|[Dd]ay|[Ww]eek|[Mm]onth|[Yy]ear)s?(\\s+ago)?|\\d{4}-\\d\\d-\\d\\d([T ]\\d\\d:\\d\\d(:\\d\\d)?(\\.\\d+)?)?\\s*([Zz]|[+-]\\d\\d:?\\d\\d)?)\\s*$",
            "type": "string",
            "description": "Only posts published on or after this moment. A date (2026-01-31), a date and time in UTC (2026-01-31T18:00), or a period back from now such as 6 hours, 7 days or 3 months. Leave empty to go back as far as posts exist."
          },
          "endDate": {
            "title": "To date",
            "pattern": "^\\s*([+-]?\\s*\\d+\\s*([Mm]inute|[Hh]our|[Dd]ay|[Ww]eek|[Mm]onth|[Yy]ear)s?(\\s+ago)?|\\d{4}-\\d\\d-\\d\\d([T ]\\d\\d:\\d\\d(:\\d\\d)?(\\.\\d+)?)?\\s*([Zz]|[+-]\\d\\d:?\\d\\d)?)\\s*$",
            "type": "string",
            "description": "Only posts published on or before this moment: a date (the whole day is included), a date and time in UTC, or a period such as 1 hour. Leave empty for now."
          },
          "exactMatch": {
            "title": "Only posts that contain the keyword",
            "type": "boolean",
            "description": "On: a post is saved only when every word of the keyword appears in its text, in the post it quotes or in its link preview, so you do not pay for off-topic results. Off: every post returned for the keyword is saved.",
            "default": true
          },
          "languages": {
            "title": "Post languages",
            "type": "array",
            "description": "Keep only posts written in these languages, as two-letter codes such as en, it, es, ja or zh. Leave empty for every language. The language comes from Threads or, when Threads gives none, from the text itself; posts too short to tell are left out when a language is chosen. Posts left out are not charged.",
            "items": {
              "type": "string"
            }
          },
          "onlyNewPosts": {
            "title": "Only posts not delivered before",
            "type": "boolean",
            "description": "For scheduled monitoring: each run returns only posts that earlier runs of the same search did not return, so you never pay twice for the same post. The list of delivered posts is kept in a key-value store of your account named threads-search-scraper-new-posts; each saved task keeps its own list.",
            "default": false
          },
          "usernames": {
            "title": "Accounts",
            "type": "array",
            "description": "Threads usernames or profile links, one per line, up to 100. Without keywords: the latest posts of each account. With keywords: the keyword search is limited to posts by these accounts.",
            "items": {
              "type": "string"
            }
          },
          "profileSections": {
            "title": "What to collect from each account",
            "type": "array",
            "description": "Used when accounts are given without keywords. The limit applies to each section.",
            "items": {
              "type": "string",
              "enum": [
                "posts",
                "replies",
                "reposts"
              ],
              "enumTitles": [
                "Posts",
                "Replies",
                "Reposts"
              ]
            },
            "default": [
              "posts"
            ]
          },
          "postUrls": {
            "title": "Post links",
            "type": "array",
            "description": "Links to single Threads posts (threads.com or threads.net), one per line, up to 1,000. Each returns the post with its current likes, replies, reposts and quotes.",
            "items": {
              "type": "string"
            }
          },
          "includeReplies": {
            "title": "Add the top replies of each post link",
            "type": "boolean",
            "description": "For every post link, also save the top replies shown under the post, one row each, with the post they answer.",
            "default": false
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "posts",
              "accounts"
            ],
            "type": "string",
            "description": "Posts: search posts by keyword. Accounts: find accounts that match each keyword, with followers, bio and verification.",
            "default": "posts"
          },
          "includeParentPost": {
            "title": "Add the post each reply answers",
            "type": "boolean",
            "description": "For every reply, add the text, author and link of the post it answers, so a reply can be read in context.",
            "default": true
          },
          "includeAuthorDetails": {
            "title": "Add followers and bio of each author",
            "type": "boolean",
            "description": "For every post found by keyword or link, add the follower count and bio of its author. Useful to rank voices by reach or build lead lists.",
            "default": false
          },
          "includeViews": {
            "title": "Add the view count of each post",
            "type": "boolean",
            "description": "Add how many times each post was viewed (viewCount), as shown publicly on Threads. Runs take a little longer.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}