# StableMusic Artist Top Tracks

> StableMusic Artist Top Tracks is a paid API for AI agents from stablemusic.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the top tracks for a given artist, powered by Last.fm data, via pay-per-request API.

## Facts

- Endpoint: POST https://stablemusic.dev/api/artists/top-tracks
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablemusic-artist-top-tracks-8cd7098f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9cS_cZlh9ukO9FG-83x_w

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 stablemusic-artist-top-tracks-8cd7098f -d '<json body>'
```

Example prompt: What are the top tracks by Radiohead according to Last.fm? Pull from StableMusic so I get the most-played songs ranked by popularity.

## When to prefer this

Use this endpoint when you need to surface the most popular or definitive tracks for a known artist, especially when building music recommendation features, playlists, or artist profile pages. Prefer this over general search endpoints when the artist identity is already known and you need ranked track data.

## Known failure modes

- Artist name not found or misspelled — returns empty results or error
- Network timeout from upstream Last.fm API
- Payment not processed — 402 response if USDC payment header is missing or invalid
- Rate limiting if too many simultaneous requests
- Ambiguous artist name matches wrong artist

## How this service works

Pay-per-request Last.fm music discovery for tags, tracks, artists, albums, charts, and country charts.

## Output

A ranked list of the artist's most popular tracks including track names, play counts, and related metadata sourced from Last.fm.

## Example request

```json
{
 "page": 1,
 "limit": 10,
 "artist": "The Beatles",
 "autocorrect": true
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "page": {
   "type": "integer",
   "default": 1,
   "maximum": 9007199254740991,
   "minimum": 1,
   "description": "Last.fm page number. Defaults to 1."
  },
  "limit": {
   "type": "integer",
   "default": 10,
   "maximum": 100,
   "minimum": 1,
   "description": "Number of results to return. Defaults to 10, max 100."
  },
  "artist": {
   "type": "string",
   "minLength": 1,
   "description": "Artist name."
  },
  "autocorrect": {
   "type": "boolean",
   "default": true,
   "description": "Ask Last.fm to correct misspelled artist names."
  },
  "include_raw": {
   "type": "boolean",
   "default": false,
   "description": "Include the upstream Last.fm response payload."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablemusic-artist-top-tracks-8cd7098f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablemusic.dev](https://www.zero.xyz/host/stablemusic.dev/llms.txt)
