get_artist_top_tracks
Pack: spotify · Endpoint: https://gateway.pipeworx.io/spotify/mcp
Top tracks for an artist in a market (Spotify recommendation).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
artist_id | string | yes | Spotify artist ID |
market | string | no | ISO market code (default “US”) |
Example call
Arguments
{
"artist_id": "1Xyo4u8uISC60aNvD2MZpP"
}
curl
curl -X POST https://gateway.pipeworx.io/spotify/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_artist_top_tracks","arguments":{"artist_id":"1Xyo4u8uISC60aNvD2MZpP"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_artist_top_tracks', {
"artist_id": "1Xyo4u8uISC60aNvD2MZpP"
});
More examples
{
"artist_id": "1Xyo4u8uISC60aNvD2MZpP",
"market": "CA"
}
Response shape
| Field | Type | Description |
|---|---|---|
tracks | array |
Full JSON Schema
{
"type": "object",
"description": "Top tracks for an artist in a market (Spotify recommendation)",
"properties": {
"tracks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Track ID"
},
"name": {
"type": "string",
"description": "Track name"
},
"artists": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Artist ID"
},
"name": {
"type": "string",
"description": "Artist name"
}
}
}
},
"album": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Album ID"
},
"name": {
"type": "string",
"description": "Album name"
}
}
},
"duration_ms": {
"type": "number",
"description": "Duration in milliseconds"
},
"popularity": {
"type": "number",
"description": "Popularity 0-100"
},
"preview_url": {
"type": [
"string",
"null"
],
"description": "30s preview URL or null"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"spotify": {
"url": "https://gateway.pipeworx.io/spotify/mcp"
}
}
}
See Getting Started for client-specific install steps.