{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Scraper: Posts, Replies, Profiles & Search (No Login)",
    "description": "Meta Threads scraper, no login: posts by keyword, hashtag or profile, replies up to 5 levels with who answered whom, profile stats and exact view counts. Wider keyword search, filters by date, likes and language (21 languages, not only English), new-post monitoring for scheduled runs.",
    "version": "0.1",
    "x-build-id": "NJzzo2YOdCu562LV0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/roomy_tweet~threads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-roomy_tweet-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/roomy_tweet~threads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-roomy_tweet-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/roomy_tweet~threads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-roomy_tweet-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": {
          "searchQueries": {
            "title": "Search keywords and #hashtags",
            "type": "array",
            "description": "One per line. A keyword returns the posts Threads shows for that search; a line starting with # reads that hashtag's page. Without login Threads has no next page for search, so expect tens of posts per keyword, not thousands.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Profiles, posts and links",
            "type": "array",
            "description": "One per line: a profile (@username or threads.com/@username; add /replies for the Replies tab), a post link (threads.com/@username/post/…) to get the post and its replies, a search link or a hashtag link. threads.net links work too.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerSource": {
            "title": "Posts per keyword, profile or post",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Most posts to save for each keyword, hashtag or profile, and most replies for each post link (the post itself is always saved). 0 saves only profile rows and the linked posts.",
            "default": 50
          },
          "searchSort": {
            "title": "Search results",
            "enum": [
              "both",
              "top",
              "recent"
            ],
            "type": "string",
            "description": "Which results to read for keywords and hashtags. \"Top and recent\" returns the most posts.",
            "default": "both"
          },
          "expandSearch": {
            "title": "Search wider",
            "type": "boolean",
            "description": "Also asks Threads for other forms of each keyword (joined into one word, as a hashtag, words reversed, singular/plural) and keeps the posts that mention your keyword. Returns two to three times more posts for most keywords. Turn off to get only what the plain search shows.",
            "default": true
          },
          "replyDepth": {
            "title": "Reply levels",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "For post links. 1 saves the replies to the post. 2 also saves the replies to those replies, and so on up to 5. Every reply row says which post it answers (replyToPostId, replyToPostUrl) and its level. Deeper levels take one extra request for each reply that has replies.",
            "default": 1
          },
          "profileTab": {
            "title": "Profile tab",
            "enum": [
              "threads",
              "replies"
            ],
            "type": "string",
            "description": "Which tab to read for @usernames and profile links. A link ending in /replies always reads the Replies tab.",
            "default": "threads"
          },
          "includeProfileInfo": {
            "title": "Save a profile row",
            "type": "boolean",
            "description": "For each profile, one row with followers, bio, bio links, e-mails found in the bio and verification. Turn off if you only want posts.",
            "default": true
          },
          "postedAfter": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "A date (2026-11-01) or a period (\"24 hours\", \"7 days\", \"2 weeks\"). Older posts are not saved and not charged, and a profile stops being read once a whole page is older."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Posts with fewer likes are not saved and not charged.",
            "default": 0
          },
          "minReplies": {
            "title": "Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Posts with fewer direct replies are not saved and not charged.",
            "default": 0
          },
          "languages": {
            "title": "Only these languages",
            "type": "array",
            "description": "Two-letter codes, one per line (en, es, pt, fr, de, it, id, nl, tr, pl, vi, sv, ja, ko, zh, ar, ru, hi, th, he, el). Threads labels only English posts, so the other languages are detected from the text by the Actor. Posts whose language cannot be told (very short, emoji only, no text) are left out when this filter is on.",
            "items": {
              "type": "string"
            }
          },
          "onlyNewPosts": {
            "title": "Only posts not saved before",
            "type": "boolean",
            "description": "For scheduled runs. Posts saved by earlier runs for the same keyword, profile or post are skipped and not charged. The first run saves everything. The Actor remembers them in a named key-value store of your account.",
            "default": false
          },
          "stateStoreName": {
            "title": "Memory name",
            "type": "string",
            "description": "Named key-value store that keeps the saved posts. Use different names for different watchlists.",
            "default": "threads-monitor"
          },
          "resetState": {
            "title": "Forget saved posts",
            "type": "boolean",
            "description": "Starts the memory from zero in this run.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Sources read in parallel",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Keywords, profiles and posts read at the same time. Keep it low to be gentle with the site.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. By default the Actor connects directly and switches to Apify Proxy by itself if Threads refuses the connection."
          },
          "failOnQualityDrop": {
            "title": "Fail the run on a quality warning",
            "type": "boolean",
            "description": "Marks the run as failed when the quality check finds a problem (for example most posts without a like count). Useful for alerts on scheduled runs.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}