Top Artists and Tracks
get_top_itemsRetrieve a user's top artists or tracks for a chosen time range and limit, providing ranked listening data when recommendations or related artists are unavailable.
Instructions
Get the user's top artists or tracks over a time range.
This remains useful when recommendations or related artists are unavailable
to the app. Spotify's policy also restricts analysis and AI ingestion.
Args:
item_type: 'tracks' or 'artists' (default 'tracks')
time_range: 'short_term' (~4 weeks), 'medium_term' (~6 months) or 'long_term'
limit: Max items to return (1-50, default 20)
Returns:
TopItems with either 'tracks' or 'artists' populated
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_top_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| item_type | No | tracks | |
| time_range | No | medium_term |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracks | No | ||
| artists | No | ||
| time_range | Yes |