{
  "openapi": "3.0.1",
  "info": {
    "title": "Snapchat Scraper",
    "description": "Snapchat Scraper SD - Snapchat Scraper is a social media data tool that extracts public Snapchat profiles and their Spotlight videos: subscribers, bio, category, views, shares, comments, AI titles, captions, sound and video URLs. No login.",
    "version": "1.0",
    "x-build-id": "fiJh9Jm3e8l94FOmV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~snapchat-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-snapchat-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~snapchat-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-snapchat-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~snapchat-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-snapchat-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": {
          "usernames": {
            "title": "Usernames, profile links or Spotlight links",
            "type": "array",
            "description": "Public Snapchat usernames (mrbeast, @kyliejenner), profile links (https://www.snapchat.com/add/mrbeast) or Spotlight links (https://www.snapchat.com/spotlight/<id>). One per line.",
            "items": {
              "type": "string"
            }
          },
          "spotlightUrls": {
            "title": "Spotlight links (optional)",
            "type": "array",
            "description": "Single Spotlight videos, e.g. https://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYbHZzZmtrYm1jAZhMOQmTAZhMOQfqAAAAAQ. You can also paste them in the first list.",
            "items": {
              "type": "string"
            }
          },
          "includeProfile": {
            "title": "Save a profile row",
            "type": "boolean",
            "description": "One row per username with the profile: display name, subscribers, bio, category, website, verified badge, story / highlight / Spotlight / lens counts and Spotlight totals.",
            "default": true
          },
          "maxItems": {
            "title": "Max Spotlight videos per username",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Spotlight videos saved per username (0 = profile row only). Example: 20 x 2 usernames = up to 40 Spotlight rows.",
            "default": 20
          },
          "includeSpotlightComments": {
            "title": "Include Spotlight comments",
            "type": "boolean",
            "description": "Add the top comments of each Spotlight video (text, author, likes, reply count, time).",
            "default": true
          },
          "maxCommentsPerSpotlight": {
            "title": "Max comments per Spotlight",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Comments kept per Spotlight video (Snapchat shows up to 25 top comments publicly).",
            "default": 10
          },
          "includeTranscripts": {
            "title": "Include caption text",
            "type": "boolean",
            "description": "Download the video's own caption track (when the creator's video has one) and save it as plain text.",
            "default": false
          },
          "includeStories": {
            "title": "Save live-story snaps as rows",
            "type": "boolean",
            "description": "Also save one row per snap of the creator's live story (media link, preview, post time).",
            "default": false
          },
          "includeHighlights": {
            "title": "Save highlights as rows",
            "type": "boolean",
            "description": "Also save one row per saved highlight (title, cover, number of snaps, the snaps).",
            "default": false
          },
          "relatedProfilesLimit": {
            "title": "Related profiles per username",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Also scrape up to N related accounts Snapchat lists on each profile (0 = off). Their rows are marked isSeed false, with sourceUsername.",
            "default": 0
          },
          "resultType": {
            "title": "Result type",
            "enum": [
              "all",
              "profile",
              "spotlight",
              "story"
            ],
            "type": "string",
            "description": "Which rows to save. \"all\" follows the include options below; the other values save only that row type and override the include options.",
            "default": "all"
          },
          "oneRowPerClip": {
            "title": "One row per clip (flat spreadsheet mode)",
            "type": "boolean",
            "description": "Flat mode for spreadsheets: every highlight clip gets its own row and every nested list (comments, spotlights, highlights, lenses...) becomes one text cell.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many profiles are loaded in parallel (each with its own proxy session).",
            "default": 5
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "When the site refuses requests the run lowers its parallel workers one by one, never below this number.",
            "default": 1
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default and recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}