Top Artists and Tracks
get_top_itemsRetrieve a user's top artists or tracks over a chosen time range. Use these results to profile musical taste and build recommendations.
Instructions
Get the user's top artists or tracks over a time range.
With /recommendations, audio-features and related-artists withdrawn from
third-party apps, this is the measured foundation for taste profiling and
building suggestions.
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
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 |