GroundsocialDocs

API · Apple Music

GET /applemusic/charts

A country’s Apple Music most-played chart: songs, albums, videos or playlists.

RequestGET /v1/applemusic/charts
Operation idapplemusic.charts.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

A country’s Apple Music most-played chart: songs, albums, videos or playlists.

Query parameters

NameTypeRequiredDescription
countrystringnoStorefront, ISO 3166-1 alpha-2 in any case (default us, or the link’s). uk reads as gb. Example: gb.
type"songs" | "albums" | "music-videos" | "playlists"nosongs (default), albums, music-videos or playlists. One of songs, albums, music-videos, playlists.
limitintegernoPositions from the top (default 50).
sincestringnoOnly entries released on or after this date.
untilstringnoOnly entries released on or before this date.

Responses

StatusMeaningSchema
200The chart.AppleMusicChartResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No Apple Music item by that id in that storefront.Error
429Too many requests. Wait for Retry-After seconds.Error
503Apple Music is temporarily unavailable. Retryable; nothing was charged.Error

AppleMusicChartResponse fields

FieldTypeDescription
feedobject

Errors use one shape everywhere; see Errors for every code and what to do.