# StableMusic - Get Top Tags for Artist

> StableMusic - Get Top Tags for Artist 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 tags (genres, moods, descriptors) most associated with a given artist, sourced from Last.fm.

## Facts

- Endpoint: POST https://stablemusic.dev/api/tracks/top-tags
- 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-top-tags-for-artist-9348ce46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W3fLEGq9gmOs8n9DhUIq0

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-top-tags-for-artist-9348ce46 -d '<json body>'
```

Example prompt: What are the top Last.fm tags for Radiohead — show me up to 20 of them and autocorrect the name if needed.

## When to prefer this

Use this endpoint when you need to discover how the Last.fm community categorizes or describes a specific artist via tags — useful for genre detection, mood labeling, recommendation enrichment, or music metadata pipelines. Prefer this over general music search endpoints when you specifically want crowd-sourced descriptive tags for a known artist.

## Known failure modes

- Artist not found on Last.fm returns empty or error response
- Misspelled artist name without autocorrect enabled returns no results
- artist field missing causes 400 validation error
- limit out of range (>100 or <1) causes validation error
- page number out of valid range causes validation error
- Last.fm upstream unavailability causes 502 or timeout

## How this service works

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

## Output

A list of top listener-applied tags for the specified artist from Last.fm, including tag names, tag counts/weights, and tag URLs. May optionally include the raw Last.fm API response payload.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "track": {
   "type": "string",
   "minLength": 1,
   "description": "Track name."
  },
  "artist": {
   "type": "string",
   "minLength": 1,
   "description": "Artist name."
  },
  "autocorrect": {
   "type": "boolean",
   "default": true,
   "description": "Ask Last.fm to correct misspelled artist/track 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-get-top-tags-for-artist-9348ce46/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)
