{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Scraper: Posts, Replies, Profiles & Search",
    "description": "Public Threads data without login: full profile post history, replies, reposts, keyword and tag search. Low flat prices, no charge for empty or duplicate results, free filters, monitoring mode and a coverage report for every input.",
    "version": "0.1",
    "x-build-id": "tIRyjjq5ffaeABK5W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abdelrahman12_3~threads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abdelrahman12_3-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/abdelrahman12_3~threads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-abdelrahman12_3-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/abdelrahman12_3~threads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-abdelrahman12_3-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",
        "required": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "What to scrape",
            "minItems": 1,
            "type": "array",
            "description": "One per line (or several separated by commas). Accepts usernames (zuck or @zuck), profile links (threads.com or threads.net, also /replies, /reposts and /media tab links), post links (also /media, /embed and /t/ short links), #tags, and keywords in any language. Prefix with \"keyword:\" to force a keyword, \"tag:\" for a topic tag, \"post:\" for a post code and \"id:\" for a numeric user ID. Duplicates are scraped once.",
            "items": {
              "type": "string"
            }
          },
          "profileDetails": {
            "title": "Profile details",
            "type": "boolean",
            "description": "Followers, bio, links, verification, topic tags and computed engagement for each profile.",
            "default": true
          },
          "profileTabs": {
            "title": "Profile tabs",
            "type": "array",
            "description": "Which parts of each profile to read. Threads shows the full history of each tab to logged-out visitors. A tab link (like threads.com/@zuck/replies) reads only that tab.",
            "items": {
              "type": "string",
              "enum": [
                "threads",
                "replies",
                "reposts",
                "media"
              ],
              "enumTitles": [
                "Threads (the profile's posts)",
                "Replies (the profile's replies to others)",
                "Reposts",
                "Media (posts with photos or videos)"
              ]
            },
            "default": [
              "threads"
            ]
          },
          "maxRepliesPerPost": {
            "title": "Replies per post",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "How many replies to collect for each post link in \"What to scrape\" (and for profile and search posts when the option below is on). 0 = no replies. Charged per reply.",
            "default": 20
          },
          "repliesSort": {
            "title": "Replies order",
            "enum": [
              "top",
              "recent"
            ],
            "type": "string",
            "description": "Top replies first (as Threads shows them), or the newest first. Monitoring always reads newest first, so new replies are never missed.",
            "default": "top"
          },
          "nestedReplies": {
            "title": "Replies to replies",
            "type": "boolean",
            "description": "Also open replies that have their own replies and collect those (one level deeper). They count toward \"Replies per post\".",
            "default": false
          },
          "repliesForFeedPosts": {
            "title": "Replies for posts from profiles and search",
            "type": "boolean",
            "description": "Also collect replies for every post found on profiles, keywords and tags (not only for post links). Each post adds at least one request.",
            "default": false
          },
          "searchBothModes": {
            "title": "Search keywords and tags both ways",
            "type": "boolean",
            "description": "Threads shows about 20 search results to logged-out visitors. With this on, each keyword is also searched as a topic tag and each #tag as a keyword, which usually adds 15 to 20 more posts.",
            "default": false
          },
          "newerThan": {
            "title": "Posts newer than",
            "type": "string",
            "description": "Only posts from this date on. Pick a date, or switch to relative for values like 7 days or 3 months. Profiles stop paging once they reach older posts, so this also saves time. Leave empty for no limit. Free."
          },
          "olderThan": {
            "title": "Posts older than",
            "type": "string",
            "description": "Only posts before this date. Pick a date, or switch to relative (1 day = skip the last 24 hours). Leave empty for no limit."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only posts with at least this many likes."
          },
          "postTypes": {
            "title": "Post types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video",
                "carousel"
              ],
              "enumTitles": [
                "Text only",
                "Image",
                "Video",
                "Carousel"
              ]
            },
            "default": []
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Turn off to drop reposts of other people's posts (they only come from the reposts tab).",
            "default": true
          },
          "skipPinned": {
            "title": "Skip pinned posts",
            "type": "boolean",
            "description": "Drop posts the profile pinned to the top.",
            "default": false
          },
          "maxItemsPerTarget": {
            "title": "Max posts per input",
            "minimum": 1,
            "type": "integer",
            "description": "Stop collecting posts for an input after this many (across all chosen tabs). Profiles can go back to their very first post (up to 1,000 pages per tab).",
            "default": 100
          },
          "maxItems": {
            "title": "Max items per run",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the whole run after this many posts and replies together.",
            "default": 1000
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Turns on monitoring: the run returns only posts and replies this monitor has not delivered before, and you are never charged twice for the same item. Profiles stop paging as soon as they reach known posts. Use the same name on a scheduled task. Upper or lower case and extra spaces do not matter."
          },
          "includeReplyAuthors": {
            "title": "Include reply author usernames",
            "type": "boolean",
            "description": "Off by default for privacy: people who reply get a stable pseudonymous ID (a salted hash of the username) instead of their username. Replies by the post's own author always show the author.",
            "default": false
          },
          "fieldCase": {
            "title": "Field names",
            "enum": [
              "camel",
              "snake"
            ],
            "type": "string",
            "description": "camelCase or snake_case keys.",
            "default": "camel"
          },
          "flatten": {
            "title": "Flat output",
            "type": "boolean",
            "description": "Turn nested objects into dotted keys (author.username). Handy for spreadsheets.",
            "default": false
          },
          "runTag": {
            "title": "Run tag",
            "type": "string",
            "description": "Free text copied onto every record, to label batches."
          },
          "saveMedia": {
            "title": "Save media files",
            "enum": [
              "none",
              "images",
              "all"
            ],
            "type": "string",
            "description": "Copies images (and optionally videos) into this run's storage before Threads' links expire (after about 4 days). Charged per file.",
            "default": "none"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify's datacenter proxy (the default) works for logged-out Threads and keeps runs cheap. If Threads starts blocking it, the scraper switches to residential proxies by itself for the rest of the run. Pick residential here to use it from the start.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many requests run at the same time. Higher is faster but more likely to be blocked.",
            "default": 8
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 5,
            "maximum": 600,
            "type": "integer",
            "description": "Upper limit on requests per minute across the whole run.",
            "default": 120
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}