get_artist_top_tracks

Pack: spotify · Endpoint: https://gateway.pipeworx.io/spotify/mcp

Top tracks for an artist in a market (Spotify recommendation).

Parameters

NameTypeRequiredDescription
artist_idstringyesSpotify artist ID
marketstringnoISO 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

FieldTypeDescription
tracksarray
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.

Regenerated from source · build July 6, 2026