{
  "openapi": "3.0.1",
  "info": {
    "title": "Spotify Scraper",
    "description": "Spotify Scraper SD - Spotify Scraper is a music data tool that extracts play counts, monthly listeners, followers, world rank, top cities, top tracks, albums, playlists and podcasts from Spotify links or keyword searches. No login, no API key.",
    "version": "1.0",
    "x-build-id": "zfapbRgoY9FVSRi19"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~spotify-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-spotify-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~spotify-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-spotify-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~spotify-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-spotify-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": {
          "startUrls": {
            "title": "Spotify links",
            "type": "array",
            "description": "Artist, album, track, playlist, podcast (show) or episode links, e.g. https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02 or spotify:track:0VjIjW4GlUZAMYd2vXMi3b.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Optional: keywords to search Spotify for (artist names, song titles, genres, podcast topics). Each term gives up to 'Max results per search term' items.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "tracks",
              "artists",
              "albums",
              "playlists",
              "podcasts",
              "episodes"
            ],
            "type": "string",
            "description": "What kind of item the search terms look for. Every result is opened for its full record (play counts, listeners ...).",
            "default": "tracks"
          },
          "maxResults": {
            "title": "Max results per search term",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many search results to keep for each search term (follows the search pages).",
            "default": 20
          },
          "maxTracksPerItem": {
            "title": "Max tracks / episodes per item",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many tracks of an album or playlist, episodes of a podcast, or releases of a full discography to read (follows the pages).",
            "default": 100
          },
          "includeDiscography": {
            "title": "Full artist discography",
            "type": "boolean",
            "description": "For artists: read every album, single and compilation (newest first), not only the first ones.",
            "default": false
          },
          "expandTracks": {
            "title": "One row per track",
            "type": "boolean",
            "description": "For albums and playlists: also save every track as its own row (with its play count).",
            "default": false
          },
          "scrapePreviewUrls": {
            "title": "Preview audio links",
            "type": "boolean",
            "description": "Add the 30-second preview link of tracks and episodes when Spotify offers one.",
            "default": true
          },
          "includeRaw": {
            "title": "Include raw record",
            "type": "boolean",
            "description": "Adds the complete original record as a raw object to every item row.",
            "default": false
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "urls",
              "search",
              "charts"
            ],
            "type": "string",
            "description": "auto uses every input; urls only the links; search only the search terms and categories; charts only the latest Spotify Charts.",
            "default": "auto"
          },
          "category": {
            "title": "Playlist categories",
            "type": "array",
            "description": "Optional: category / genre words (workout, chill, hip hop); each finds playlists of that category.",
            "items": {
              "type": "string"
            }
          },
          "includeCharts": {
            "title": "Spotify Charts",
            "type": "boolean",
            "description": "Also save the latest public Spotify Charts (top songs / artists / albums) as rows.",
            "default": false
          },
          "followAlbums": {
            "title": "Follow artist albums",
            "type": "boolean",
            "description": "For artists: also open every album on the artist page (each with its tracks and play counts).",
            "default": false
          },
          "followSingles": {
            "title": "Follow artist singles",
            "type": "boolean",
            "description": "For artists: also open every single on the artist page.",
            "default": false
          },
          "followPopularReleases": {
            "title": "Follow popular releases",
            "type": "boolean",
            "description": "For artists: also open the artist's popular releases.",
            "default": false
          },
          "minSaves": {
            "title": "Minimum playlist saves",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only playlists with at least this many saves (followers).",
            "default": 0
          },
          "excludeSpotifyOwned": {
            "title": "Skip Spotify playlists",
            "type": "boolean",
            "description": "Skip playlists owned by Spotify (editorial).",
            "default": false
          },
          "excludePlaylistIds": {
            "title": "Skip playlists",
            "type": "array",
            "description": "Playlist ids or links to skip.",
            "items": {
              "type": "string"
            }
          },
          "enrichConcertDetails": {
            "title": "Concert details",
            "type": "boolean",
            "description": "For artists: add the list of upcoming concerts (date, venue, city).",
            "default": false
          },
          "geoHash": {
            "title": "Concert location (geohash)",
            "type": "string",
            "description": "Optional geohash (e.g. dr5r for New York) to include concerts near that place."
          },
          "market": {
            "title": "Market",
            "type": "string",
            "description": "2-letter country code (US, GB, DE ...): read Spotify as a listener in that market sees it (the proxy country follows it)."
          },
          "maxConcurrency": {
            "title": "Parallel items",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many items are read at the same time.",
            "default": 5
          },
          "delayMs": {
            "title": "Extra delay (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional pause before each item, in milliseconds (0 = none).",
            "default": 0
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Safety cap on the number of rows saved in one run.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default and recommended. The proxy country decides the Spotify market (availability of some items).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}