# Spotify API: Get song

> Finds a Spotify song by title (optionally narrowed by artist), track link, URI or track ID and returns its public play count and details. Without an artist, the most-played exact title match wins. Previews and ISRC may be unavailable for some tracks.

Unofficial. Not affiliated with or endorsed by Spotify.

- Page: https://fous.com/methods/open.spotify.com/get-song
- Method: `open.spotify.com/get_song`, version 1
- Website: open.spotify.com
- Returns: title, artists, album, release date, length, play count, explicit flag, track number, preview link, cover image, Spotify link, track ID, ISRC, length in ms
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `song` | string | yes | `"spotify:track:0VjIjW4GlUZAMYd2vXMi3b"` | Song title, Spotify track link, or track ID, for example Blinding Lights or https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b. |
| `artist` | string | no |  | Artist name to identify the song, for example The Weeknd. Omit to use the most-played matching track. Default "". |

## Output

From a run on Oct 31, 2026. Its input:

```json
{
  "song": "spotify:track:0VjIjW4GlUZAMYd2vXMi3b"
}
```

Its output:

```json
{
  "album": "After Hours",
  "title": "Blinding Lights",
  "length": "3:20",
  "artists": [
    "The Weeknd"
  ],
  "explicit": "no",
  "isrc_code": "USUG11904206",
  "length_ms": 200040,
  "play_count": 5610198940,
  "preview_link": "https://p.scdn.co/mp3-preview/51c08d92815cce4ac2de94a7335a430b81234624",
  "release_date": "2020-03-20",
  "spotify_link": "https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b",
  "track_number": 9,
  "cover_image_link": "https://i.scdn.co/image/ab67616d0000b2738863bc11d2aa12b54f5aeb36",
  "spotify_track_id": "0VjIjW4GlUZAMYd2vXMi3b"
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"open.spotify.com/get_song","input":{"song":"spotify:track:0VjIjW4GlUZAMYd2vXMi3b"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- How many streams does Espresso by Sabrina Carpenter have on Spotify right now?
- Pull up the details for this track: https://open.spotify.com/track/3n3Ppam7vgaVa1iaRUc9Lp — I need the ISRC, album name, and release date.
- What's the play count and duration of Bohemian Rhapsody by Queen?
- Look up the song 'As It Was' and tell me whether it's marked explicit, which track number it is on the album, and grab the cover art link.
- Find track ID 7qiZfU4dY1lWllzX7mPBI3 on Spotify and give me its title, artists, length in milliseconds, and a preview clip URL if there is one.

## Input schema

```json
{
  "type": "object",
  "required": [
    "song"
  ],
  "properties": {
    "song": {
      "type": "string",
      "description": "Song title, Spotify track link, or track ID, for example Blinding Lights or https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b."
    },
    "artist": {
      "type": "string",
      "default": "",
      "description": "Artist name to identify the song, for example The Weeknd. Omit to use the most-played matching track."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "title",
    "artists",
    "album",
    "release_date",
    "length",
    "play_count",
    "explicit",
    "track_number",
    "preview_link",
    "cover_image_link",
    "spotify_link",
    "spotify_track_id",
    "isrc_code",
    "length_ms"
  ],
  "properties": {
    "album": {
      "type": [
        "string",
        "null"
      ],
      "description": "Album name."
    },
    "title": {
      "type": "string",
      "description": "Song title."
    },
    "length": {
      "type": [
        "string",
        "null"
      ],
      "description": "Track length (m:ss)."
    },
    "artists": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Performing artists."
    },
    "explicit": {
      "type": "string",
      "description": "Whether the track is marked explicit: yes or no."
    },
    "isrc_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "International Standard Recording Code."
    },
    "length_ms": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Track length in milliseconds."
    },
    "play_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Spotify track play count."
    },
    "preview_link": {
      "type": [
        "string",
        "null"
      ],
      "description": "30-second preview link, if provided."
    },
    "release_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Album release date (YYYY-MM-DD)."
    },
    "spotify_link": {
      "type": "string",
      "description": "Spotify track page link."
    },
    "track_number": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Track number on the album."
    },
    "cover_image_link": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cover image link."
    },
    "spotify_track_id": {
      "type": "string",
      "description": "Spotify track ID."
    }
  }
}
```

## See more

- [Spotify API: Get artist](https://fous.com/methods/open.spotify.com/get-artist.md): Gets a Spotify artist's public profile from their name, artist link or ID: listeners, followers, world rank, top cities, popular tracks, latest release and release counts.
- [Spotify API: Get album](https://fous.com/methods/open.spotify.com/get-album.md): Gets a Spotify album by name (optionally with the artist), album link or album ID, with its details and ordered track list including play counts.
- [Spotify API: Search music](https://fous.com/methods/spotify.com/search-music.md): Searches Spotify for songs, artists, albums, playlists or podcasts by keywords and returns them in Spotify's result order. Songs and albums include a release date when Spotify gives a full date.
- [Spotify API: List top podcasts](https://fous.com/methods/open.spotify.com/list-top-podcasts.md): Lists Spotify's top or trending podcasts for a country in chart order, with rank, movement, publisher, artwork and Spotify link. Category charts exist only for some countries.
- [Deezer API: Get song details](https://fous.com/methods/deezer.com/get-song-details.md): Gets a Deezer song's tempo, ISRC, loudness gain and recording details from its title, track link or track ID. An artist name helps pick the right recording.
- [MusicBrainz API: Get song identifiers](https://fous.com/methods/musicbrainz.org/get-song-identifiers.md): Finds the best-matching studio recording on MusicBrainz for a song title and artist. Returns its ISRCs, first release date and up to 25 of its earliest releases.
- [SoundCloud API: Get track](https://fous.com/methods/soundcloud.com/get-track.md): Gets a public SoundCloud track and its stats from a title and optional artist, or from a track link. Search picks the artist's matching upload with the most plays; unavailable fields are null.
- [Apple API: Search songs](https://fous.com/methods/music.apple.com/search-songs.md): Searches the Apple Music song catalog by title and artist words, returning matching tracks in relevance order with prices and previews when available.
- [All Spotify methods](https://fous.com/methods/spotify.com.md)
