Skip to content

Apple API: Search songs

Searches the Apple Music song catalog by title and artist words, returning matching tracks in relevance order with prices and previews when available.

music.apple.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Apple.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Query, requiredquery

Song title and/or artist words, such as Espresso Sabrina Carpenter.

Espresso Sabrina Carpenter

Country optionalcountry

Country name or two-letter code, such as United States or GB.

United States (default)

Max Results optionalmax_results

Maximum number of matches to return, such as 20 (up to 200).

20 (default)

Whole number from 1 to 200.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "songs": [    {      "album": "Espresso EP",      "genre": "Pop",      "title": "Espresso (On Vacation Version)",      "artist": "Sabrina Carpenter",      "length": "2:55",      "currency": "USD",      "explicit": "no",      "track_id": 1746801012,      "itunes_price": 1.29,      "preview_link": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview211/v4/e9/4d/02/e94d0230-11ee-ef94-d2cf-a5d547bd73f4/mzaf_554140808559155562.plus.aac.p.m4a",      "release_date": "2024-05-17",      "apple_music_link": "https://music.apple.com/us/album/espresso-on-vacation-version/1746800651?i=1746801012&uo=4",      "length_milliseconds": 175459    },    {      "album": "Short n' Sweet",      "genre": "Pop",      "title": "Espresso",      "artist": "Sabrina Carpenter",      "length": "2:55",      "currency": "USD",      "explicit": "no",      "track_id": 1752214923,      "itunes_price": 1.29,      "preview_link": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview211/v4/99/da/ff/99daffce-cdde-59c6-5ae0-7f922ce411a8/mzaf_5621292401829922816.plus.aac.p.m4a",      "release_date": "2024-06-14",      "apple_music_link": "https://music.apple.com/us/album/espresso/1752214909?i=1752214923&uo=4",      "length_milliseconds": 175459    },    {      "album": "Espresso - Single",      "genre": "Pop",      "title": "Espresso",      "artist": "Sabrina Carpenter",      "length": "2:55",      "currency": "USD",      "explicit": "no",      "track_id": 1744253558,      "itunes_price": 1.29,      "preview_link": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview211/v4/48/14/5f/48145fa9-a5b6-32a0-45e8-05af48e52b9c/mzaf_6315924685303002328.plus.aac.p.m4a",      "release_date": "2024-06-14",      "apple_music_link": "https://music.apple.com/us/album/espresso/1744253545?i=1744253558&uo=4",      "length_milliseconds": 175459    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
music.apple.com/search_songs
Returns
title, artist, album, release date, length, genre, explicit flag, price, preview and Apple Music links

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method music.apple.com/search_songs with the inputs above.

Ask your agent

  • Find songs by Sabrina Carpenter with prices and preview links on Apple Music
  • I need the top 10 tracks matching 'Espresso' in the UK store, with album and release date
  • Look up tracks titled Blinding Lights by The Weeknd and show explicit flags
  • Which songs match the words 'midnight rain Taylor' in Canada, max 5 results?
  • Search Apple Music for Bad Guy by Billie Eilish and give me genre and song length
  • Finds Apple Podcasts shows by name or topic in a country, ordered by search relevance, with ratings when the show page provides them.

    podcasts.apple.com/search_podcasts
  • Finds iPhone and iPad apps by keyword in a chosen country's App Store, with ratings, prices, categories and App Store links.

    apps.apple.com/search_apps
  • Finds an Apple Music album by title and optional artist, or by album link, and returns its matched release, purchase details and tracks in order.

    music.apple.com/get_album
  • Lists the current top songs, albums, or music videos on Apple Music for a country, in chart order. Countries without an Apple Music chart return no results.

    music.apple.com/list_top_charts
  • Gets an Apple Music artist profile by name or artist link. The profile includes the latest release, top songs and albums.

    music.apple.com/get_artist
  • Gets an Apple Podcasts show's details and its newest available episodes, by show name or Apple Podcasts link.

    podcasts.apple.com/get_podcast
  • Gets an iPhone or iPad app's public App Store listing by name or link. You can narrow it by developer and country. In-app purchases are included when the page lists them.

    apps.apple.com/get_app
  • Gets customer reviews for an iPhone or iPad app, found by name or App Store link, from the selected country's App Store.

    apps.apple.com/get_app_reviews