{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Scraper: Posts, Profiles, Search and Replies, No Login",
    "description": "Scrape Threads in one actor: posts by keyword or hashtag, profile posts with followers and bio, and post links with their replies. Text, author, likes, replies, reposts, shares, views, media and time. No login. From $1 per 1,000 results, platform usage included.",
    "version": "0.1",
    "x-build-id": "B5cyfBOT0CQIhacty"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~threads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-threads-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/one_dollar_store~threads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-threads-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/one_dollar_store~threads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-threads-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",
        "required": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "Keywords, hashtags, profiles or post links",
            "minItems": 1,
            "type": "array",
            "description": "One entry per line, mixed freely. A keyword or phrase (espresso, standing desk) is searched on Threads. A #hashtag (#coffee) gives posts that carry the tag. An @username or profile link (@nasa, https://www.threads.com/@nasa) gives the posts on that profile. A post link (https://www.threads.com/@nasa/post/Dd6o9h3ERXF or a threads.net/t/ short link) gives the post and the replies under it. Threads search links (threads.com/search?q=...) work too.",
            "items": {
              "type": "string"
            }
          },
          "resultsType": {
            "title": "Read plain words as",
            "enum": [
              "auto",
              "search",
              "hashtag",
              "profile",
              "post"
            ],
            "type": "string",
            "description": "What a plain word or phrase without @, # or a link stands for. Detect from each entry treats it as a search keyword. Pick Profile posts to read plain names as usernames (nasa means @nasa), Hashtag posts to read them as hashtags, or Post with replies to read bare post codes. Links, @usernames and #hashtags are always read as what they are.",
            "default": "auto"
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 10,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after this many rows in total (posts and replies). Minimum 10, maximum 10,000. Threads shows a logged out visitor one page per keyword and search list (about 15 to 35 posts), 5 to 10 posts per profile and the first batch of replies under a post, so add more entries for more rows.",
            "default": 100
          },
          "searchSort": {
            "title": "Search results list",
            "enum": [
              "top",
              "recent",
              "both",
              "all"
            ],
            "type": "string",
            "description": "Which Threads result list to read for each keyword or hashtag. Both reads the Top list and then the Recent list. All three adds the Topic tags list for keywords (posts filed under the Threads topic that matches the keyword); for hashtags it is the same as Both. Every list after the first keeps only posts that contain the keyword. Each list is one more page per entry.",
            "default": "top"
          },
          "exactMatchOnly": {
            "title": "Only posts that contain the keyword",
            "type": "boolean",
            "description": "Threads search also returns posts it links to a keyword by topic, picture or language even when the words are not in the text. Turn this on to keep only posts whose text or hashtags contain every word of the keyword. Hashtag entries always keep only posts that carry the tag.",
            "default": false
          },
          "includeProfileReplies": {
            "title": "Also read each profile's Replies tab",
            "type": "boolean",
            "description": "Also reads the Replies tab of each profile and returns the replies the account posted under other people's threads (usually 5 to 10 more rows per profile). One more page per profile. Rows say which tab they came from in profileTab.",
            "default": false
          },
          "maxRepliesPerPost": {
            "title": "Replies per post link",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "For each post link, the most replies to return besides the post itself. 0 returns only the post. A logged out post page shows only the first batch of replies (about 7 to 11 direct replies in our tests), so the page usually ends first.",
            "default": 100
          },
          "includeNestedReplies": {
            "title": "Include replies to replies",
            "type": "boolean",
            "description": "Also return the answers to replies that the post page shows in the same chain (replyDepth 2 or more). Off returns only direct replies to the post.",
            "default": false
          },
          "postedAfter": {
            "title": "Posted on or after",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2})?)?$|^\\d{1,4} ?(hour|day|week|month|year)s?( ago)?$",
            "type": "string",
            "description": "Keep only posts and replies published on or after this time: a date such as 2026-11-01 (start of that day, UTC) or a relative time such as 24 hours, 7 days or 1 month. Threads does not filter a logged out page by date, so this drops older rows from the pages read; it does not reach further back."
          },
          "postedBefore": {
            "title": "Posted before",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2})?)?$|^\\d{1,4} ?(hour|day|week|month|year)s?( ago)?$",
            "type": "string",
            "description": "Keep only posts and replies published before this time: a date such as 2026-11-10 (start of that day, UTC) or a relative time such as 1 day. Leave empty for no upper limit."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Keep only rows in these languages, as two letter codes such as en, es, pt or ja (the language Threads detected for the post). Rows with no detected language are left out when this is set. Leave empty for every language.",
            "items": {
              "type": "string"
            }
          },
          "includeViews": {
            "title": "Add view counts",
            "type": "boolean",
            "description": "Fills viewCount on keyword, hashtag and profile rows by reading each post's own page, the number Threads shows under a post (rounded above 1,000, so 908K is 908000). One more page per post, so runs take longer. Post link rows always get it; replies do not.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The default is the Apify datacenter proxy with a new address for every request. If Threads blocks two requests in a row, the run switches to residential proxy for up to 10 requests. Pick the Residential group here to use it from the start. Costs are included in the price.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}