GroundsocialDocs

API · Apple Music

GET /applemusic/search

Search Apple Music for artists, albums, songs and music videos.

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

Search Apple Music for artists, albums, songs and music videos.

Query parameters

NameTypeRequiredDescription
qstringyesSearch words. Example: taylor swift.
typestringnoKinds to search: artist, album, song, music-video.
limitintegernoResults per kind (default 10).
countrystringnoStorefront, ISO 3166-1 alpha-2 in any case (default us, or the link’s). uk reads as gb. Example: gb.

Responses

StatusMeaningSchema
200Matches by kind.AppleMusicSearchResponse
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

AppleMusicSearchResponse fields

FieldTypeDescription
artistsAppleMusicArtist[]
albumsAppleMusicAlbum[]
songsAppleMusicTrack[]
music_videosAppleMusicTrack[]

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