{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Replies Scraper: No Login, $1 per 1,000 Replies",
    "description": "Get the replies of any Threads post or profile: top and newest replies merged, replies to replies, filters, sentiment, monitoring of new replies, optional own session for every reply.",
    "version": "0.1",
    "x-build-id": "lwKVkrkxkiTuA02E4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bright_money~threads-replies-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bright_money-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/bright_money~threads-replies-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bright_money-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/bright_money~threads-replies-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bright_money-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": "Threads post URLs",
            "type": "array",
            "description": "Links to Threads posts or replies (threads.com, threads.net, short /t/ links or bare post codes). A reply link gives that reply's own replies.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles (latest posts)",
            "type": "array",
            "description": "Usernames or profile links. The latest posts of each profile are scraped for replies.",
            "items": {
              "type": "string"
            }
          },
          "postsPerProfile": {
            "title": "Posts per profile",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many of each profile's latest posts to read.",
            "default": 5
          },
          "sort": {
            "title": "Which replies",
            "enum": [
              "both",
              "top",
              "recent"
            ],
            "type": "string",
            "description": "Threads shows visitors a set of top replies and a set of the newest replies. Both gives you the most.",
            "default": "both"
          },
          "maxRepliesPerPost": {
            "title": "Max replies per post",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many replies for each post (nested replies included).",
            "default": 200
          },
          "includeNestedReplies": {
            "title": "Include replies to replies",
            "type": "boolean",
            "description": "Also open each reply that has its own replies and collect those.",
            "default": false
          },
          "maxDepth": {
            "title": "Max depth",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "1 means direct replies only, 2 adds replies to those replies, and so on.",
            "default": 2
          },
          "includeSourcePost": {
            "title": "Include the original post",
            "type": "boolean",
            "description": "Add the post itself as the first row, with its view count and the reply count Threads shows.",
            "default": true
          },
          "postedAfter": {
            "title": "Replies posted after",
            "type": "string",
            "description": "Only replies on or after this date."
          },
          "postedBefore": {
            "title": "Replies posted before",
            "type": "string",
            "description": "Only replies before this date."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only replies with at least this many likes.",
            "default": 0
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Only replies in these languages, as two letter codes such as en, es, pt.",
            "items": {
              "type": "string"
            }
          },
          "excludePostAuthor": {
            "title": "Exclude the post author's own replies",
            "type": "boolean",
            "description": "Leave out replies written by the author of the original post.",
            "default": false
          },
          "onlyWithMedia": {
            "title": "Only replies with images or videos",
            "type": "boolean",
            "description": "Keep only replies that carry an image or a video.",
            "default": false
          },
          "analyzeSentiment": {
            "title": "Add sentiment",
            "type": "boolean",
            "description": "Label each reply positive, neutral or negative with a simple word and emoji score (best for English).",
            "default": false
          },
          "includeAuthorDetails": {
            "title": "Include author details",
            "type": "boolean",
            "description": "Add each author's followers, bio, bio links and any email in the bio. Slower, one profile page per author.",
            "default": false
          },
          "onlyNewReplies": {
            "title": "Only new replies since the last run",
            "type": "boolean",
            "description": "For schedules: skip replies an earlier run with the same monitor name already delivered (and never charge for them).",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the memory used by Only new replies. Use a different name for each schedule.",
            "default": "default"
          },
          "sessionCookie": {
            "title": "Your Threads session cookie (optional)",
            "type": "string",
            "description": "Optional. Paste the Cookie header of your own logged in threads.com tab (it must contain sessionid) to load every reply instead of the public sets. Stored encrypted by Apify, used only for requests to threads.com, never saved or logged. Use a secondary account at your own risk."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Works without a proxy and switches to residential proxies by itself if Threads slows down."
          },
          "debug": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}