{
  "openapi": "3.0.1",
  "info": {
    "title": "Spotify Scraper - Tracks, Albums, Artists & Playlists",
    "description": "Unofficial Spotify API — no key, no login. Search tracks, albums, artists, playlists, shows & episodes; pull artist discographies, album & playlist tracks, and new releases. Export Spotify data (popularity, ISRC, followers, durations) to JSON, CSV or Excel.",
    "version": "1.0",
    "x-build-id": "WILCFmWmH6vovptlm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~spotify-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-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/logiover~spotify-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-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/logiover~spotify-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "artist",
              "album",
              "playlist",
              "newReleases",
              "tracks",
              "albums",
              "artists"
            ],
            "type": "string",
            "description": "Which Spotify endpoint to run.\n\n• **search** — search tracks / albums / artists / playlists / shows / episodes; paginates up to ~1,000 results per type (highest volume)\n• **artist** — artist details + full album discography (paginated) + top tracks, by id or URL\n• **album** — album details + all tracks (paginated), by id or URL\n• **playlist** — playlist details + all tracks (paginated; public playlists have hundreds–thousands)\n• **newReleases** — browse newly released albums (paginated)\n• **tracks** — batch fetch full track objects by id/URL\n• **albums** — batch fetch full album objects by id/URL\n• **artists** — batch fetch full artist objects by id/URL",
            "default": "search"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text term for **search** mode (song, artist, album, keyword, genre word). Broad terms return the most rows — e.g. `top hits`, `love`, `pop`, `remix`, `2024`, an artist or a mood. Each type paginates up to ~1,000 results. Leave empty to default to `top hits`."
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "track",
              "album",
              "artist",
              "playlist",
              "show",
              "episode"
            ],
            "type": "string",
            "description": "Primary entity type to search for in **search** mode.",
            "default": "track"
          },
          "searchTypes": {
            "title": "Extra search types (optional)",
            "type": "array",
            "description": "Search several entity types at once in **search** mode. Each type paginates independently up to `maxResults`.",
            "items": {
              "type": "string",
              "enum": [
                "track",
                "album",
                "artist",
                "playlist",
                "show",
                "episode"
              ],
              "enumTitles": [
                "Tracks",
                "Albums",
                "Artists",
                "Playlists",
                "Podcast shows",
                "Podcast episodes"
              ]
            },
            "default": []
          },
          "artistId": {
            "title": "Artist id or URL",
            "type": "string",
            "description": "Spotify artist id, `spotify:artist:…` URI, or `open.spotify.com/artist/…` URL. Used by **artist** mode (and **artists** batch)."
          },
          "artistIds": {
            "title": "Artist ids or URLs (batch)",
            "type": "array",
            "description": "List of Spotify artist ids/URIs/URLs for batch **artist** / **artists** lookups.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "albumGroups": {
            "title": "Album groups (artist mode)",
            "type": "array",
            "description": "Which album groups to include when pulling an artist's discography.",
            "items": {
              "type": "string",
              "enum": [
                "album",
                "single",
                "compilation",
                "appears_on"
              ],
              "enumTitles": [
                "Albums",
                "Singles & EPs",
                "Compilations",
                "Appears on"
              ]
            },
            "default": []
          },
          "albumId": {
            "title": "Album id or URL",
            "type": "string",
            "description": "Spotify album id, `spotify:album:…` URI, or `open.spotify.com/album/…` URL. Used by **album** mode (and **albums** batch)."
          },
          "albumIds": {
            "title": "Album ids or URLs (batch)",
            "type": "array",
            "description": "List of Spotify album ids/URIs/URLs for batch **album** / **albums** lookups.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "playlistId": {
            "title": "Playlist id or URL",
            "type": "string",
            "description": "Spotify playlist id, `spotify:playlist:…` URI, or `open.spotify.com/playlist/…` URL. Used by **playlist** mode."
          },
          "playlistIds": {
            "title": "Playlist ids or URLs (batch)",
            "type": "array",
            "description": "List of Spotify playlist ids/URIs/URLs for batch **playlist** lookups.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "trackId": {
            "title": "Track id or URL (batch tracks)",
            "type": "string",
            "description": "Spotify track id, `spotify:track:…` URI, or `open.spotify.com/track/…` URL. Used by **tracks** batch mode."
          },
          "trackIds": {
            "title": "Track ids or URLs (batch)",
            "type": "array",
            "description": "List of Spotify track ids/URIs/URLs for batch **tracks** lookups (up to 50 per API call, auto-chunked).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper bound on rows per entity/target. For search this caps each type at ~1,000 (Spotify's offset limit); for artist/album/playlist it drives pagination. Empty input uses 200.",
            "default": 200
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy used to reach Spotify. Residential is recommended (and default) so Spotify does not rate-limit a shared datacenter IP. A fresh IP is used per request.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}