# Spotify Album API (spotify.album)

- Canonical page: [https://everyinfra.com/en/spotify-api/album](https://everyinfra.com/en/spotify-api/album?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "spotify", "action": "album", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=spotify&action=album

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Specifies the target open.spotify.com link, spotify:type:ID URI, or raw entity ID corresponding to the chosen action (artist, track, album, or playlist). Input types must match the endpoint action and cannot be interchanged. Legacy profile endpoints accept full Spotify links to return album and single streaming metadata rather than user profile account details. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| name | Name of the object itself, for account, product and business capabilities. |
| album_type | platform-native meaning |
| artists | platform-native meaning |
| release_date | platform-native meaning |
| label | platform-native meaning |
| copyright | platform-native meaning |
| track_count | platform-native meaning |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| tracks | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "spotify",
  "action": "album",
  "params": {
    "url": "https://open.spotify.com/album/1XkGORuUX2QGOEIL4EbJKm"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "spotify",
        "action": "album",
        "params": {
            "url": "https://open.spotify.com/album/1XkGORuUX2QGOEIL4EbJKm",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "spotify",
  "action": "album",
  "results": {
    "name": "Favourite Worst Nightmare",
    "album_type": "ALBUM",
    "artists": [
      "Arctic Monkeys"
    ],
    "release_date": "2007-04-22T00:00:00Z",
    "label": "Domino Recording Co",
    "copyright": [
      "2007 Domino Recording Co Ltd"
    ],
    "track_count": 12,
    "image_url": "https://i.scdn.co/image/ab67616d0000b273b1f8da74f225fa1225cdface",
    "tracks": [
      {
        "id": "7f9I5WdyXm5q1XqnSYgQZb",
        "url": "https://open.spotify.com/track/7f9I5WdyXm5q1XqnSYgQZb",
        "name": "Brianstorm",
        "artists": [
          "Arctic Monkeys"
        ],
        "duration_ms": 172866,
        "play_count": 322905244,
        "track_number": 1,
        "disc_number": 1,
        "is_explicit": false,
        "platform": "spotify"
      },
      {
        "id": "5kxVyCgEUND7E2QKG7JmoF",
        "url": "https://open.spotify.com/track/5kxVyCgEUND7E2QKG7JmoF",
        "name": "Teddy Picker",
        "artists": [
          "Arctic Monkeys"
        ],
        "duration_ms": 165000,
        "play_count": 332863584,
        "track_number": 2,
        "disc_number": 1,
        "is_explicit": true,
        "platform": "spotify"
      },
      {
        "id": "5RrHzXKmwVd5BCq4UzyJPd",
        "url": "https://open.spotify.com/track/5RrHzXKmwVd5BCq4UzyJPd",
        "name": "D is for Dangerous",
        "artists": [
          "Arctic Monkeys"
        ],
        "duration_ms": 138106,
        "play_count": 111947199,
        "track_number": 3,
        "disc_number": 1,
        "is_explicit": false,
        "platform": "spotify"
      }
    ],
    "platform": "spotify"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=spotify
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
