{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Scraper — Posts, Search, Profiles & Views, No Login",
    "description": "Meta Threads scraper, no login: posts, replies, reposts, profiles, keyword and hashtag search, view counts on every post. Usernames, keywords and links in one run; alerts to Slack, Discord or Telegram. A Threads API alternative from $1.35 per 1,000 posts, no start fee.",
    "version": "1.0",
    "x-build-id": "UJ2ebkzWps1BgIsew"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nologin~threads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nologin-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/nologin~threads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nologin-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/nologin~threads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nologin-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "posts",
              "replies",
              "reposts",
              "profile",
              "search",
              "thread",
              "users",
              "user",
              "user_replies",
              "user_reposts",
              "profiles",
              "post_link"
            ],
            "type": "string",
            "description": "The default job for usernames and keywords. Links are routed by themselves, so one run can mix accounts, posts and searches.",
            "default": "posts"
          },
          "usernames": {
            "title": "Usernames",
            "type": "array",
            "description": "<code>zuck</code>, <code>@natgeo</code> or a profile link.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords or #hashtags",
            "type": "array",
            "description": "Search and Find accounts: <code>AI agents</code>, <code>#nba</code>. <code>from:zuck ai</code> searches one account's posts.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post links",
            "type": "array",
            "description": "A post with its replies. Share links work too.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Any Threads links",
            "type": "array",
            "description": "Profile, post, search or tag links — each goes to the right job.",
            "items": {
              "type": "string"
            }
          },
          "maxPosts": {
            "title": "Posts per account or keyword",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "A cap per account or keyword. Posts, replies and reposts are paged through the account's history.",
            "default": 100
          },
          "maxRepliesPerPost": {
            "title": "Replies per post",
            "minimum": 0,
            "type": "integer",
            "description": "How many replies to collect under each post — paged, top and recent merged, no duplicates. Used by post links and by Replies under every post.",
            "default": 100
          },
          "replyDepth": {
            "title": "Reply depth",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 — replies to the post; 2 — also the replies to those replies; up to 5 levels.",
            "default": 1
          },
          "maxUsersPerKeyword": {
            "title": "Accounts per keyword",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Find accounts mode: how many accounts per keyword.",
            "default": 20
          },
          "maxItems": {
            "title": "Maximum rows in the run",
            "minimum": 1,
            "type": "integer",
            "description": "A hard cap on rows — and so on the cost of the run.",
            "default": 10000
          },
          "searchTypes": {
            "title": "Search result pages",
            "type": "array",
            "description": "Which Threads results to combine for each keyword: top and recent; 'tags' also searches the #hashtag form and the keyword's topic tag pages (Coffee Time, Coffee Lovers… for coffee).",
            "items": {
              "type": "string",
              "enum": [
                "top",
                "recent",
                "tags"
              ]
            },
            "default": [
              "top",
              "recent",
              "tags"
            ]
          },
          "expandQueries": {
            "title": "Expand each keyword",
            "type": "boolean",
            "description": "Also search singular/plural, with and without #, joined words and the keyword's topic tags, all from many IPs at once, repeated while new posts come — 10–15× the ~20 posts a visitor sees. Accounts: every wording too. A phrase Threads shows nothing for is searched word by word, keeping posts with every word.",
            "default": true
          },
          "strictKeywordMatch": {
            "title": "Only posts that contain the keyword",
            "type": "boolean",
            "description": "Keep only posts whose text or topic tag actually contains the keyword (every word of it).",
            "default": false
          },
          "postedAfter": {
            "title": "Only posts after",
            "type": "string",
            "description": "<code>2026-11-01</code>, <code>7 days</code> or <code>24 hours</code> — every mode. In search the period itself is searched, window by window (any day of the last two years)."
          },
          "postedBefore": {
            "title": "Only posts before",
            "type": "string",
            "description": "Same formats."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "<code>en</code>, <code>es</code>, <code>ja</code>… or <code>english</code>, <code>japanese</code>.",
            "items": {
              "type": "string"
            }
          },
          "filterKeywords": {
            "title": "Keep only posts containing",
            "type": "array",
            "description": "Any of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Drop posts containing",
            "type": "array",
            "description": "None of these words.",
            "items": {
              "type": "string"
            }
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer likes. Dropped posts are not charged.",
            "default": 0
          },
          "minReplies": {
            "title": "Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer replies.",
            "default": 0
          },
          "minReposts": {
            "title": "Minimum reposts",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts with fewer reposts.",
            "default": 0
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Posts without a public view count are kept.",
            "default": 0
          },
          "minAuthorFollowers": {
            "title": "Minimum author followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts whose author has at least this many followers.",
            "default": 0
          },
          "onlyVerified": {
            "title": "Only verified authors",
            "type": "boolean",
            "description": "Keep only posts by verified accounts.",
            "default": false
          },
          "excludeReplies": {
            "title": "Skip replies",
            "type": "boolean",
            "description": "Skip replies — keep only original posts.",
            "default": false
          },
          "mediaTypes": {
            "title": "Media types",
            "type": "array",
            "description": "Keep only these kinds of posts. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "photo",
                "video",
                "carousel"
              ]
            },
            "default": []
          },
          "onlyWithLinks": {
            "title": "Only posts with a link",
            "type": "boolean",
            "description": "Keep only posts with an outside link or a link preview.",
            "default": false
          },
          "dropUnknownLanguage": {
            "title": "Drop posts without a language",
            "type": "boolean",
            "description": "Drop posts Threads gives no language for (very short posts, emoji only).",
            "default": false
          },
          "includeViews": {
            "title": "View counts",
            "type": "boolean",
            "description": "Read from each post's page, at no extra charge. Off — the fastest bulk runs.",
            "default": true
          },
          "saveFiles": {
            "title": "Save photo and video files",
            "type": "boolean",
            "description": "Download every photo and video of the posts into this run's storage — a permanent link in each row (<code>mediaStoredUrl</code>, and <code>storedUrl</code> on each item of <code>images</code> and <code>videos</code>). Threads' own media links expire within days. $4.95 per 1,000 files; a file that fails is free.",
            "default": false
          },
          "includeReplies": {
            "title": "Replies under every post",
            "type": "boolean",
            "description": "Posts, Replies, Reposts and Search: also return the replies under every post found (up to Replies per post, Reply depth levels). Each reply is a post row.",
            "default": false
          },
          "authorFollowers": {
            "title": "Author followers on every post",
            "type": "boolean",
            "description": "Every post row gets its author's followers and the engagement rate — in search, replies, reposts and threads too (account posts always have them). One profile per new author.",
            "default": false
          },
          "includeProfile": {
            "title": "Add a profile row per account",
            "type": "boolean",
            "description": "Posts, Replies and Reposts: also return the account's profile row (followers, bio, contacts).",
            "default": false
          },
          "includeProfileDetails": {
            "title": "Full profiles when finding accounts",
            "type": "boolean",
            "description": "Followers, bio links, e-mails and phones (a Profile row). Off — cheaper Account match rows.",
            "default": true
          },
          "monitoringStoreName": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Use the same name in every scheduled run — each run returns only posts you haven't received, and reads only posts newer than the last run."
          },
          "webhookUrl": {
            "title": "Send new rows to",
            "type": "string",
            "description": "A Slack, Discord or Telegram bot link, or any URL (JSON) — new rows of the run are posted there when it ends."
          },
          "max_posts": {
            "title": "max_posts (compatibility)",
            "type": "integer",
            "description": "Accepted for compatibility with other Threads Actors — same as Posts per account or keyword."
          },
          "search_filter": {
            "title": "search_filter (compatibility)",
            "type": "string",
            "description": "Accepted for compatibility — top or recent."
          },
          "search_language": {
            "title": "search_language (compatibility)",
            "type": "string",
            "description": "Accepted for compatibility — english, japanese, chinese… (same as Languages)."
          },
          "start_date": {
            "title": "start_date (compatibility)",
            "type": "string",
            "description": "Accepted for compatibility — same as Only posts after."
          },
          "end_date": {
            "title": "end_date (compatibility)",
            "type": "string",
            "description": "Accepted for compatibility — same as Only posts before."
          },
          "from_author": {
            "title": "from_author (compatibility)",
            "type": "string",
            "description": "Accepted for compatibility — same as fromAuthor."
          },
          "concurrency": {
            "title": "concurrency (compatibility, tuned by us)",
            "type": "integer",
            "description": "Accepted for compatibility — we tune parallelism ourselves."
          },
          "proxyConfiguration": {
            "title": "proxyConfiguration (compatibility, proxies included)",
            "type": "object",
            "description": "Accepted for compatibility — proxies are included."
          },
          "includeRunSummary": {
            "title": "includeRunSummary (compatibility)",
            "type": "boolean",
            "description": "Accepted for compatibility."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}