# 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-15).

Returns the top tracks for a given artist from Last.fm, with pagination support.

## Facts

- Endpoint: POST https://stablemusic.dev/api/charts/top-tracks
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablemusic-artist-top-tracks-93375442
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-2aguJ7SNaug36-t5AOqG

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-93375442 -d '<json body>'
```

Example prompt: What are the top 20 most popular tracks by Radiohead according to Last.fm?

## When to prefer this

Use this endpoint when you need a ranked list of an artist's most popular tracks sourced from Last.fm listener data. Prefer this over general music search when you specifically want play-count-ranked tracks for a known artist, especially when you need pagination for large result sets.

## Known failure modes

- Artist not found on Last.fm — returns empty or error response
- Misspelled artist name without autocorrect enabled — no results
- Page number exceeds available pages — empty results
- Rate limiting or payment failure — request rejected
- Limit value out of range (below 1 or above 100) — validation error

## 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 as recorded by Last.fm, including track names, play counts, and associated metadata. Optionally includes the raw upstream Last.fm response payload.

## Example request

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

## 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."
  },
  "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-93375442/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)
