{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Replies Scraper",
    "description": "Threads Replies Scraper SD - Threads Replies Scraper is a social media data tool that extracts the public replies of Threads posts: reply text, author, likes, replies, reposts, depth, parent reply, media, links and dates, plus the original post. No login.",
    "version": "1.0",
    "x-build-id": "DgciafJDy3fZdjuGI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~threads-replies-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-threads-replies-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/neuro-scraper~threads-replies-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-threads-replies-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/neuro-scraper~threads-replies-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-threads-replies-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": {
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Threads post links, e.g. https://www.threads.com/@zuck/post/Dd1MqfcG0aH (threads.net links work too). One per line.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "thread",
              "replies"
            ],
            "type": "string",
            "description": "What to collect. Auto (default): a post link gives the replies under that post, a profile link (https://www.threads.com/@user or @user) gives the replies that account wrote. Thread: only post links. Replies: every link is read as an account (for a post link, its author).",
            "default": "auto"
          },
          "maxRepliesPerPost": {
            "title": "Max replies per post",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Replies saved per post. Threads shows logged-out visitors the top replies of a post (about 10-20 with their nested answers); the Actor follows more pages while Threads serves them.",
            "default": 20
          },
          "maxReplies": {
            "title": "Max replies (alternative field)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Same as Max replies per post - kept for users coming from other Threads tools."
          },
          "sortOrder": {
            "title": "Sort replies",
            "enum": [
              "default",
              "newest",
              "oldest",
              "most_liked",
              "most_replied"
            ],
            "type": "string",
            "description": "Order of the replies of each post before the per-post limit is applied.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max replies in total",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop the whole run after this many rows (all posts together). 0 = no total limit (only the per-post limit).",
            "default": 0
          },
          "includeNestedReplies": {
            "title": "Include nested replies",
            "type": "boolean",
            "description": "Also save answers to replies (depth 2+) that Threads shows under each reply.",
            "default": true
          },
          "maxDepth": {
            "title": "Max reply depth",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "1 = only direct replies to the post, 2 = direct replies and the answers to them. 0 = every depth Threads shows.",
            "default": 0
          },
          "includeAuthorThread": {
            "title": "Include the author's own thread",
            "type": "boolean",
            "description": "Also save the original author's follow-up posts of the thread (itemType author_thread).",
            "default": false
          },
          "includeAuthorProfiles": {
            "title": "Add reply authors' profiles",
            "type": "boolean",
            "description": "Also read each reply author's profile once (cached) for bio, links, followers and latest post. One extra request per author - slower.",
            "default": false
          },
          "postedAfter": {
            "title": "Replies newer than",
            "type": "string",
            "description": "Keep only replies posted after this date (YYYY-MM-DD or \"7 days\")."
          },
          "changedSince": {
            "title": "Only new since (monitoring)",
            "type": "string",
            "description": "Monitoring: keep only replies posted after this moment (YYYY-MM-DD, an ISO time or \"2 days\") and mark them changedSinceMatched=true. Put the time of your last run here to get only the new replies."
          },
          "filterKeywords": {
            "title": "Only replies containing",
            "type": "array",
            "description": "Keep only replies whose text contains one of these words (not case-sensitive).",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "RESIDENTIAL proxies are the default and work best.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Parallel posts",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many posts / accounts are read at the same time (each on its own logged-out session).",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}