{
  "openapi": "3.0.1",
  "info": {
    "title": "Spotify Scraper: Play Counts, Artists, Tracks & Playlists",
    "description": "Scrape Spotify artists, tracks, albums, playlists and search results with play counts, monthly listeners and followers. No login and no API key. Built for music marketers, labels and creators who track growth.",
    "version": "0.1",
    "x-build-id": "G0Av99YW5OvzVfixW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~spotify-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-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/cliqtomedia~spotify-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-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/cliqtomedia~spotify-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-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": {
          "artistUrls": {
            "title": "Artist URLs",
            "type": "array",
            "description": "Spotify artist links, spotify:artist: URIs or bare 22-character IDs. One row per artist: monthly listeners, followers, world rank, top cities, biography, social links, release counts and top tracks with play counts.",
            "items": {
              "type": "string"
            }
          },
          "trackUrls": {
            "title": "Track URLs",
            "type": "array",
            "description": "Spotify track links, URIs or IDs. One row per track with its exact play count, duration, album, release date and explicit flag.",
            "items": {
              "type": "string"
            }
          },
          "albumUrls": {
            "title": "Album URLs",
            "type": "array",
            "description": "Spotify album links, URIs or IDs. One album row (label, copyright, total plays) plus one row per track with its play count, up to \"Max rows per album, playlist, show or search\".",
            "items": {
              "type": "string"
            }
          },
          "playlistUrls": {
            "title": "Playlist URLs",
            "type": "array",
            "description": "Public Spotify playlist links, URIs or IDs. One playlist row (followers, owner, track count) plus one row per track with its play count, up to \"Max rows per album, playlist, show or search\".",
            "items": {
              "type": "string"
            }
          },
          "showUrls": {
            "title": "Podcast show URLs",
            "type": "array",
            "description": "Spotify podcast show links, URIs or IDs. One show row plus its latest episodes, up to \"Max rows per album, playlist, show or search\".",
            "items": {
              "type": "string"
            }
          },
          "episodeUrls": {
            "title": "Podcast episode URLs",
            "type": "array",
            "description": "Spotify podcast episode links, URIs or IDs. One row per episode with duration and release date.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Words to search on Spotify, for example \"lofi beats\". Each query returns rows of the type chosen in \"Search for\"; track results include play counts. Each query adds up to \"Max rows per album, playlist, show or search\" rows.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "Search for",
            "enum": [
              "tracks",
              "artists",
              "albums",
              "playlists"
            ],
            "type": "string",
            "description": "What the search queries return. Default: tracks.",
            "default": "tracks"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most result rows for the whole run (all links and queries together). Each result row is charged. A link or query that gives no result row (not found, all filtered out) costs one small empty-input fee; invalid inputs and errors are free. Default 100.",
            "default": 100
          },
          "maxTracksPerCollection": {
            "title": "Max rows per album, playlist, show or search",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Most track or episode rows added for each album, playlist or show, and most results for each search query. 0 returns only the album, playlist or show row, and lets each search fill up to Max results. Default 100.",
            "default": 100
          },
          "minFollowers": {
            "title": "Min followers",
            "minimum": 0,
            "type": "integer",
            "description": "Skip artists and playlists with fewer followers. Skipped rows are not saved or charged. Empty or 0: no filter."
          },
          "excludeSpotifyOwned": {
            "title": "Skip playlists made by Spotify",
            "type": "boolean",
            "description": "Skip playlists owned by Spotify itself (editorial playlists) in playlist links and playlist search.",
            "default": false
          },
          "includeTopTracks": {
            "title": "Add artist top tracks as rows",
            "type": "boolean",
            "description": "Also save each artist's top tracks (up to 10) as separate track rows with play counts. The artist row always lists them in \"topTracks\". Each added row is charged.",
            "default": false
          },
          "includeDiscography": {
            "title": "Add artist discography",
            "type": "boolean",
            "description": "Fill \"discography\" on artist rows: albums, singles and compilations with release dates (up to 500). No extra rows.",
            "default": false
          },
          "includeRelatedArtists": {
            "title": "Add related artists",
            "type": "boolean",
            "description": "Fill \"relatedArtists\" on artist rows (\"Fans also like\"). No extra rows.",
            "default": false
          },
          "includeRaw": {
            "title": "Add raw source data",
            "type": "boolean",
            "description": "Add the raw Spotify object to each row in \"raw\". Makes rows much bigger.",
            "default": false
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          },
          "useProxy": {
            "title": "Use Apify Proxy from the start",
            "type": "boolean",
            "description": "Send requests through Apify datacenter proxy from the first request. Off by default: the Actor moves to the proxy by itself if Spotify blocks it.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}