# SocialFetch Spotify Track Lookup

> SocialFetch Spotify Track Lookup is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-15).

Fetches metadata for a Spotify track given a track ID or Spotify track URL.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/spotify/track
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/socialfetch-spotify-track-lookup-c05f8ce8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Eg5W279sBrF4_pMQ42zTz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability socialfetch-spotify-track-lookup-c05f8ce8
```

Example prompt: Can you pull up the details for this Spotify track — https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC — I want to know the artist, album, and title.

## When to prefer this

Use this endpoint when you need to resolve a Spotify track ID or URL into full track metadata (title, artist, album, duration). Prefer this over general music search endpoints when you already have a specific Spotify track identifier and need structured details without a search step.

## Known failure modes

- Invalid or malformed track ID returns an error
- Track URL not recognized as a valid Spotify track URL
- Track not found or no longer available on Spotify
- Neither trackId nor url provided results in a missing parameter error
- Rate limiting or upstream Spotify API unavailability

## How this service works

Get a Spotify track by id or track URL.

## Output

Returns structured metadata for the requested Spotify track, including title, artist(s), album, duration, and other track-level details sourced from Spotify.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "Optional Spotify track URL for the request."
      },
      "trackId": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "Optional Spotify track id for the request."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/socialfetch-spotify-track-lookup-c05f8ce8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
