{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Scraper: Profiles, Posts & Replies, $4.50/1K Posts",
    "description": "Input: Threads usernames, post URLs or keywords. Output: JSON rows of posts and replies (text, author, likes, replies, reposts, media, date) plus a free profile row, or accounts found by keyword with followers and bio. No login. $4.50 per 1,000 posts, $3 per 1,000 accounts, no start fee.",
    "version": "0.1",
    "x-build-id": "GPUWhUgyWSdeVKBg5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actorforgehq~threads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actorforgehq-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/actorforgehq~threads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-actorforgehq-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/actorforgehq~threads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-actorforgehq-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": "Threads usernames or profile URLs",
            "type": "array",
            "description": "One per line: a username (zuck), @zuck, or a profile link such as https://www.threads.com/@zuck. You get a free profile row and the latest posts of each account.",
            "items": {
              "type": "string"
            }
          },
          "profileTabs": {
            "title": "Profile tabs",
            "type": "array",
            "description": "Which tabs of each profile to read: Threads (the account's own posts), Replies (replies the account wrote, each with the post it answered) and Reposts (posts the account reposted). Each tab counts as its own source for Max posts per source.",
            "items": {
              "type": "string",
              "enum": [
                "posts",
                "replies",
                "reposts"
              ],
              "enumTitles": [
                "Threads (posts)",
                "Replies",
                "Reposts"
              ]
            },
            "default": [
              "posts"
            ]
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "One Threads post link per line, for example https://www.threads.com/@zuck/post/DfNR0zhEdWv (threads.net and /t/ short links work too). You get the post with its view count, the author's own thread continuation and the replies shown under it.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords or hashtags to search public Threads posts for, one per line. Each keyword counts as its own source for Max posts per source.",
            "items": {
              "type": "string"
            }
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "top",
              "recent"
            ],
            "type": "string",
            "description": "Top starts with the posts Threads ranks first for the keyword, then goes on from the newest matching posts to older ones until your limit. Newest first skips the ranked posts and walks from the newest matching posts back in time.",
            "default": "top"
          },
          "maxPostsPerSource": {
            "title": "Max posts per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many posts to take from each profile tab or search keyword. Profiles go back as far as Threads shows logged-out visitors, which is the full public history of an account in our tests.",
            "default": 50
          },
          "includeReplies": {
            "title": "Include replies (post URLs)",
            "type": "boolean",
            "description": "For post URLs, also return the replies shown under each post, each linked to the post or reply it answers. Every reply row is charged like a post.",
            "default": true
          },
          "maxRepliesPerPost": {
            "title": "Max replies per post",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "How many replies to take under each post URL. Threads shows logged-out visitors part of the replies of a busy post, so a large post can return fewer than you ask for.",
            "default": 20
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only posts published on or after this date, for example 2026-01-31, or a relative period such as 30 days. Profile feeds stop at the first older post (pinned posts excepted), and search uses it as a date window."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Only posts published before this date, for example 2026-06-30, or a relative period such as 7 days (meaning older than a week). Search uses it as a date window, profile feeds skip newer posts."
          },
          "accountSearchQueries": {
            "title": "Find accounts by keyword",
            "type": "array",
            "description": "Keywords to find Threads accounts for, one per line, for example a niche, a brand or a place (coffee roaster, brooklyn bakery). You get the accounts Threads finds for each keyword, up to about 100, each as one account row with followers, bio and bio links. Each account row is charged.",
            "items": {
              "type": "string"
            }
          },
          "maxAccountsPerKeyword": {
            "title": "Max accounts per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many accounts to take for each keyword in Find accounts by keyword. Threads shows logged-out visitors up to about 100 accounts per keyword, and fewer for narrow keywords.",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Skip posts and accounts this Actor already gave you in earlier runs with the same input. Profile feeds and newest-first search stop after a series of posts you already have.",
            "default": false
          },
          "includeContactsFromBio": {
            "title": "Include contacts from bio",
            "type": "boolean",
            "description": "Also pull email addresses and phone numbers written in the bio into separate fields of profile and account rows. Off by default: these are personal data, so turn it on only when you have a legal basis to process them.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxy is the default and is enough for Threads public pages. You can switch to residential or use your own proxies here.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}