{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Scraper: Posts, Profiles, Search & Replies",
    "description": "Enter Threads usernames, keywords or post URLs and get public posts with text, views, likes, replies, reposts, quotes, shares, media and links; profiles with followers and bio; post and account search; replies and reposts tabs. No login. Error rows are free. Not affiliated with Meta.",
    "version": "0.0",
    "x-build-id": "E88hEbAaDk0TQEHMN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kizukidata~threads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kizukidata-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/kizukidata~threads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kizukidata-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/kizukidata~threads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kizukidata-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 (zuck, @zuck, https://www.threads.com/@zuck), up to 100. Returns each account's posts, newest first. Empty input reads @zuck as a sample.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Words, phrases or hashtags to search, up to 50 (coffee, #nba, AI agents). Returns the public top and recent results for each.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Threads post URLs, up to 100 (https://www.threads.com/@zuck/post/DfihFPxkaZ1, threads.net and /t/ links work too). Returns the post and its replies.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Threads URLs (any kind)",
            "type": "array",
            "description": "Profile, post or search URLs mixed together; each is routed to the matching list above.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "auto: usernames give posts, keywords give search results, post URLs give the post and its replies. profile: one profile row per username (followers, bio, links) and no posts. accounts: keywords find accounts (one profile row per account). posts, search and thread read only that one list. Mode names of other Threads scrapers also work (user, user_replies, user_reposts, profiles, users, post_link, urls).",
            "default": "auto"
          },
          "maxPostsPerSource": {
            "title": "Posts per username tab, keyword or post",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most posts returned for each username (per profile tab), each keyword, and replies for each post URL; in accounts mode, the most accounts per keyword (up to 100). A keyword search returns what Threads shows a logged-out visitor, usually 20 to 60 posts with keyword expansion on.",
            "default": 20
          },
          "maxItems": {
            "title": "Max rows per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Caps the charged rows (posts and profiles) of the whole run. Free error rows are not counted. An API or MCP call that leaves it out gets 20 rows; set it higher for more.",
            "default": 20
          },
          "includeProfile": {
            "title": "Add a profile row per username",
            "type": "boolean",
            "description": "Posts of usernames: also return one profile row per account (followers, bio, bio links, verification, topics). Charged as a profile row.",
            "default": false
          },
          "profileTabs": {
            "title": "Profile tabs",
            "type": "array",
            "description": "Which tabs of each username to read: threads (the account's own posts), replies (its latest replies to other posts, about 15 for a logged-out visitor, each with the post it answers) and reposts. Each tab returns up to the per-source limit.",
            "items": {
              "type": "string",
              "enum": [
                "threads",
                "replies",
                "reposts"
              ],
              "enumTitles": [
                "Threads (posts)",
                "Replies",
                "Reposts"
              ]
            },
            "default": [
              "threads"
            ]
          },
          "includeReplies": {
            "title": "Include replies of post URLs",
            "type": "boolean",
            "description": "Post URLs: return the replies after the post, each linked to the post it answers. Off returns the post only.",
            "default": true
          },
          "includeViewCount": {
            "title": "Add view counts",
            "type": "boolean",
            "description": "Fill viewCount on every post row by opening the post's own page (one extra page per post, so runs take longer). Post URL rows always have it. Same price per post.",
            "default": false
          },
          "accountDetails": {
            "title": "Account details (accounts mode)",
            "type": "boolean",
            "description": "Accounts mode: open each account's profile for followers, bio links and topics. Off: only what the search shows (username, name, bio, verification, picture), faster and without follower counts.",
            "default": true
          },
          "searchTypes": {
            "title": "Search result pages",
            "type": "array",
            "description": "Which Threads result pages to combine for each keyword: top (most relevant) and recent (newest). Duplicates are removed.",
            "items": {
              "type": "string",
              "enum": [
                "top",
                "recent"
              ],
              "enumTitles": [
                "Top",
                "Recent"
              ]
            },
            "default": [
              "top",
              "recent"
            ]
          },
          "expandKeywords": {
            "title": "Expand each keyword",
            "type": "boolean",
            "description": "Also search each keyword without # and as one joined hashtag (\"ai agents\" also as #aiagents). Threads answers each wording with different posts, so this returns more unique posts per keyword.",
            "default": true
          },
          "strictKeywordMatch": {
            "title": "Only posts that contain the keyword",
            "type": "boolean",
            "description": "Keep a search result only when every word of the keyword is in its text or hashtags. Every search row also has containsKeyword, so you can filter later instead.",
            "default": false
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Keep posts from this date on: YYYY-MM-DD (UTC) or a relative value such as 7 days or 2 weeks. Posts of usernames stop paging once they pass this date."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Keep posts up to this date (inclusive): YYYY-MM-DD (UTC) or a relative value such as 1 day."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop posts with fewer likes. 1 removes the zero-engagement posts keyword search often returns. Dropped posts are not charged.",
            "default": 0
          },
          "onlyNewItems": {
            "title": "Only new posts (monitoring)",
            "type": "boolean",
            "description": "For scheduled runs: return and charge only posts an earlier run of the same input did not return. Profile rows are returned every run.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. The default uses Apify Proxy. Residential proxies are not available.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}