GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — listentomore/docs/API.md at main · rianvdm/listentomore

Expand file tree

/

API.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
556 lines (430 loc) · 15.4 KB
/

API.md

Copy path

File metadata and controls

556 lines (430 loc) · 15.4 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Listen To More API

A REST API for music discovery, combining Spotify catalog data with AI-powered insights and cross-platform streaming links.

Base URL: https://listentomore.com


Endpoints Overview

Endpoint Method Description
/api/v1/album GET Album metadata, AI summary, and streaming links
/api/v1/album/recommendations GET AI-generated album recommendations
/api/v1/links GET Cross-platform streaming links only
/api/v1/artist GET Artist info, AI summary, and top albums
/api/v1/genre GET AI-generated genre information
/api/v1/random-fact GET Random music trivia
/api/v1/ask POST Chat with the music AI assistant

Table of Contents

  • Authentication
  • Rate Limits
  • Endpoints
    • Album
    • Album Recommendations
    • Streaming Links
    • Artist
    • Genre
    • Random Fact
    • Ask (Chat)
  • Error Handling
  • Getting an API Key

Authentication

All API requests require the X-API-Key header.

curl -H "X-API-Key: your_api_key" \
  "https://listentomore.com/api/v1/album?artist=radiohead&album=ok%20computer"

Rate Limits

Tier Requests/Minute Description
Standard 60 Default tier for new API keys
Premium 300 Higher limits for approved applications

Rate limit headers are included in all responses:

Header Description
X-RateLimit-Limit Maximum requests per minute
X-RateLimit-Remaining Requests remaining in current window
X-RateLimit-Reset Unix timestamp when the limit resets

Endpoints

Album

Get comprehensive album information including metadata, AI-generated summary, and cross-platform streaming links in a single request.

GET /api/v1/album

Parameters

Name Type Required Description
artist string Yes Artist name
album string Yes Album name
include string No Comma-separated list: summary, links, tracks. Default: all

Example Request

curl -H "X-API-Key: your_key" \
  "https://listentomore.com/api/v1/album?artist=radiohead&album=the%20bends"

Example Response

{
  "data": {
    "id": "35UJLpClj5EDrhpNIi4DFg",
    "name": "The Bends",
    "artist": "Radiohead",
    "artistId": "4Z8W4fKeB5YxbusRsdQVPb",
    "releaseDate": "1995-03-13",
    "genres": [],
    "image": "https://i.scdn.co/image/ab67616d0000b2739293c743fa542094336c5e12",
    "url": "https://open.spotify.com/album/35UJLpClj5EDrhpNIi4DFg",
    "tracks": [
      {
        "number": 1,
        "name": "Planet Telex",
        "duration": 259200,
        "preview": null,
        "artists": ["Radiohead"]
      },
      {
        "number": 2,
        "name": "The Bends",
        "duration": 246200,
        "preview": null,
        "artists": ["Radiohead"]
      }
    ],
    "summary": {
      "content": "### History and Genres/Styles of *The Bends*\n\n*The Bends* is Radiohead's second studio album, released on March 13, 1995...",
      "citations": [
        "https://www.thecurrent.org/feature/2025/03/13/march-13-in-music-history-radiohead-released-the-bends",
        "https://www.musicmusingsandsuch.com/musicmusingsandsuch/2025/2/8/feature-radioheads-the-bends-at-thirty"
      ]
    },
    "links": {
      "listentomore": "https://listentomore.com/album/35UJLpClj5EDrhpNIi4DFg",
      "spotify": "https://open.spotify.com/album/35UJLpClj5EDrhpNIi4DFg",
      "appleMusic": "https://music.apple.com/album/the-bends/1097862703",
      "songlink": "https://song.link/https://open.spotify.com/album/35UJLpClj5EDrhpNIi4DFg"
    },
    "confidence": {
      "appleMusic": 0.98
    }
  }
}

Response Fields

Field Type Description
id string Spotify album ID
name string Album name
artist string Primary artist name
artistId string Spotify artist ID
releaseDate string Release date (YYYY-MM-DD)
genres string[] Album genres (from Spotify)
image string Album artwork URL
url string Spotify album URL
tracks object[] Track listing (if include=tracks)
summary.content string AI-generated album summary (Markdown with citations)
summary.citations string[] Source URLs for the summary
links.listentomore string Listen To More album page
links.spotify string Spotify album URL
links.appleMusic string | null Apple Music URL (if found)
links.songlink string Songlink/Odesli page with all streaming services
confidence.appleMusic number | null Match confidence (0.98 = UPC match, 0.8+ = text match)

Album Recommendations

Get AI-generated album recommendations based on a source album.

GET /api/v1/album/recommendations

Parameters

Name Type Required Description
artist string Yes Artist name
album string Yes Album name

Example Request

curl -H "X-API-Key: your_key" \
  "https://listentomore.com/api/v1/album/recommendations?artist=radiohead&album=ok%20computer"

Example Response

{
  "data": {
    "source": {
      "id": "6dVIqQ8qmQ5GBnJ9shOYGE",
      "name": "OK Computer",
      "artist": "Radiohead",
      "url": "https://listentomore.com/album/6dVIqQ8qmQ5GBnJ9shOYGE"
    },
    "recommendations": {
      "content": "Based on *OK Computer*, here are albums you might enjoy:\n\n- **Kid A** by Radiohead - The follow-up that pushed even further into electronic experimentation...\n- **Homogenic** by Björk - Shares OK Computer's blend of orchestral elements with electronic production...",
      "citations": [
        "https://www.albumoftheyear.org/ratings/user-highest-rated/all/",
        "https://rateyourmusic.com/list/TheScientist/..."
      ]
    }
  }
}

Streaming Links

Get cross-platform streaming links for an album without the full metadata or AI summary.

GET /api/v1/links

Parameters

Name Type Required Description
artist string Yes Artist name
album string Yes Album name

Example Request

curl -H "X-API-Key: your_key" \
  "https://listentomore.com/api/v1/links?artist=portishead&album=dummy"

Example Response

{
  "data": {
    "source": {
      "id": "3539EbNgIdEDGBKkUf4wno",
      "name": "Dummy",
      "artist": "Portishead"
    },
    "links": {
      "listentomore": "https://listentomore.com/album/3539EbNgIdEDGBKkUf4wno",
      "spotify": "https://open.spotify.com/album/3539EbNgIdEDGBKkUf4wno",
      "appleMusic": "https://music.apple.com/album/dummy/1440649507",
      "songlink": "https://song.link/https://open.spotify.com/album/3539EbNgIdEDGBKkUf4wno"
    },
    "confidence": {
      "appleMusic": 0.98
    }
  }
}

Confidence Scores

Score Meaning
0.98 UPC/barcode match (most reliable)
0.80-0.95 Text search match with metadata validation
null No confident match; URL may be a search fallback

Artist

Get artist information with AI-generated summary and top albums.

GET /api/v1/artist

Parameters

Name Type Required Description
q string Yes Artist name to search
include string No Comma-separated: summary, sentence, albums. Default: all

Example Request

curl -H "X-API-Key: your_key" \
  "https://listentomore.com/api/v1/artist?q=radiohead"

Example Response

{
  "data": {
    "id": "4Z8W4fKeB5YxbusRsdQVPb",
    "name": "Radiohead",
    "genres": ["Art Rock", "Alternative Rock"],
    "image": "https://i.scdn.co/image/ab6761610000e5eb4104fbd80f1f795728abbd59",
    "url": "https://listentomore.com/artist/4Z8W4fKeB5YxbusRsdQVPb",
    "spotifyUrl": "https://open.spotify.com/artist/4Z8W4fKeB5YxbusRsdQVPb",
    "summary": {
      "content": "**Radiohead** is an English rock band formed in Abingdon, Oxfordshire, in 1985...[1] The band consists of Thom Yorke (vocals, guitar, piano), brothers Jonny Greenwood (lead guitar, keyboards) and Colin Greenwood (bass), Ed O'Brien (guitar, backing vocals), and Philip Selway (drums)...",
      "citations": [
        "https://en.wikipedia.org/wiki/Radiohead",
        "https://www.allmusic.com/artist/radiohead"
      ]
    },
    "sentence": "They are an English alternative rock band known for their experimental sound, blending electronic, art rock, and ambient influences. Similar artists include Portishead, Massive Attack, and Björk.",
    "topAlbums": [
      { "name": "OK Computer", "playcount": 235835672 },
      { "name": "In Rainbows", "playcount": 230324611 },
      { "name": "The Bends", "playcount": 163130748 },
      { "name": "Kid A", "playcount": 111207700 },
      { "name": "Pablo Honey", "playcount": 85040849 }
    ]
  }
}

Response Fields

Field Type Description
id string Spotify artist ID
name string Artist name
genres string[] Artist genres
image string Artist image URL
url string Listen To More artist page
spotifyUrl string Spotify artist URL
summary.content string AI-generated artist summary (Markdown)
summary.citations string[] Source URLs
sentence string Short one-sentence artist description (~38 words)
topAlbums object[] Top albums by play count (from Last.fm)

Genre

Get AI-generated information about a music genre.

GET /api/v1/genre

Parameters

Name Type Required Description
q string Yes Genre name (e.g., "shoegaze", "trip hop")

Example Request

curl -H "X-API-Key: your_key" \
  "https://listentomore.com/api/v1/genre?q=shoegaze"

Example Response

{
  "data": {
    "name": "shoegaze",
    "slug": "shoegaze",
    "url": "https://listentomore.com/genre/shoegaze",
    "summary": {
      "content": "**Shoegaze** is a subgenre of alternative rock that emerged in the United Kingdom during the late 1980s...[1] The name comes from the tendency of musicians to stare at their effects pedals during performances. Key characteristics include heavily distorted guitars, obscured vocals, and a wall of sound production style...",
      "citations": [
        "https://en.wikipedia.org/wiki/Shoegaze",
        "https://www.allmusic.com/style/shoegaze"
      ]
    }
  }
}

Random Fact

Get a random music fact from the cached pool.

GET /api/v1/random-fact

Parameters

Name Type Required Description
exclude string No Comma-separated list of fact hashes to skip

Example Request

curl -H "X-API-Key: your_key" \
  "https://listentomore.com/api/v1/random-fact"

Example Response

{
  "data": {
    "fact": "Did you know R.E.M.'s 1983 debut album \"Murmur\" was so acclaimed that Rolling Stone named it Album of the Year over Michael Jackson's \"Thriller,\" helping move American college rock into the musical mainstream?",
    "hash": "e5dd5831",
    "timestamp": "2025-12-07T15:00:18.377Z"
  }
}

Using the Exclude Parameter

To avoid receiving the same fact, pass previously received hashes:

curl -H "X-API-Key: your_key" \
  "https://listentomore.com/api/v1/random-fact?exclude=e5dd5831,a1b2c3d4"

If all facts in the pool are excluded, the newest fact is returned with a warning field.


Ask (Chat)

Chat with the music AI assistant. Powered by Claude.

POST /api/v1/ask

Request Body

Field Type Required Description
question string Yes Your question about music

Example Request

curl -X POST \
  -H "X-API-Key: your_key" \
  -H "Content-Type: application/json" \
  -d '{"question": "What albums should I listen to if I like OK Computer?"}' \
  "https://listentomore.com/api/v1/ask"

Example Response

{
  "data": {
    "question": "What albums should I listen to if I like OK Computer?",
    "answer": "If you enjoy OK Computer, I'd recommend exploring these albums:\n\n1. **Kid A** by Radiohead - The natural next step, where the band pushed further into electronic territory.\n\n2. **Homogenic** by Björk - Shares OK Computer's blend of organic and electronic sounds with an operatic edge.\n\n3. **The Moon & Antarctica** by Modest Mouse - Expansive, existential rock with similar thematic depth.\n\n4. **Lift Your Skinny Fists Like Antennas to Heaven** by Godspeed You! Black Emperor - Epic post-rock that captures the same sense of technological unease.\n\n5. **69 Love Songs** by The Magnetic Fields - Different sonically, but shares the ambitious scope and clever songwriting."
  }
}

Error Handling

All errors return JSON with an error field and appropriate HTTP status code.

Error Response Format

{
  "error": "Error type",
  "message": "Detailed error message",
  "details": "Additional context (development only)"
}

HTTP Status Codes

Code Description
400 Bad Request - Missing or invalid parameters
401 Unauthorized - Invalid or missing API key
404 Not Found - Album/artist not found
429 Too Many Requests - Rate limit exceeded
500 Internal Server Error - Something went wrong

Example Error Responses

Missing parameters:

{
  "error": "Missing required parameters: artist and album"
}

Album not found:

{
  "error": "Album not found",
  "artist": "radiohead",
  "album": "nonexistent album"
}

Rate limited:

{
  "error": "Rate limit exceeded",
  "message": "Too many requests. Please wait before making more requests."
}

Getting an API Key

API keys are currently issued manually. To request access:

  1. Open an issue on the GitHub repository
  2. Email: elezea.com/contact

Include a brief description of how you plan to use the API.

Important: Keep your API key secure and never expose it in client-side code.


Caching

Responses are cached to improve performance and reduce load on upstream services:

Data Type Cache Duration
Album metadata 30 days
Artist metadata 30 days
AI summaries 120-180 days
Streaming links 30 days

Cached responses are indistinguishable from fresh responses. If you need to force a refresh of cached data, contact the administrator.


Changelog

v1.1.0 (December 2025)

  • Breaking change: Replaced youtube link with songlink in album and links endpoints
  • Songlink URLs provide access to all streaming platforms via Odesli/Songlink
  • Removed confidence.youtube field (no longer applicable)

v1.0.0 (December 2025)

Initial public API release with:

  • Album details with AI summaries and streaming links
  • Album recommendations
  • Cross-platform streaming links
  • Artist details with AI summaries
  • Genre information
  • Chat endpoint
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.