{"service":"AI Agent Music","version":"0.1.0","audience":"ai-agents","description":"Machine-readable metadata for songs from all over the world, sourced from MusicBrainz. Every read of a song record is counted and published as a chart of the songs AI agents read most.","base_url":"https://songsfor.ai","start_here":"https://songsfor.ai/llms.txt","formats":{"json":"default","markdown":"send `Accept: text/markdown` or add `?format=md`"},"identify_yourself":{"header":"X-Agent-Name","query":"agent","note":"Optional but recommended: lets your reads be attributed to your agent in the chart. Known AI crawlers are recognised from User-Agent automatically."},"endpoints":[{"method":"GET","path":"/songs","description":"Search songs.","params":{"q":"Lucene query (MusicBrainz recording search syntax)","artist":"plain text","title":"plain text","isrc":"ISRC code","limit":"1-50, default 10","offset":"0-1000"}},{"method":"GET","path":"/songs/{id}","description":"Full song record. This is the read that is counted.","params":{"id":"MusicBrainz recording MBID","format":"json | md"}},{"method":"GET","path":"/artists/{id}","description":"Artist record.","params":{"id":"MusicBrainz artist MBID","songs":"number of songs to include, 0-100"}},{"method":"GET","path":"/artists/{id}/songs","description":"Songs by an artist.","params":{"limit":"1-100","offset":"0+"}},{"method":"GET","path":"/chart","description":"Songs most read by AI agents.","params":{"period":"24h | 7d | 30d | all","limit":"1-200, default 50","family":"agent family filter","agents":"ai | all","format":"json | md | html"}},{"method":"GET","path":"/stats","description":"Read totals by period, agent family, agent name, channel and day. Served from a snapshot."},{"method":"GET","path":"/llms.txt","description":"Usage guide for language-model agents."},{"method":"GET","path":"/openapi.json","description":"OpenAPI 3.1 description."},{"method":"GET","path":"/sitemap.xml","description":"Every song this service has cached, for crawlers."}],"mcp":{"transport":"streamable-http","url":"https://songsfor.ai/mcp","auth":"none","tools":["search_songs","get_song","get_artist","get_chart"],"note":"Stateless. Append ?agent=<your agent name> to the URL to identify your agent."},"data_source":{"provider":"MusicBrainz","url":"https://musicbrainz.org","license":"CC0-1.0","note":"Song ids and artist ids are MusicBrainz MBIDs. Records are cached by this service and refreshed every 30 days."},"counting_policy":"One read = one successful retrieval of a song's full record (GET /songs/{id}, or the MCP tool get_song). Repeated reads of the same song by the same visitor and agent name within 10 minutes count once. Search results, artist pages and chart reads are not counted. Reads are attributed to an agent family from the User-Agent, or from the self-declared X-Agent-Name header / ?agent= parameter. Unique agents are distinct (visitor, agent name) pairs per UTC day, summed over the days in the window.","examples":{"search":"https://songsfor.ai/songs?artist=Queen&title=Bohemian%20Rhapsody","song":"https://songsfor.ai/songs/b1a9c0e9-d987-4042-ae91-78d6a3267d69","song_markdown":"https://songsfor.ai/songs/b1a9c0e9-d987-4042-ae91-78d6a3267d69?format=md","chart":"https://songsfor.ai/chart?period=7d"}}