# StableMusic – Get Artist Top Tracks

> StableMusic – Get 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).

Retrieves the most popular tracks for a given artist via Last.fm, with pagination and autocorrect support.

## Facts

- Endpoint: POST https://stablemusic.dev/api/geo/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-get-artist-top-tracks-5ae3ab88
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p8BozKxesqqDYTm7EC8g6

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-get-artist-top-tracks-5ae3ab88 -d '<json body>'
```

Example prompt: What are the top 10 most popular tracks by Radiohead according to Last.fm? Use autocorrect in case I spelled it wrong.

## When to prefer this

Use this endpoint when you need ranked popularity data for a specific artist's tracks sourced from Last.fm's play-count data. Prefer this over genre or tag-based track discovery when the user already knows which artist they want. Useful for building playlists, music trivia, or understanding an artist's most recognizable catalog.

## Known failure modes

- Artist not found on Last.fm — returns empty or error response
- Misspelled artist name with autocorrect disabled — no results returned
- Page number exceeds available pages — returns empty results
- Last.fm upstream API unavailable — service returns error
- Limit out of range (less than 1 or greater than 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 measured by Last.fm play counts, including track names, play counts, and associated artist metadata. Optional raw Last.fm response payload if include_raw is set to 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."
  },
  "country": {
   "type": "string",
   "minLength": 1,
   "description": "Country name accepted by Last.fm, e.g. \"United States\"."
  },
  "location": {
   "type": "string",
   "minLength": 1,
   "description": "Optional metro/location supported by Last.fm."
  },
  "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-get-artist-top-tracks-5ae3ab88/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)
