YouTube Music Albums Scraper
Pricing
from $3.99 / 1,000 results
YouTube Music Albums Scraper
Search current YouTube Music album results and retrieve rich album and optional track metadata through YouTube Music's first-party youtubei endpoints.
YouTube Music Albums Scraper
Pricing
from $3.99 / 1,000 results
Search current YouTube Music album results and retrieve rich album and optional track metadata through YouTube Music's first-party youtubei endpoints.
You can access the YouTube Music Albums Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
{ "openapi": "3.0.1", "info": { "version": "1.1", "x-build-id": "47G6c1wJTfs4D32vz" }, "servers": [ { "url": "https://api.apify.com/v2" } ], "paths": { "/acts/googleapi~youtube-music-albums-scraper/run-sync-get-dataset-items": { "post": { "operationId": "run-sync-get-dataset-items-googleapi-youtube-music-albums-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/googleapi~youtube-music-albums-scraper/runs": { "post": { "operationId": "runs-sync-googleapi-youtube-music-albums-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/googleapi~youtube-music-albums-scraper/run-sync": { "post": { "operationId": "run-sync-googleapi-youtube-music-albums-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": { "searchQueries": { "title": "Search queries", "minItems": 1, "maxItems": 50, "type": "array", "description": "Artist, album, or genre searches. This is the preferred query field; compatibility aliases are queries, searchKeywords, and searchQuery.", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "queries": { "title": "Queries (compatibility alias)", "maxItems": 50, "type": "array", "description": "Compatibility alias for searchQueries. When both are present their values are combined and deduplicated case-insensitively.", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "searchKeywords": { "title": "Search keywords (compatibility alias)", "maxItems": 50, "type": "array", "description": "Compatibility alias for searchQueries.", "items": { "type": "string", "minLength": 1, "maxLength": 200 } }, "searchQuery": { "title": "Single search query (compatibility alias)", "maxLength": 200, "type": "string", "description": "Compatibility alias for one searchQueries value." }, "startUrls": { "title": "YouTube Music search URLs", "maxItems": 50, "type": "array", "description": "Optional HTTPS music.youtube.com/search URLs with a q parameter. When supplied, custom URLs take precedence over generated query URLs. Legacy string entries are accepted by runtime validation.", "items": { "type": "object", "properties": { "url": { "title": "Search URL", "type": "string", "description": "HTTPS YouTube Music search URL with q parameter.", "pattern": "^https://music\\.youtube\\.com/search\\?" } }, "required": [ "url" ], "additionalProperties": false } }, "sourceUrls": { "title": "Source URLs (compatibility alias)", "maxItems": 50, "type": "array", "description": "Compatibility alias for startUrls; only YouTube Music search URLs are accepted.", "items": { "type": "string" } }, "searchUrls": { "title": "Search URLs (compatibility alias)", "maxItems": 50, "type": "array", "description": "Compatibility alias for startUrls.", "items": { "type": "string" } }, "urls": { "title": "URLs (compatibility alias)", "maxItems": 50, "type": "array", "description": "Compatibility alias for search URLs.", "items": { "type": "string" } }, "maxItems": { "title": "Maximum albums", "minimum": 1, "maximum": 100, "type": "integer", "description": "Global maximum number of unique album records emitted across all queries or source URLs (1–100).", "default": 20 }, "maxPages": { "title": "Maximum pages per source", "minimum": 1, "maximum": 10, "type": "integer", "description": "Maximum continuation pages to inspect for each query or custom search URL (1–10).", "default": 3 }, "deduplicate": { "title": "Deduplicate albums", "type": "boolean", "description": "Deduplicate globally by YouTube Music browse ID across pages and sources.", "default": true }, "sortBy": { "title": "Sort results", "enum": [ "source_order", "title_asc", "year_desc", "year_asc" ], "type": "string", "description": "source_order emits source order; the year and title options sort the bounded collected candidate set globally before maxItems is applied.", "default": "source_order" }, "albumTypes": { "title": "Album types", "maxItems": 3, "type": "array", "description": "Optional allow-list of Album, EP, and/or Single.", "items": { "type": "string" } }, "artistKeywords": { "title": "Artist keywords", "maxItems": 20, "type": "array", "description": "Optional case-insensitive terms matched against the public artist name(s). Missing artist names do not match.", "items": { "type": "string", "minLength": 1, "maxLength": 100 } }, "minYear": { "title": "Minimum release year", "minimum": 0, "maximum": 9999, "type": "integer", "description": "Optional inclusive lower bound for a four-digit release year." }, "maxYear": { "title": "Maximum release year", "minimum": 0, "maximum": 9999, "type": "integer", "description": "Optional inclusive upper bound for a four-digit release year; must be at least minYear when both are set." }, "includeAlbumDetails": { "title": "Fetch public album details", "type": "boolean", "description": "Fetch one public album page per selected result for descriptions, release metadata and related catalog entries. Disabled by default. Enabling includeTracks also enables this request.", "default": false }, "includeTracks": { "title": "Include track metadata", "type": "boolean", "description": "Fetch each selected album's public browse page and include its bounded track list. The compatibility alias includeAttributes controls the same option when includeTracks is omitted.", "default": false }, "includeAttributes": { "title": "Include attributes (compatibility alias)", "type": "boolean", "description": "Compatibility alias for includeTracks. When both fields are supplied, this alias takes precedence so Console defaults do not override an explicit compatibility input." }, "includeMedia": { "title": "Include artwork", "type": "boolean", "description": "Include product-associated artwork URL(s) and dimensions when exposed.", "default": true }, "maxTracks": { "title": "Maximum tracks per album", "minimum": 1, "maximum": 200, "type": "integer", "description": "Maximum public tracks retained for one album (1–200).", "default": 100 }, "language": { "title": "Request language", "pattern": "^[a-zA-Z]{2}$", "type": "string", "description": "Two-letter language code sent to YouTube Music.", "default": "en" }, "country": { "title": "Request country", "pattern": "^[a-zA-Z]{2}$", "type": "string", "description": "Two-letter country code sent to YouTube Music.", "default": "US" }, "locale": { "title": "Locale", "pattern": "^[a-zA-Z]{2}([-_][a-zA-Z]{2})?$", "type": "string", "description": "Optional ll or ll-CC locale alias. When language or country is also provided, conflicting components are rejected." }, "requestDelayMs": { "title": "Request delay (ms)", "minimum": 0, "maximum": 5000, "type": "integer", "description": "Bounded delay before each first-party request (0–5000 ms).", "default": 150 }, "maxConcurrency": { "title": "Detail concurrency", "minimum": 1, "maximum": 3, "type": "integer", "description": "Maximum concurrent album detail requests after ordered search collection (1–3).", "default": 1 }, "maxRetries": { "title": "Request retries", "minimum": 0, "maximum": 5, "type": "integer", "description": "Retries for transient network, timeout, 429, and 5xx failures (0–5). Access boundaries are not retried indefinitely.", "default": 2 }, "requestTimeoutSecs": { "title": "Request timeout (seconds)", "minimum": 10, "maximum": 120, "type": "integer", "description": "Timeout for one YouTube Music request (10–120 seconds).", "default": 30 }, "maxResponseBytes": { "title": "Maximum response bytes", "minimum": 100000, "maximum": 20000000, "type": "integer", "description": "Bounded response size accepted from a first-party request.", "default": 8000000 }, "userAgent": { "title": "User agent", "maxLength": 300, "type": "string", "description": "Optional ordinary browser user-agent string; no stealth or fingerprint-evasion behavior is used." }, "proxyConfiguration": { "title": "Proxy configuration", "type": "object", "description": "Optional standard Apify proxy configuration. It is wired into the HTTPS transport when supplied; proxy credentials are never logged or emitted." }, "page": { "title": "Page", "minimum": 1, "maximum": 100, "type": "integer", "description": "One-based page at which to start collecting. Earlier continuation pages are traversed and discarded; maxPages counts pages collected after this starting page (1–100).", "default": 1 } } }, "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 } } } } } } } } }}OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for YouTube Music Albums Scraper from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients: