PeumeAPI

Social media data · Spotify

Spotify track by id or URL — album, duration

Retrieves detailed information about a Spotify track by its id or URL, including track metadata, artists, album info, duration, playability, and sharing details.

$0.0028 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/spotify-track-by-id-or-url-album-duration \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "id": "1ITJflybJsfarsUtiBvkfK",
    "url": "https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: spotify-track-by-id-or-url-album-duration.

Parameters

idstring

Spotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead.

Example: 1ITJflybJsfarsUtiBvkfK

urlstring

Spotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead.

Example: https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.