{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Scraper",
    "description": "Collect public Threads posts, profiles, replies and keyword or hashtag search results: text, likes, reposts, followers and bio. No Threads or Instagram login needed. Great for social listening, brand monitoring, trend research and finding creators.",
    "version": "1.0",
    "x-build-id": "D4aOXfxtfMRc046d5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_wiki~threads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_wiki-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/data_wiki~threads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-data_wiki-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/data_wiki~threads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-data_wiki-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "🔧 Scraping mode",
            "enum": [
              "profile",
              "posts",
              "search",
              "postUrls"
            ],
            "type": "string",
            "description": "What to collect: profile cards only, a user's posts with engagement data, posts matching search keywords, or specific posts by URL.",
            "default": "posts"
          },
          "usernames": {
            "title": "👤 Threads usernames or profile URLs",
            "uniqueItems": true,
            "type": "array",
            "description": "Used in profile and posts modes. Add as many as you like, one per line. Accepts zuck, @zuck or https://www.threads.com/@zuck.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔎 Search keywords or hashtags",
            "uniqueItems": true,
            "type": "array",
            "description": "Used in search mode only. Plain keywords search post text, for example artificial intelligence. Start a term with # to search a hashtag, for example #machinelearning.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "🔗 Threads post URLs",
            "uniqueItems": true,
            "type": "array",
            "description": "Used in postUrls mode only. Paste full post links such as https://www.threads.com/@zuck/post/DeZtp-TkQHh, one per line. Short codes and numeric post IDs are accepted too.",
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "🔃 Search result order",
            "enum": [
              "top",
              "recent",
              "both"
            ],
            "type": "string",
            "description": "Search mode only. Top returns relevance-ranked posts, Recent returns the freshest posts first, Both collects the two lists and removes duplicates.",
            "default": "top"
          },
          "maxPosts": {
            "title": "🔢 Max posts per user / query / URL",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of posts stored for each username or search query (1 to 200).",
            "default": 10
          },
          "postedAfter": {
            "title": "📅 Posted after",
            "pattern": "^\\s*$|^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2})?)?$",
            "type": "string",
            "description": "Keep only posts published at or after this moment. Use YYYY-MM-DD or an RFC3339 timestamp, for example 2026-05-01 or 2026-05-01T00:00:00Z. Pagination stops once older posts are reached."
          },
          "postedBefore": {
            "title": "📅 Posted before",
            "pattern": "^\\s*$|^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2})?)?$",
            "type": "string",
            "description": "Keep only posts published before this moment (exclusive). Use YYYY-MM-DD or an RFC3339 timestamp, for example 2026-06-01 or 2026-06-01T00:00:00Z."
          },
          "minLikes": {
            "title": "🎯 Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer likes than this number. 0 keeps every post.",
            "default": 0
          },
          "includeProfile": {
            "title": "✅ Include profile card",
            "type": "boolean",
            "description": "Posts mode only. Also store one profile row per user with followers, bio, verified status and profile picture.",
            "default": true
          },
          "includeReplies": {
            "title": "✅ Keep the author's own replies",
            "type": "boolean",
            "description": "Keep posts that are replies or thread continuations written by the author. Off returns only original posts.",
            "default": false
          },
          "includeReplyThread": {
            "title": "✅ Collect replies under each post",
            "type": "boolean",
            "description": "Also store the replies posted under every collected post as separate rows. Needs extra requests, so runs take longer.",
            "default": false
          },
          "maxRepliesPerPost": {
            "title": "🔢 Max replies per post",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of replies stored for each post when Collect replies under each post is on (1 to 200).",
            "default": 2
          },
          "dedupe": {
            "title": "✅ Remove duplicates across targets",
            "type": "boolean",
            "description": "Store each post or profile only once, even when several usernames or search queries return the same item.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Requests go out without a proxy by default. If Threads blocks them, the Actor switches to an Apify datacenter proxy and then to a residential proxy on its own and keeps that setting for the rest of the run. Pick a proxy here to start with it right away.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}