{
  "openapi": "3.0.1",
  "info": {
    "title": "Threads Profile Scraper: Posts, Replies & Profiles",
    "description": "Scrape Threads profile posts and replies by username or link. Get text, date, likes, replies, reposts, media and links, with followers, bio and verified badge in every row. Date range with relative dates such as 7 days. No login. Export to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "amduTs6rFgsdWpwB5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wiseus-labs~threads-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wiseus-labs-threads-profile-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/wiseus-labs~threads-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wiseus-labs-threads-profile-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/wiseus-labs~threads-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wiseus-labs-threads-profile-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": {
          "profiles": {
            "title": "👤 Profiles",
            "type": "array",
            "description": "Threads profiles, one per line: a username, @username or a profile link. For example: nasa, @nasa or https://www.threads.com/@nasa. Links from threads.net work too. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Max posts per profile",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "How many posts to save from each profile, for example 100. The pinned post comes first, then the newest posts. Posts outside your date range do not count. Set 0 to save only the profile (one row per profile, no posts). Replies have their own limit.",
            "default": 50
          },
          "includeReplies": {
            "title": "💬 Include replies",
            "type": "boolean",
            "description": "Also save the replies the profile wrote (from its Replies tab). Each reply row says who it answers, for example replyToUsername = natgeo. The posts of other people are not saved.",
            "default": false
          },
          "maxRepliesPerProfile": {
            "title": "Max replies per profile",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many replies to save from each profile, for example 50. Applies only when Include replies is on and Max posts per profile is above 0.",
            "default": 50
          },
          "includeProfile": {
            "title": "🪪 Add profile details to every post",
            "type": "boolean",
            "description": "Adds the author's followers, bio, bio links, topics, private flag and full-size picture to every post row, and finds contacts in the bio, for example an email. Turn off for lighter rows with the post data and the author's basic details, such as name and user ID.",
            "default": true
          },
          "dateFrom": {
            "title": "📅 Posted after",
            "pattern": "^(|\\d{4}-\\d{2}-\\d{2}.*|\\s*\\d+\\s*(minute|minutes|min|mins|hour|hours|hr|hrs|h|day|days|d|week|weeks|w|month|months|year|years|y)\\s*(ago)?\\s*)$",
            "type": "string",
            "description": "Only posts published on or after this date. Pick a date (YYYY-MM-DD, UTC) or a relative time such as \"7 days\" (7 days ago). Through the API you can also use hours, for example \"24 hours\". For monitoring, schedule a daily run with \"1 day\" here to get only new posts."
          },
          "dateTo": {
            "title": "📅 Posted before",
            "pattern": "^(|\\d{4}-\\d{2}-\\d{2}.*|\\s*\\d+\\s*(minute|minutes|min|mins|hour|hours|hr|hrs|h|day|days|d|week|weeks|w|month|months|year|years|y)\\s*(ago)?\\s*)$",
            "type": "string",
            "description": "Only posts published on or before this date. A date (YYYY-MM-DD, UTC), for example 2026-10-31, includes that whole day. A relative time such as \"2 days\" means up to 2 days ago. Leave empty for up to now."
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many rows across all profiles, for example 500. Posts, replies and profile rows count, free status rows do not. 0 means no limit.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Profiles in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many profiles are scraped at the same time, for example 5. Keep the default unless you have a reason to change it.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}