{
  "openapi": "3.0.1",
  "info": {
    "title": "Beatport Scraper",
    "description": "Scrape Beatport - the world's largest DJ & electronic music store. Search tracks, browse genres, DJ charts, labels and artists, and get full track metadata: BPM, key, duration, price, artwork, audio previews and release dates.",
    "version": "1.0",
    "x-build-id": "Pq7OZ1gnCK9TbiiYO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~beatport-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-beatport-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/crawlerbros~beatport-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-beatport-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/crawlerbros~beatport-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-beatport-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "browseByGenre",
              "topCharts",
              "browseByLabel",
              "browseByArtist",
              "browseReleases",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch from Beatport.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text query (mode=search).",
            "default": "tech house"
          },
          "searchType": {
            "title": "Search result type",
            "enum": [
              "tracks",
              "artists",
              "labels",
              "charts"
            ],
            "type": "string",
            "description": "Entity type to return for the search (mode=search).",
            "default": "tracks"
          },
          "genre": {
            "title": "Genre",
            "enum": [
              "tech-house",
              "techno-peak-time-driving",
              "techno-raw-deep-hypnotic",
              "house",
              "deep-house",
              "progressive-house",
              "melodic-house-techno",
              "minimal-deep-tech",
              "funky-house",
              "jackin-house",
              "organic-house",
              "afro-house",
              "trance-main-floor",
              "trance-raw-deep-hypnotic",
              "psy-trance",
              "drum-bass",
              "dubstep",
              "140-deep-dubstep-grime",
              "breaks-breakbeat-uk-bass",
              "uk-garage-bassline",
              "hard-techno",
              "hard-dance-hardcore-neo-rave",
              "electro-classic-detroit-modern",
              "bass-house",
              "bass-club",
              "trap-future-bass",
              "electronica",
              "ambient-experimental",
              "indie-dance",
              "nu-disco-disco",
              "dance-pop",
              "dj-edits",
              "dj-tools-acapellas",
              "downtempo",
              "mainstage",
              "african",
              "amapiano",
              "brazilian-funk",
              "caribbean",
              "country",
              "hip-hop",
              "latin",
              "latin-electronic",
              "pop",
              "rb",
              "rock"
            ],
            "type": "string",
            "description": "Beatport genre to browse (mode=browseByGenre; also narrows topCharts).",
            "default": "tech-house"
          },
          "chartType": {
            "title": "Chart type",
            "enum": [
              "latest",
              "trending",
              "popular"
            ],
            "type": "string",
            "description": "Which chart ranking to fetch (mode=topCharts).",
            "default": "latest"
          },
          "releaseSort": {
            "title": "Release sort order",
            "enum": [
              "newest",
              "oldest",
              "name",
              "trackCount",
              "recentlyEncoded"
            ],
            "type": "string",
            "description": "How to order releases (mode=browseReleases).",
            "default": "newest"
          },
          "labelId": {
            "title": "Label ID (mode=browseByLabel)",
            "minimum": 1,
            "maximum": 999999999,
            "type": "integer",
            "description": "Beatport label ID, e.g. `20670`. Found in the label page URL: beatport.com/label/<slug>/<id>."
          },
          "artistId": {
            "title": "Artist ID (mode=browseByArtist)",
            "minimum": 1,
            "maximum": 999999999,
            "type": "integer",
            "description": "Beatport artist ID, e.g. `406088`. Found in the artist page URL: beatport.com/artist/<slug>/<id>."
          },
          "startUrls": {
            "title": "Beatport URLs (mode=byUrl)",
            "type": "array",
            "description": "Track, chart, artist, label, release or genre URLs, e.g. `https://www.beatport.com/track/the-kid-original-mix/3731110`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minBpm": {
            "title": "Min BPM",
            "minimum": 40,
            "maximum": 200,
            "type": "integer",
            "description": "Drop tracks below this tempo."
          },
          "maxBpm": {
            "title": "Max BPM",
            "minimum": 40,
            "maximum": 200,
            "type": "integer",
            "description": "Drop tracks above this tempo."
          },
          "key": {
            "title": "Musical key",
            "enum": [
              "A Minor",
              "C Major",
              "B Minor",
              "D Major",
              "C# Minor",
              "E Major",
              "D Minor",
              "F Major",
              "E Minor",
              "G Major",
              "F# Minor",
              "A Major",
              "G Minor",
              "B Major",
              "A# Minor",
              "C# Major",
              "F Minor",
              "G# Major",
              "C Minor",
              "D# Major",
              "D# Minor",
              "F# Major",
              "G# Minor",
              "A# Major"
            ],
            "type": "string",
            "description": "Only emit tracks in this musical key."
          },
          "containsKeyword": {
            "title": "Contains keyword",
            "type": "string",
            "description": "Only emit records whose title contains this keyword (case-insensitive)."
          },
          "releasedAfter": {
            "title": "Released after (YYYY-MM-DD)",
            "type": "string",
            "description": "Only emit tracks released on or after this date (mode=search / browseByGenre)."
          },
          "includeChartTracks": {
            "title": "Include chart tracks",
            "type": "boolean",
            "description": "Also emit the tracks inside each fetched chart (mode=topCharts).",
            "default": false
          },
          "includeReleaseTracks": {
            "title": "Include release tracks",
            "type": "boolean",
            "description": "Also emit every track inside each fetched release (mode=browseReleases / mode=byUrl release URLs).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. If api.beatport.com returns 401s from your IP range (environment-level block), enable Apify proxy (AUTO datacenter is free) to route API + token requests through an allowed network."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}