Web Service Endpoint

Get Multiple Catalog Genres

Fetch one or more genres.

URL

GET https://api.music.apple.com/v1/catalog/{storefront}/genres

Path Parameters

storefront
string
(Required)

An iTunes Store territory, specified by an ISO 3166 alpha-2 country code. The possible values are the id attributes of Storefront objects.

Query Parameters

ids
[string]
(Required)

The unique identifiers for the catalog genres. For possible values, get all the genres for the current top charts by sending this endpoint without the ids parameter.

l
string

The localization to use, specified by a language tag. The possible values are in the supportedLanguageTags array belonging to the Storefront object specified by storefront. Otherwise, the storefront’s defaultLanguageTag is used.

Response Codes

OK

The request was successful.

Discussion

If successful, the HTTP status code is 200 (OK) and the data array in the ResponseRoot object contains an array of Genre objects. If unsuccessful, the HTTP status code indicates the error and the details are in the errors array. See Handle a Response.

Example

https://api.music.apple.com/v1/catalog/us/genres?ids=14,21
{ "data": [ { "attributes": { "name": "Pop" }, "href": "/v1/catalog/us/genres/14", "id": "14", "type": "genres" }, { "attributes": { "name": "Rock" }, "href": "/v1/catalog/us/genres/21", "id": "21", "type": "genres" } ]}

See Also

Requesting Catalog Genres

Get a Catalog Genre

Fetch a genre by using its identifier.

Get a Catalog Genre's Relationship Directly by Name

Fetch a genre's relationship by using its identifier.

Get Catalog Top Charts Genres

Fetch all genres for the current top charts.