Last.fm · Arazzo Workflow

Last.fm Genre Artist Explorer

Version 1.0.0

Take a genre tag's top artist, branch into similar artists, and pull that artist's top tracks.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub MusicAudioScrobblingRecommendationsChartsPublic APIsAudioScrobblerArazzoWorkflows

Provider

lastfm

Workflows

genre-artist-explorer
Explore a genre's top artist via similar artists and top tracks.
Lists a tag's top artists, then resolves the leading artist's similar artists and top tracks.
3 steps inputs: apiKey, limit, tag outputs: leadArtistTopTracks, similarArtists, tag, topArtistName
1
tagTopArtists
List the top artists tagged with this genre, ordered by tag count.
2
similarArtists
Find artists similar to the genre's leading artist for lateral discovery.
3
leadArtistTopTracks
Pull the genre's leading artist's most popular tracks.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Last.fm Genre Artist Explorer
  summary: Take a genre tag's top artist, branch into similar artists, and pull that artist's top tracks.
  description: >-
    A genre-led artist explorer. It lists the top artists for a tag, takes the
    leading artist, finds artists similar to them, and pulls the lead artist's
    top tracks so a listener can move laterally through a genre. Each request is
    written inline, including the required api_key and the format=json selector,
    so the chain is self-contained and replayable without the OpenAPI source.
  version: 1.0.0
sourceDescriptions:
- name: artistApi
  url: ../openapi/lastfm-artist-api-openapi.yml
  type: openapi
- name: tagApi
  url: ../openapi/lastfm-tag-api-openapi.yml
  type: openapi
workflows:
- workflowId: genre-artist-explorer
  summary: Explore a genre's top artist via similar artists and top tracks.
  description: >-
    Lists a tag's top artists, then resolves the leading artist's similar
    artists and top tracks.
  inputs:
    type: object
    required:
    - apiKey
    - tag
    properties:
      apiKey:
        type: string
        description: Your Last.fm API key.
      tag:
        type: string
        description: The genre tag to explore (e.g. "post-punk").
      limit:
        type: integer
        description: Max items per page for the lists.
        default: 10
  steps:
  - stepId: tagTopArtists
    description: >-
      List the top artists tagged with this genre, ordered by tag count.
    operationId: tagGetTopArtists
    parameters:
    - name: api_key
      in: query
      value: $inputs.apiKey
    - name: format
      in: query
      value: json
    - name: tag
      in: query
      value: $inputs.tag
    - name: limit
      in: query
      value: $inputs.limit
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      topArtistName: $response.body#/artists/artist/0/name
      topArtists: $response.body#/artists/artist
  - stepId: similarArtists
    description: >-
      Find artists similar to the genre's leading artist for lateral discovery.
    operationId: artistGetSimilar
    parameters:
    - name: api_key
      in: query
      value: $inputs.apiKey
    - name: format
      in: query
      value: json
    - name: artist
      in: query
      value: $steps.tagTopArtists.outputs.topArtistName
    - name: limit
      in: query
      value: $inputs.limit
    - name: autocorrect
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      similarArtists: $response.body#/similarartists/artist
  - stepId: leadArtistTopTracks
    description: >-
      Pull the genre's leading artist's most popular tracks.
    operationId: artistGetTopTracks
    parameters:
    - name: api_key
      in: query
      value: $inputs.apiKey
    - name: format
      in: query
      value: json
    - name: artist
      in: query
      value: $steps.tagTopArtists.outputs.topArtistName
    - name: limit
      in: query
      value: $inputs.limit
    - name: autocorrect
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      topTracks: $response.body#/toptracks/track
  outputs:
    tag: $inputs.tag
    topArtistName: $steps.tagTopArtists.outputs.topArtistName
    similarArtists: $steps.similarArtists.outputs.similarArtists
    leadArtistTopTracks: $steps.leadArtistTopTracks.outputs.topTracks

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/lastfm-genre-artist-explorer-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.