{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Music Artist Scraper - Songs, Albums, Videos",
    "description": "Scrape Apple Music artists by link, ID or name and get genre, biography, top songs, albums with release dates, music videos, playlists and similar artists. Or search songs, albums and music videos by keyword in 107 country stores. No login.",
    "version": "0.1",
    "x-build-id": "rKa3zcbwtUA1XpKSN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawl_craft~apple-music-artist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawl_craft-apple-music-artist-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/crawl_craft~apple-music-artist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawl_craft-apple-music-artist-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/crawl_craft~apple-music-artist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawl_craft-apple-music-artist-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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🔗 Artists or search terms",
            "type": "array",
            "description": "In artist mode: Apple Music artist page links, numeric artist IDs and/or artist names, mixed freely, one result per entry (names pick the best match in the chosen country). In search mode: words to search for, such as a song or album title.",
            "items": {
              "type": "string"
            }
          },
          "entity": {
            "title": "🎯 What to collect",
            "enum": [
              "artist",
              "song",
              "album",
              "musicVideo"
            ],
            "type": "string",
            "description": "Artist profile returns one full profile per entry (songs, albums, videos, playlists, similar artists). Songs, Albums or Music videos search every entry as a keyword and return one row per match.",
            "default": "artist"
          },
          "storefront": {
            "title": "📍 Country store",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "nz",
              "ie",
              "de",
              "fr",
              "es",
              "it",
              "pt",
              "nl",
              "be",
              "lu",
              "at",
              "ch",
              "se",
              "no",
              "dk",
              "fi",
              "is",
              "pl",
              "cz",
              "sk",
              "hu",
              "ro",
              "bg",
              "gr",
              "hr",
              "si",
              "ee",
              "lv",
              "lt",
              "ua",
              "tr",
              "il",
              "jp",
              "kr",
              "cn",
              "hk",
              "tw",
              "sg",
              "my",
              "th",
              "vn",
              "id",
              "ph",
              "in",
              "pk",
              "lk",
              "np",
              "kh",
              "kz",
              "ae",
              "sa",
              "qa",
              "kw",
              "bh",
              "om",
              "jo",
              "lb",
              "eg",
              "ma",
              "dz",
              "tn",
              "ng",
              "ke",
              "gh",
              "za",
              "mx",
              "br",
              "ar",
              "cl",
              "co",
              "pe",
              "uy",
              "ec",
              "bo",
              "py",
              "ve",
              "cr",
              "pa",
              "gt",
              "do",
              "ni",
              "hn",
              "sv",
              "jm",
              "tt",
              "mt",
              "cy",
              "al",
              "am",
              "az",
              "by",
              "ge",
              "md",
              "mk",
              "me",
              "ru",
              "rs",
              "uz",
              "mn",
              "bn",
              "la",
              "mo",
              "fj"
            ],
            "type": "string",
            "description": "Apple Music country used for IDs and names, and for links that carry no country. Links with a country keep their own.",
            "default": "us"
          },
          "maxPerSection": {
            "title": "🔢 Max items per list",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Most rows kept in each list of an artist: top songs, albums, music videos, playlists and similar artists. Apple shows 24 songs and albums and 12 of the others, so higher values return what exists.",
            "default": 20
          },
          "maxItems": {
            "title": "📊 Max search results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Most results returned for each search term when collecting songs, albums or music videos. Not used for artist profiles.",
            "default": 20
          },
          "includeAlbumDetails": {
            "title": "✅ Add album details and genre",
            "type": "boolean",
            "description": "Fills the artist genre, each album's track count, release date, genre, copyright, price, currency and content rating, and each top song's genre, release date, price and rating. Adds a little time per artist; turn off for the fastest run.",
            "default": true
          },
          "includeAlbumTracks": {
            "title": "💿 Add every song of each album",
            "type": "boolean",
            "description": "Adds a tracks list to every album with each song's number, length, price, genre and rating. Runs take a little longer. Artist profiles only.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional. Choose the proxy settings to use for this run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}