How to Use Apple Music song details in Gemini CLI
Fetch an Apple Music song’s title, link, duration, track number, and explicit-content flag. Use it to check a specific recording or enrich a track list; the documented example leaves artist and album blank.
Prompts to try with Apple Music song details in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Apple Music song details for https://music.apple.com/us/album/lover/1468058165?i=1468058169 and add the returned title and source link to our music reference fixture.
Use Apple Music song details for https://music.apple.com/us/album/lover/1468058165?i=1468058169 and compare its duration with the value in our track catalog. Show the difference in seconds.
Use Apple Music song details for https://music.apple.com/us/album/lover/1468058165?i=1468058169 and update our track review table with the returned track number and explicit-content flag.
Use Apple Music song details for https://music.apple.com/us/album/lover/1468058165?i=1468058169 to inspect whether artist and album are populated, then make our song component handle that response.
Use Apple Music song details for https://music.apple.com/us/album/lover/1468058165?i=1468058169 and create a project report comparing its returned title, duration, and track number with our stored record.
How to set up Apple Music song details in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Apple Music song details
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "scrapecreators", "model": "scrapecreators/apple-music-track", "input": { "id": "1833328840" } }'
Then paste one of the prompts above: Gemini CLI finds Apple Music song details on Spiral, shows the price and runs it.
Apple Music song details providers and prices
Spiral runs Apple Music song details through ScrapeCreators. Open a card for today's price, with every fee included.
What can you do with Apple Music song details in Gemini CLI?
Build a track review table from Apple Music song titles, durations, track numbers, and explicit-content flags. Your coding agent can compare those results with project records and handle the blank artist and album values shown in the provider’s example.
Check a track list
Compare supplied Apple Music links with returned song titles and track numbers to flag incorrect entries for review.
Calculate a proposed playlist’s runtime
Retrieve the songs behind a supplied list of links and total their returned durations for a listening session.
Review explicit-content labels
Build a review list from the returned explicit-content flags before selecting tracks for a public event.
Check catalog metadata completeness
Identify song records with missing artist or album details before using them in a music reference table.
Prepare music research notes
Turn a supplied song link into a compact reference containing its returned title, duration, track number, and source link.
Review metadata changes
Where permitted, compare repeated lookups of known song links and report changes to titles, durations, track numbers, or explicit-content flags.
More on Apple Music song details and Gemini CLI
Apple Music song details in other agents
Questions about Apple Music song details in Gemini CLI
Can Gemini CLI use Apple Music song details?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Apple Music song details like any built-in tool.
How much does Apple Music song details cost in Gemini CLI?
$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need a ScrapeCreators account to use Apple Music song details in Gemini CLI?
No. Spiral runs Apple Music song details on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.
How long does it take to set up Apple Music song details in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Apple Music song details runs?
Apple Music song details runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.
What song information can I expect?
The documented example includes a title, Apple Music link, duration in milliseconds, track number, and explicit-content flag. It describes a specific song rather than an album’s full track list.
Are artist and album details always filled in?
No. Both artist and album are null in the provider’s example, even though the title, duration, and track number are populated.
How fresh is the information?
ScrapeCreators says it fetches the latest available track information when you make a request. That describes retrieval timing, not a guaranteed schedule for Apple Music metadata changes.
Is Apple Music’s catalog identical in every country?
No. Apple states that content varies by geographic region, so a listing in one country does not establish worldwide availability.
Does this provide private listening data or guaranteed metadata?
ScrapeCreators describes its service as retrieving publicly available website information. Its terms explicitly decline to guarantee availability or accuracy.
Start using Apple Music song details in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


