{
  "openapi": "3.0.1",
  "info": {
    "title": "Snapchat Scraper | Profiles | Stories | Spotlight | Lenses",
    "description": "Public Snapchat data without login: profiles with subscriber counts, stories, highlights, Spotlight videos, lenses, Explore and Discover feeds, comments and transcripts.",
    "version": "0.1",
    "x-build-id": "lQ2Ri5jlvK7ij9zLR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~snapchat-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-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/ahmed_jasarevic~snapchat-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-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/ahmed_jasarevic~snapchat-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-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": {
          "targets": {
            "title": "Snapchat URLs, usernames or #hashtags",
            "type": "array",
            "description": "One list for everything: profile URLs, Spotlight URLs, Lens URLs, explore/hashtag URLs, bare usernames, or #hashtags. Each entry is auto-classified.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerUser": {
            "title": "Max items per user",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on story/highlight/spotlight/lens rows kept per profile (includes paginated creator lenses + creator spotlights). Profile row is always kept. 0 is not allowed — use a high value for full crawl.",
            "default": 600
          },
          "maxExploreRows": {
            "title": "Max rows per search query",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on rows kept per explore/hashtag query (profiles, spotlights, lenses, places, episodes, topics).",
            "default": 200
          },
          "resultTypes": {
            "title": "Result types",
            "type": "array",
            "description": "Row types to emit from each target. Discover is the global feed (no URL needed) and is off by default so runs stay URL-focused.",
            "items": {
              "type": "string",
              "enum": [
                "profile",
                "story",
                "highlight",
                "spotlight",
                "lens",
                "place",
                "episode",
                "topic",
                "discover"
              ],
              "enumTitles": [
                "Profile",
                "Active story",
                "Highlights",
                "Spotlight videos",
                "Lenses",
                "Places",
                "Episodes",
                "Topics",
                "Discover feed"
              ]
            },
            "default": [
              "profile",
              "story",
              "highlight",
              "spotlight",
              "lens",
              "place",
              "episode",
              "topic"
            ]
          },
          "includeSpotlightComments": {
            "title": "Include public Spotlight comments",
            "type": "boolean",
            "description": "Fetch full paginated public comments for each Spotlight video via the getreplies API.",
            "default": false
          },
          "maxCommentsPerSpotlight": {
            "title": "Max comments per Spotlight (0 = no limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop paginating comments after this many per video. 0 fetches all available pages (up to 50).",
            "default": 0
          },
          "includeRelated": {
            "title": "Include related clips & lenses",
            "type": "boolean",
            "description": "When scraping Spotlight/Lens URLs, also emit related items embedded on the page (multiplies rows per URL).",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many URLs to scrape in parallel.",
            "default": 5
          },
          "maxRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries per HTTP request on network errors / 429 / 5xx before failing that URL.",
            "default": 3
          },
          "includeTranscripts": {
            "title": "Include transcripts",
            "type": "boolean",
            "description": "Fetch and attach auto-generated VTT transcripts for snaps that have them.",
            "default": false
          },
          "discoverCountry": {
            "title": "Discover country",
            "type": "string",
            "description": "ISO country code for Discover ranking (e.g. US, BA, GB). Only used when resultTypes includes discover.",
            "default": "US"
          },
          "discoverLocale": {
            "title": "Discover locale",
            "type": "string",
            "description": "Locale for the Discover feed (e.g. en-US, bs-BA).",
            "default": "en-US"
          },
          "maxDiscoverItems": {
            "title": "Max Discover stories",
            "minimum": 1,
            "type": "integer",
            "description": "Max Discover stories to fetch (rows expand to one per snap).",
            "default": 100
          },
          "maxDiscoverPages": {
            "title": "Max Discover pages",
            "minimum": 1,
            "type": "integer",
            "description": "Max GraphQL DiscoverFeed pages (~50 stories per page).",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy used for scraping. Datacenter works for light runs; switch to residential if Snapchat blocks your IP."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}