iTunes API

Get iTunes data as clean JSON with one key: 23 endpoints, 1 to 5 credits per call, the same response shape as every other platform.

What you get#

Onekey exposes iTunes as 23 endpoints behind one API key: 4 endpoints return one record (data is an object) and 19 endpoints return a list (data is an array). Every answer uses the same envelope (success, data, metadata, error), the cost is reported in metadata.credits_charged, and fields are mapped onto the unified schema so the code you write for iTunes also works for the rest of the music & audio category.

Endpoints#

EndpointWhat it doesParametersCreditsStatus
lookup_albumiTunes album by collection id.id*, country1stable
lookup_album_tracksTracks of an iTunes album (first row is the album itself).id*, country5stable
lookup_appApp Store app by id.id*, country1stable
lookup_artistiTunes/Apple Music artist by id.id*, country1stable
lookup_artist_albumsAlbums of an iTunes artist (first row is the artist itself).id*, country5stable
lookup_podcastApple Podcasts show by id.id*, country1stable
lookup_podcast_episodesRecent episodes of an Apple Podcasts show (first row is the show).id*, country5stable
search_albumsSearch iTunes albums.q*, country5stable
search_appsSearch App Store iOS apps.q*, country5stable
search_artistsSearch iTunes music artists.q*, country5stable
search_audiobooksSearch Apple audiobooks.q*, country5stable
search_ebooksSearch Apple Books ebooks.q*, country5stable
search_moviesSearch iTunes movies.q*, country5beta
search_musicSearch iTunes music tracks.q*, country5stable
search_music_videosSearch iTunes music videos.q*, country5stable
search_podcastsSearch Apple Podcasts shows.q*, country5stable
search_tv_seasonsSearch iTunes TV seasons.q*, country5stable
top_albumsApple Music most-played albums chart.country, limit5stable
top_free_appsApp Store top free apps chart.country, limit5stable
top_free_booksApple Books top free books chart.country, limit5stable
top_paid_appsApp Store top paid apps chart.country, limit5stable
top_podcastsApple Podcasts top shows chart.country, limit5stable
top_songsApple Music most-played songs chart.country, limit5stable

A * marks a required parameter. Each endpoint name links to its reference page with the full parameter table, caching window and a recorded response.

Make a request#

This calls itunes.lookup_album (1 credit, stable). Replace YOUR_API_KEY with your key; sign up, no card. 1,000 free credits cover the open-platform endpoints. Hard-to-reach platforms (X, TikTok, Instagram, Reddit, and others marked on their page) need a verified email and a purchased pack.

curl "https://api.onekey.dev/v1/itunes/lookup_album?id=1097861387" \
  -H "x-api-key: YOUR_API_KEY"

Fields you get back#

These unified fields come back from iTunes, with the same names as on every other platform. The count is how many of its 23 mapped endpoints return the field; a field the source lacks is null, never missing. 6 platform-specific fields (ext.<name>) come on top, documented on each endpoint page.

FieldTypeEndpoints
author.displayNamestring23
media.thumbnailUrlURL20
content.createdAtISO 8601 date11
content.idstring11
content.titlestring11
content.urlURL11
content.categorystring10
entity.idstring10
entity.namestring10
entity.urlURL10
entity.categorystring9
entity.releaseDateISO 8601 date4
entity.stats.itemCountinteger4
media.previewUrlURL4
author.idstring3
entity.descriptionstring3
entity.stats.ratingnumber3
listing.pricenumber3
author.urlURL2
content.textstring2
entity.stats.ratingCountinteger2
package.versionstring2

The full schema is in Unified schema.

Pricing#

iTunes calls cost 1 to 5 credits, flat per endpoint. Free when served from cache (0.2 credit for a cached response over 100 KB). Invalid, failed or not-found calls are not charged. See pricing for credit packs.