{"openapi":"3.0.3","info":{"title":"Genius API","version":"1.0.0","description":"Song lyrics, songs, artists, albums and charts from Genius with stable schemas.","contact":{"email":"support@endpointry.com"},"termsOfService":"https://endpointry.com/legal/terms"},"servers":[{"url":"https://api.endpointry.com/v1/genius"}],"tags":[{"name":"Genius API","description":"Song lyrics, songs, artists, albums and charts from Genius with stable schemas."}],"components":{"schemas":{"ResponseMeta":{"type":"object","properties":{"request_id":{"type":"string","example":"req_9f2c4a1b8d3e0f6a7c5b9d1e"},"as_of":{"type":"string","format":"date-time","description":"When this snapshot of the data was taken (UTC)."},"cache":{"type":"string","enum":["HIT","MISS"]},"pagination":{"$ref":"#/components/schemas/PaginationMeta"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ResponseWarning"}}},"required":["request_id"]},"PaginationMeta":{"type":"object","properties":{"page":{"type":"integer"},"next_cursor":{"type":"string","nullable":true},"next_offset":{"type":"integer","nullable":true},"next_page":{"type":"integer","nullable":true},"limit":{"type":"integer"},"returned":{"type":"integer"},"total":{"type":"integer"}}},"ResponseWarning":{"type":"object","properties":{"code":{"type":"string"},"detail":{"type":"string"}},"required":["code","detail"]},"GeniusSongSummary":{"type":"object","properties":{"id":{"type":"integer","example":378195},"title":{"type":"string","example":"Chandelier"},"full_title":{"type":"string","example":"Chandelier by Sia"},"artist_names":{"type":"string","example":"Sia","description":"Every credited artist as Genius prints them, featured artists included."},"primary_artist":{"$ref":"#/components/schemas/GeniusArtistRef"},"url":{"type":"string","format":"uri","example":"https://genius.com/Sia-chandelier-lyrics"},"image_url":{"type":"string","nullable":true,"format":"uri","description":"The song art at the largest size offered."},"thumbnail_url":{"type":"string","nullable":true,"format":"uri"},"release_date":{"type":"string","nullable":true,"example":"2014-03-17","description":"As precise as known: `YYYY-MM-DD`, `YYYY-MM` or `YYYY`; null when unknown."},"lyrics_state":{"type":"string","example":"complete","description":"How far the transcription is, as Genius labels it (for example `complete`)."},"instrumental":{"type":"boolean"},"pageviews":{"type":"integer","nullable":true,"example":3768788,"description":"Page views on Genius; null when Genius does not publish the count."}},"required":["id","title","full_title","artist_names","primary_artist","url","image_url","thumbnail_url","release_date","lyrics_state","instrumental","pageviews"]},"GeniusArtistRef":{"type":"object","properties":{"id":{"type":"integer","example":16775},"name":{"type":"string","example":"Sia"},"url":{"type":"string","format":"uri","example":"https://genius.com/artists/Sia"},"image_url":{"type":"string","nullable":true,"format":"uri"},"verified":{"type":"boolean","description":"Whether Genius verified the artist’s account."}},"required":["id","name","url","image_url","verified"]},"Problem":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string"},"detail":{"type":"string"},"request_id":{"type":"string"}},"required":["type","title","status","code","request_id"]},"GeniusSong":{"allOf":[{"$ref":"#/components/schemas/GeniusSongSummary"},{"type":"object","properties":{"language":{"type":"string","nullable":true,"example":"en","description":"The lyrics’ language code."},"description":{"type":"string","nullable":true,"description":"The song’s description on Genius as plain text; null when it has none."},"album":{"$ref":"#/components/schemas/GeniusAlbumSummary"},"primary_artists":{"type":"array","items":{"$ref":"#/components/schemas/GeniusArtistRef"}},"featured_artists":{"type":"array","items":{"$ref":"#/components/schemas/GeniusArtistRef"}},"producers":{"type":"array","items":{"$ref":"#/components/schemas/GeniusArtistRef"}},"writers":{"type":"array","items":{"$ref":"#/components/schemas/GeniusArtistRef"}},"media":{"type":"array","items":{"$ref":"#/components/schemas/GeniusMedia"}},"tags":{"type":"array","items":{"type":"string"},"example":["Pop","Ballad"],"description":"Genres and tags, as Genius lists them."},"annotation_count":{"type":"integer"}},"required":["language","description","album","primary_artists","featured_artists","producers","writers","media","tags","annotation_count"]}]},"GeniusAlbumSummary":{"type":"object","nullable":true,"properties":{"id":{"type":"integer","example":104614},"name":{"type":"string","example":"1000 Forms of Fear"},"full_title":{"type":"string","example":"1000 Forms of Fear by Sia"},"url":{"type":"string","format":"uri","example":"https://genius.com/albums/Sia/1000-forms-of-fear"},"cover_art_url":{"type":"string","nullable":true,"format":"uri"},"release_date":{"type":"string","nullable":true,"example":"2014-03-17","description":"As precise as known: `YYYY-MM-DD`, `YYYY-MM` or `YYYY`; null when unknown."},"artist":{"allOf":[{"$ref":"#/components/schemas/GeniusArtistRef"},{"nullable":true}]}},"required":["id","name","full_title","url","cover_art_url","release_date","artist"],"description":"The album Genius lists the song under; null when none."},"GeniusMedia":{"type":"object","properties":{"provider":{"type":"string","example":"spotify","description":"Where it plays: `youtube`, `spotify`, `soundcloud` …"},"type":{"type":"string","example":"audio","description":"`audio` or `video`."},"url":{"type":"string","format":"uri"}},"required":["provider","type","url"]},"GeniusLyrics":{"type":"object","properties":{"song_id":{"type":"integer","example":378195},"title":{"type":"string","nullable":true,"example":"Chandelier"},"artist":{"type":"string","nullable":true,"example":"Sia"},"url":{"type":"string","format":"uri","example":"https://genius.com/Sia-chandelier-lyrics"},"language":{"type":"string","nullable":true,"example":"en"},"text":{"type":"string","description":"The lyrics as plain text, section headers included, lines separated by `\\n`."},"sections":{"type":"array","items":{"$ref":"#/components/schemas/GeniusLyricsSection"},"description":"The same lyrics split at their section headers."}},"required":["song_id","title","artist","url","language","text","sections"]},"GeniusLyricsSection":{"type":"object","properties":{"name":{"type":"string","nullable":true,"example":"Chorus","description":"The section header as written (`Verse 1`, `Chorus` …); null for lines before the first header."},"text":{"type":"string"}},"required":["name","text"]},"GeniusArtist":{"allOf":[{"$ref":"#/components/schemas/GeniusArtistRef"},{"type":"object","properties":{"alternate_names":{"type":"array","items":{"type":"string"},"example":["Sia Kate Isobelle Furler"]},"description":{"type":"string","nullable":true,"description":"The artist’s description on Genius as plain text; null when it has none."},"header_image_url":{"type":"string","nullable":true,"format":"uri"},"followers":{"type":"integer","nullable":true,"example":1460,"description":"Followers on Genius."},"instagram":{"type":"string","nullable":true,"example":"siamusic","description":"Instagram username, without @."},"twitter":{"type":"string","nullable":true,"example":"Sia","description":"X (Twitter) username, without @."},"facebook":{"type":"string","nullable":true,"example":"siamusic","description":"Facebook page name."}},"required":["alternate_names","description","header_image_url","followers","instagram","twitter","facebook"]}]},"GeniusAlbum":{"allOf":[{"$ref":"#/components/schemas/GeniusAlbumSummary"},{"type":"object","properties":{"primary_artists":{"type":"array","items":{"$ref":"#/components/schemas/GeniusArtistRef"}},"description":{"type":"string","nullable":true,"description":"The album’s description on Genius as plain text; null when it has none."},"pageviews":{"type":"integer","nullable":true,"description":"Page views of the album’s songs on Genius."}},"required":["primary_artists","description","pageviews"]}]},"GeniusTrack":{"type":"object","properties":{"number":{"type":"integer","nullable":true,"example":1,"description":"Track number; null when unnumbered."},"disc":{"type":"integer","nullable":true,"example":1,"description":"Disc number; null when Genius lists none."},"song":{"$ref":"#/components/schemas/GeniusSongSummary"}},"required":["number","disc","song"]},"GeniusChartEntry":{"type":"object","properties":{"rank":{"type":"integer","example":1},"song":{"$ref":"#/components/schemas/GeniusSongSummary"}},"required":["rank","song"]}},"parameters":{}},"paths":{"/search":{"get":{"operationId":"genius.search","summary":"Search songs","description":"Returns the songs matching a title, an artist or a line of lyrics, best match first. Up to 50 per page; `meta.pagination.next_cursor` asks for the next page and is `null` on the last one.","x-points":10,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200,"example":"chandelier","description":"What to look for: a title, an artist, a line of lyrics."},"required":true,"description":"What to look for: a title, an artist, a line of lyrics.","name":"query","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":50,"default":20,"example":20,"description":"Results per page, 1 to 50."},"required":false,"description":"Results per page, 1 to 50.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response."},"required":false,"description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response.","name":"cursor","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"songs":{"type":"array","items":{"$ref":"#/components/schemas/GeniusSongSummary"}}},"required":["songs"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/song":{"get":{"operationId":"genius.song","summary":"Get a song","description":"Returns a song by id: title, artists, featured artists, producers and writers, album, release date, language, description, tags, page views and its YouTube, Spotify and SoundCloud links. Returns `404 NOT_FOUND` when Genius has no song with that id.","x-points":10,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","pattern":"^[1-9][0-9]{0,11}$","example":"378195","description":"The song's numeric id, as `id` in other responses."},"required":true,"description":"The song's numeric id, as `id` in other responses.","name":"id","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"song":{"$ref":"#/components/schemas/GeniusSong"}},"required":["song"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/song/lyrics":{"get":{"operationId":"genius.song-lyrics","summary":"Get song lyrics","description":"Returns a song’s lyrics as plain text, and the same text split at its section headers (`[Verse 1]`, `[Chorus]` …). Returns `404 NOT_FOUND` when Genius has no song with that id or shows no lyrics for it.","x-points":15,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","pattern":"^[1-9][0-9]{0,11}$","example":"378195","description":"The song's numeric id, as `id` in other responses."},"required":true,"description":"The song's numeric id, as `id` in other responses.","name":"id","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"lyrics":{"$ref":"#/components/schemas/GeniusLyrics"}},"required":["lyrics"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/artist":{"get":{"operationId":"genius.artist","summary":"Get an artist","description":"Returns an artist by id: name, alternate names, description, images, follower count, verification and their Instagram, X and Facebook names. Returns `404 NOT_FOUND` when Genius has no artist with that id.","x-points":10,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","pattern":"^[1-9][0-9]{0,11}$","example":"16775","description":"The artist's numeric id, as `id` in other responses."},"required":true,"description":"The artist's numeric id, as `id` in other responses.","name":"id","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"artist":{"$ref":"#/components/schemas/GeniusArtist"}},"required":["artist"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/artist/songs":{"get":{"operationId":"genius.artist-songs","summary":"List an artist’s songs","description":"Returns the songs an artist is credited on, by popularity, by title or newest first. Up to 50 per page; `meta.pagination.next_cursor` asks for the next page and is `null` on the last one.","x-points":10,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","pattern":"^[1-9][0-9]{0,11}$","example":"16775","description":"The artist's numeric id, as `id` in other responses."},"required":true,"description":"The artist's numeric id, as `id` in other responses.","name":"id","in":"query"},{"schema":{"type":"string","enum":["popularity","title","release_date"],"default":"popularity","example":"popularity","description":"`popularity` (most viewed first), `title` (A–Z) or `release_date` (newest first)."},"required":false,"description":"`popularity` (most viewed first), `title` (A–Z) or `release_date` (newest first).","name":"sort","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":50,"default":20,"example":20,"description":"Results per page, 1 to 50."},"required":false,"description":"Results per page, 1 to 50.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response."},"required":false,"description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response.","name":"cursor","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"songs":{"type":"array","items":{"$ref":"#/components/schemas/GeniusSongSummary"}}},"required":["songs"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/artist/albums":{"get":{"operationId":"genius.artist-albums","summary":"List an artist’s albums","description":"Returns an artist’s albums, newest first. Up to 50 per page; `meta.pagination.next_cursor` asks for the next page and is `null` on the last one.","x-points":10,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","pattern":"^[1-9][0-9]{0,11}$","example":"16775","description":"The artist's numeric id, as `id` in other responses."},"required":true,"description":"The artist's numeric id, as `id` in other responses.","name":"id","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":50,"default":20,"example":20,"description":"Results per page, 1 to 50."},"required":false,"description":"Results per page, 1 to 50.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response."},"required":false,"description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response.","name":"cursor","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"albums":{"type":"array","items":{"$ref":"#/components/schemas/GeniusAlbumSummary"}}},"required":["albums"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/album":{"get":{"operationId":"genius.album","summary":"Get an album","description":"Returns an album by id: name, artist, cover art, release date, description and page views. Returns `404 NOT_FOUND` when Genius has no album with that id.","x-points":10,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","pattern":"^[1-9][0-9]{0,11}$","example":"104614","description":"The album's numeric id, as `id` in other responses."},"required":true,"description":"The album's numeric id, as `id` in other responses.","name":"id","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"album":{"$ref":"#/components/schemas/GeniusAlbum"}},"required":["album"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/album/tracks":{"get":{"operationId":"genius.album-tracks","summary":"List an album’s tracks","description":"Returns an album’s songs in track order, with their track and disc numbers. Up to 50 per page; `meta.pagination.next_cursor` asks for the next page and is `null` on the last one.","x-points":10,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","pattern":"^[1-9][0-9]{0,11}$","example":"104614","description":"The album's numeric id, as `id` in other responses."},"required":true,"description":"The album's numeric id, as `id` in other responses.","name":"id","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":50,"default":20,"example":20,"description":"Results per page, 1 to 50."},"required":false,"description":"Results per page, 1 to 50.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response."},"required":false,"description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response.","name":"cursor","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"tracks":{"type":"array","items":{"$ref":"#/components/schemas/GeniusTrack"}}},"required":["tracks"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/chart/songs":{"get":{"operationId":"genius.songs-chart","summary":"Get the songs chart","description":"Returns the most viewed songs on Genius for a day, a week, a month or all time, overall or for one genre, ranked from 1. Up to 50 per page; `meta.pagination.next_cursor` asks for the next page and is `null` on the last one.","x-points":10,"tags":["Genius API"],"parameters":[{"schema":{"type":"string","enum":["day","week","month","all_time"],"default":"day","example":"week","description":"The chart’s window: `day`, `week`, `month` or `all_time`."},"required":false,"description":"The chart’s window: `day`, `week`, `month` or `all_time`.","name":"period","in":"query"},{"schema":{"type":"string","enum":["all","rap","pop","rb","rock","country"],"default":"all","example":"all","description":"`all`, `rap`, `pop`, `rb`, `rock` or `country`."},"required":false,"description":"`all`, `rap`, `pop`, `rb`, `rock` or `country`.","name":"genre","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":50,"default":20,"example":20,"description":"Results per page, 1 to 50."},"required":false,"description":"Results per page, 1 to 50.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response."},"required":false,"description":"Opaque cursor from `meta.pagination.next_cursor` of a previous response.","name":"cursor","in":"query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/ResponseMeta"},"data":{"type":"object","properties":{"chart":{"type":"array","items":{"$ref":"#/components/schemas/GeniusChartEntry"}}},"required":["chart"]}},"required":["meta","data"]}}}},"default":{"description":"Error response (RFC 9457 problem+json)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}}}