[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Spotify track details](https://spiral.ai/integrations/gemini-cli/spotify-track-details)

# How to Use Spotify track details in Gemini CLI

Fetch a Spotify song’s title, artists, album information, duration, playability, sharing details, and play count when available. Use it to check a specific recording, enrich a music catalog, or compare public play totals across selected tracks.

|  |  |
| --- | --- |
| Model | Spotify track details |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Spotify track details in Gemini CLI

- Use Spotify track details for https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK and compare the returned title, artists, album information, and duration with the corresponding record in our music catalog.
- Use Spotify track details for https://open.spotify.com/track/6sTlzpJaFGkFQ4BNccmbW9 and populate our track detail component with the returned title, artists, duration, and sharing link.
- Use Spotify track details for https://open.spotify.com/track/4ChomJf8z16E6Zw4EoioYY and add its returned content-rating label and playability to our editorial review report.
- Use Spotify track details for https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK and https://open.spotify.com/track/6sTlzpJaFGkFQ4BNccmbW9, then generate a catalog comparison showing titles, artists, durations, and play counts where returned.
- Use Spotify track details for https://open.spotify.com/track/4ChomJf8z16E6Zw4EoioYY and update our program planner with its duration in minutes and seconds.

## How to set up Spotify track details in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Spotify track details**: One request; the result comes back by polling or a webhook.

```bash
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/spotify-track",
    "input": {
      "id": "1ITJflybJsfarsUtiBvkfK"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds Spotify track details on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## Spotify track details tools and prices

- [Spotify · Track](https://spiral.ai/tools/scrapecreators/scrapecreators/spotify-track) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| id |  | — | Spotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead. |
| url |  | — | Spotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead. |

## What can you do with Spotify track details in Gemini CLI?

Fill a project’s music catalog with Spotify titles, artist credits, album information, and durations for selected recordings. A coding agent can also turn returned explicit-content labels and playability into an editorial review report.

### Enrich a music catalog

Fill catalog records with the Spotify title, artist credits, album information, duration, and sharing link for each selected recording.

### Check recordings before editorial selection

Review artist credits, album information, and duration before adding a recording to an editorial shortlist.

### Screen a shortlist for explicit-content labels

Collect the returned content-rating labels for proposed event or broadcast tracks and flag entries labeled explicit for review.

### Plan a timed music segment

Convert track durations from milliseconds and total the selected songs to check whether they fit a program’s allotted time.

### Compare public play totals

Build a comparison table for selected recordings using available play counts, with missing counts shown separately from numeric totals.

### Review changes to selected recordings

Compare repeated lookups of the same tracks and flag changes in titles, artist credits, explicit-content labels, or returned playability.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## Spotify track details in other agents

- [Amp](https://spiral.ai/integrations/amp/spotify-track-details)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/spotify-track-details)
- [Claude](https://spiral.ai/integrations/claude-desktop/spotify-track-details)
- [Claude Code](https://spiral.ai/integrations/claude-code/spotify-track-details)
- [Cline](https://spiral.ai/integrations/cline/spotify-track-details)
- [Codex](https://spiral.ai/integrations/codex/spotify-track-details)
- [Cursor](https://spiral.ai/integrations/cursor/spotify-track-details)
- [Devin](https://spiral.ai/integrations/devin/spotify-track-details)
- [dots](https://spiral.ai/integrations/dots/spotify-track-details)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/spotify-track-details)
- [Gemini](https://spiral.ai/integrations/gemini/spotify-track-details)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/spotify-track-details)
- [goose](https://spiral.ai/integrations/goose/spotify-track-details)
- [Grok](https://spiral.ai/integrations/grok/spotify-track-details)
- [Grok Build](https://spiral.ai/integrations/grok-build/spotify-track-details)
- [Hermes](https://spiral.ai/integrations/hermes/spotify-track-details)
- [Instinct](https://spiral.ai/integrations/instinct/spotify-track-details)
- [Manus](https://spiral.ai/integrations/manus/spotify-track-details)
- [Muse](https://spiral.ai/integrations/muse/spotify-track-details)
- [Muse Code](https://spiral.ai/integrations/muse-code/spotify-track-details)
- [n8n](https://spiral.ai/integrations/n8n/spotify-track-details)
- [Notion](https://spiral.ai/integrations/notion/spotify-track-details)
- [OpenClaw](https://spiral.ai/integrations/openclaw/spotify-track-details)
- [opencode](https://spiral.ai/integrations/opencode/spotify-track-details)
- [Perplexity](https://spiral.ai/integrations/perplexity/spotify-track-details)
- [Raycast](https://spiral.ai/integrations/raycast/spotify-track-details)
- [VS Code](https://spiral.ai/integrations/vscode/spotify-track-details)
- [Windsurf](https://spiral.ai/integrations/windsurf/spotify-track-details)
- [Zapier](https://spiral.ai/integrations/zapier/spotify-track-details)

## More Gemini CLI guides

- [Spotify podcast episodes](https://spiral.ai/integrations/gemini-cli/spotify-podcast-episodes)
- [Stack Exchange accepted answers](https://spiral.ai/integrations/gemini-cli/stack-exchange-accepted-answers)
- [Spotify podcast details](https://spiral.ai/integrations/gemini-cli/spotify-podcast-details)
- [Stack Exchange answer details](https://spiral.ai/integrations/gemini-cli/stack-exchange-answer-details)
- [Spotify playlist tracks](https://spiral.ai/integrations/gemini-cli/spotify-playlist-tracks)
- [Stack Exchange post edit history](https://spiral.ai/integrations/gemini-cli/stack-exchange-post-edit-history)

## Questions about Spotify track details in Gemini CLI

**Can Gemini CLI use Spotify track details?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Spotify track details like any built-in tool.

**How much does Spotify track details cost in Gemini CLI?**

Up to $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 Spotify track details in Gemini CLI?**

No. Spiral runs Spotify track 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 Spotify track details in Gemini CLI?**

About two minutes: add the server, then sign in, then check it.

**Does Gemini CLI wait while Spotify track details runs?**

Spotify track details runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**Does this return a whole Spotify catalog or playlist?**

The track lookup fetches one public Spotify track. Use it to inspect a known recording rather than discover or export a catalog.

**Is a Spotify play count always included?**

No. ScrapeCreators says play counts depend on what Spotify exposes through the source used by the track route, so a play total is conditional.

**How fresh is the track information?**

ScrapeCreators says it fetches the latest available Spotify information when a request is made. That describes retrieval freshness; it does not establish how quickly Spotify updates each underlying value.

**Can I check song length and explicit-content labeling?**

Yes. The documented response includes a content-rating label and duration in milliseconds, so divide duration by 1,000 to express it in seconds.

**What does Spotify count as a song stream?**

Spotify counts a song stream once a listener plays the song for at least 30 seconds. A play total therefore should not be described as the number of people who heard the song.

