{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Scraper: Posts, Profiles, Search & Replies (No Login)",
    "description": "Scrape public Threads posts, profiles, replies, reposts and keyword or hashtag search without login. Profile posts load page by page up to 10,000. Likes, replies, reposts, quotes, shares, views, media, followers and bio.",
    "version": "0.2",
    "x-build-id": "xTZ4yNdo19zpRGNEf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thedoor~threads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thedoor-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/thedoor~threads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thedoor-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/thedoor~threads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thedoor-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",
        "properties": {
          "usernames": {
            "title": "Usernames",
            "type": "array",
            "description": "Threads usernames or profile URLs, one per line. Examples: nasa, @nasa, https://www.threads.com/@nasa. threads.net links work too. Old input name: url.",
            "items": {
              "type": "string",
              "pattern": "^(https://(www\\.)?threads\\.(com|net)/@[A-Za-z0-9._]+/?|@?[A-Za-z0-9._]{1,30})$"
            }
          },
          "profileTabs": {
            "title": "Profile tabs",
            "type": "array",
            "description": "Which profile tabs to read. Threads: the account's own posts, loaded page by page up to Max posts. Replies: the account's replies, with the post they answer. Reposts: posts the account reposted. Replies and Reposts return only the first page Threads shows to logged-out visitors (usually 3 to 10 rows). Example: [\"threads\", \"replies\"].",
            "items": {
              "type": "string",
              "enum": [
                "threads",
                "replies",
                "reposts"
              ],
              "enumTitles": [
                "Threads (posts)",
                "Replies",
                "Reposts"
              ]
            },
            "default": [
              "threads"
            ]
          },
          "includeProfile": {
            "title": "Include profile info",
            "type": "boolean",
            "description": "Adds one row per username with name, bio, follower count, verified badge, profile picture and bio links.",
            "default": true
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords or hashtags, one per line. Examples: coffee, artificial intelligence, #AI. A single #word searches that topic tag. Results come in Threads' default (top) order: logged-out Threads has no Recent order. Old input name: searchQueries.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Threads post links, one per line. Example: https://www.threads.com/@threads/post/DfzyOugJVxm. Returns the post with its view count, the author's thread continuation and the public replies.",
            "items": {
              "type": "string",
              "pattern": "^https://(www\\.)?threads\\.(com|net)/@[A-Za-z0-9._]+/post/[A-Za-z0-9_-]+/?(\\?.*)?$"
            }
          },
          "maxReplies": {
            "title": "Max replies per post URL",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Limit on replies per post URL. Example: 20. Logged-out Threads shows about 10 to 15 replies per post. 0 returns only the post.",
            "default": 20
          },
          "maxPosts": {
            "title": "Max posts per profile or search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit per profile tab and per keyword. Example: 20 for a quick test, 1000 for a full profile. The Threads tab loads older posts page by page (about 10 per page) up to 10,000. Replies, Reposts and search return only their first page: about 3 to 10 rows per tab and 20 to 30 per keyword.",
            "default": 20
          },
          "postedAfter": {
            "title": "Only posts newer than",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}.*|\\d+\\s*days?)?$",
            "type": "string",
            "description": "Keep only posts from this date on. Use a date like 2026-11-01 or a relative value like \"7 days\". On the Threads tab, loading stops once the pages reach older posts."
          },
          "postedBefore": {
            "title": "Only posts older than",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}.*|\\d+\\s*days?)?$",
            "type": "string",
            "description": "Keep only posts up to this date. Example: 2026-11-15 or \"1 day\"."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Leave off to use the actor's built-in residential proxy. Turn on Apify Proxy (for example the RESIDENTIAL group) or give your own proxy URLs to route requests through them instead."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}