# Spotify 艺人或创作者资料 API (spotify.artist)

- Canonical page: [https://everyinfra.com/spotify-api/artist](https://everyinfra.com/spotify-api/artist?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "spotify", "action": "artist", "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=artist

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | artist / track / album / playlist 使用对应的 open.spotify.com 链接，也支持在 url 中传 spotify:类型:ID 或裸 ID；目标种类由 action 决定，不要跨类型混用。旧 profile 仅直接接收完整链接，读取专辑/单曲播放资料，不是用户个人档案。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| monthly_listener_count | 月听众数。这是 Spotify 上衡量艺人热度的核心指标。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| world_rank | 全球排名。 |
| genres | 音乐流派标签。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| header_image_url | 主页头图。 |
| album_count | 专辑数量。 |
| single_count | 单曲数量。 |
| compilation_count | 合辑数量。 |
| top_cities | 听众最多的城市。 |
| top_tracks | 热门曲目。 |
| related_artists | 相关艺人推荐。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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": "artist",
  "params": {
    "url": "https://open.spotify.com/artist/3TVXtAsR1Inumwj472S9r4"
  }
}'
```

```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": "artist",
        "params": {
            "url": "https://open.spotify.com/artist/3TVXtAsR1Inumwj472S9r4",
        },
    },
    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": "artist",
  "results": {
    "id": "3TVXtAsR1Inumwj472S9r4",
    "url": "https://open.spotify.com/artist/3TVXtAsR1Inumwj472S9r4",
    "name": "Drake",
    "bio": "Canadian rapper and vocalist Drake has retained a bigger-than-life commercial presence shortly after he hit the scene in 2006, whether with his own chart-topping releases or with a long string of guest appearances on hits by the likes of Lil Wayne, Rihanna, and A$AP Rocky. Thanks…",
    "monthly_listener_count": 94742524,
    "follower_count": 117306577,
    "world_rank": 8,
    "image_url": "https://i.scdn.co/image/ab6761610000e5eb4293385d324db8558179afd9",
    "album_count": 21,
    "single_count": 65,
    "compilation_count": 0,
    "top_cities": [
      {
        "city": "London",
        "country": "GB",
        "region": "ENG",
        "listener_count": 1974592
      },
      {
        "city": "Los Angeles",
        "country": "US",
        "region": "CA",
        "listener_count": 1420388
      },
      {
        "city": "New York City",
        "country": "US",
        "region": "NY",
        "listener_count": 1385812
      }
    ],
    "top_tracks": [
      {
        "id": "514joG57v4yKTsfQmz7stz",
        "url": "https://open.spotify.com/track/514joG57v4yKTsfQmz7stz",
        "name": "Janice STFU",
        "duration_ms": 237344,
        "play_count": 342725993,
        "is_explicit": true,
        "platform": "spotify"
      },
      {
        "id": "1zi7xx7UVEFkmKfv06H8x0",
        "url": "https://open.spotify.com/track/1zi7xx7UVEFkmKfv06H8x0",
        "name": "One Dance",
        "duration_ms": 173986,
        "play_count": 4484479500,
        "is_explicit": false,
        "platform": "spotify"
      },
      {
        "id": "5mCPDVBb16L4XQwDdbRUpz",
        "url": "https://open.spotify.com/track/5mCPDVBb16L4XQwDdbRUpz",
        "name": "Passionfruit",
        "duration_ms": 298940,
        "play_count": 2391474845,
        "is_explicit": true,
        "platform": "spotify"
      }
    ],
    "related_artists": [
      {
        "id": "1RyvyyTE3xzB2ZywiAwp0i",
        "name": "Future",
        "url": "https://open.spotify.com/artist/1RyvyyTE3xzB2ZywiAwp0i",
        "image_url": "https://i.scdn.co/image/ab6761610000e5eb2c472c891062acb4f3068583"
      },
      {
        "id": "0Y5tJX1MQlPlqiwlOH1tJY",
        "name": "Travis Scott",
        "url": "https://open.spotify.com/artist/0Y5tJX1MQlPlqiwlOH1tJY",
        "image_url": "https://i.scdn.co/image/ab6761610000e5eb19c2790744c792d05570bb71"
      },
      {
        "id": "7c0XG5cIJTrrAgEC3ULPiq",
        "name": "Ty Dolla $ign",
        "url": "https://open.spotify.com/artist/7c0XG5cIJTrrAgEC3ULPiq",
        "image_url": "https://i.scdn.co/image/ab6761610000e5eb4ef6e245168c33922bc6df1a"
      }
    ],
    "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
