{"id":18486951,"url":"https://github.com/farshed/genius-lyrics-api","last_synced_at":"2026-02-19T23:41:48.884Z","repository":{"id":36301478,"uuid":"223012986","full_name":"farshed/genius-lyrics-api","owner":"farshed","description":"A library for accessing song lyrics \u0026 album covers from genius.com 🎤 🎶","archived":false,"fork":false,"pushed_at":"2024-06-07T12:06:11.000Z","size":2870,"stargazers_count":249,"open_issues_count":10,"forks_count":38,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-24T07:52:25.897Z","etag":null,"topics":["genius","lyrics","nodejs","song-lyrics"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farshed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-20T19:37:18.000Z","updated_at":"2025-10-20T01:08:55.000Z","dependencies_parsed_at":"2024-01-05T19:29:04.580Z","dependency_job_id":"5263537d-72d4-472a-8e1f-b8319c292cf9","html_url":"https://github.com/farshed/genius-lyrics-api","commit_stats":{"total_commits":108,"total_committers":6,"mean_commits":18.0,"dds":0.2592592592592593,"last_synced_commit":"9dd877ac03203e6131b92c209886250b5fe4beec"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/farshed/genius-lyrics-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farshed%2Fgenius-lyrics-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farshed%2Fgenius-lyrics-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farshed%2Fgenius-lyrics-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farshed%2Fgenius-lyrics-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farshed","download_url":"https://codeload.github.com/farshed/genius-lyrics-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farshed%2Fgenius-lyrics-api/sbom","scorecard":{"id":393054,"data":{"date":"2025-08-11","repo":{"name":"github.com/farshed/genius-lyrics-api","commit":"2bb7f2ea817c59675a81aa33e433ff687221f268"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":1,"reason":"Found 4/23 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":-1,"reason":"internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: non-200 OK status code: 502 Bad Gateway body: \"\u003chtml\u003e\\r\\n\u003chead\u003e\u003ctitle\u003e502 Bad Gateway\u003c/title\u003e\u003c/head\u003e\\r\\n\u003cbody\u003e\\r\\n\u003ccenter\u003e\u003ch1\u003e502 Bad Gateway\u003c/h1\u003e\u003c/center\u003e\\r\\n\u003chr\u003e\u003ccenter\u003enginx\u003c/center\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\"","details":null,"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T18:18:42.051Z","repository_id":36301478,"created_at":"2025-08-18T18:18:42.051Z","updated_at":"2025-08-18T18:18:42.051Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29636836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["genius","lyrics","nodejs","song-lyrics"],"created_at":"2024-11-06T12:49:59.456Z","updated_at":"2026-02-19T23:41:48.864Z","avatar_url":"https://github.com/farshed.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# genius-lyrics-api [![npm version](https://img.shields.io/npm/v/genius-lyrics-api.svg?style=flat)](https://www.npmjs.com/package/genius-lyrics-api)\n\nA JavaScript package for non-browser environments that leverages [Genius API](https://genius.com/developers) to find (and scrape) song lyrics and album covers.\u003cbr/\u003e\n\n## Installation\n\nInstall with npm\n\n```js\nnpm install --save genius-lyrics-api\n```\n\nOr install with Yarn\n\n```js\nyarn add genius-lyrics-api\n```\n\n## Usage\n\n[Get the Genius Developer Access Token](https://genius.com/developers)\n\u003cbr\u003e\n\n```js\nimport { getLyrics, getSong } from 'genius-lyrics-api';\n```\n\n```js\nconst options = {\n\tapiKey: 'XXXXXXXXXXXXXXXXXXXXXXX',\n\ttitle: 'Posthumous Forgiveness',\n\tartist: 'Tame Impala',\n\toptimizeQuery: true\n};\n\ngetLyrics(options).then((lyrics) =\u003e console.log(lyrics));\n\ngetSong(options).then((song) =\u003e\n\tconsole.log(`${song.id} - ${song.title} - ${song.url} - ${song.albumArt} - ${song.lyrics}`)\n);\n```\n\n\u003cbr\u003e\n\n## Types\n\n```\ntype options {\n\ttitle: string;\n\tartist: string;\n\tapiKey: string;\t\t// Genius developer access token\n\toptimizeQuery?: boolean; // (optional, default: false) If true, perform some cleanup to maximize the chance of finding a match\n\tauthHeader?: boolean; // (optional, default: false) Whether to include auth header in the search request\n}\n\n```\n\n🚨 If `title` or `artist` is unknown, pass an empty string.\n\n```\ntype song {\n\tid: number;\t\t// Genius song id\n\ttitle: string;          // Song title\n\turl: string;\t\t// Genius webpage URL for the song\n\tlyrics: string;\t\t// Song lyrics\n\talbumArt: string;\t// URL of the album art image (jpg/png)\n}\n\n```\n\n```\ntype searchResult {\n\tid: number;\t\t// Genius song id\n\turl: string;\t\t// Genius webpage URL for the song\n\ttitle: string;\t\t// Song title\n\talbumArt: string;\t// URL of the album art image (jpg/png)\n}\n```\n\n## Methods\n\ngenius-lyrics-api exposes the following methods:\n\n### `getLyrics(options | url)`\n\nAccepts [options](#types) or the url to a Genius song. \u003cbr/\u003e\nReturns a promise that resolves to a string containing lyrics. Returns `null` if no lyrics are found.\n\n### `getAlbumArt(options)`\n\nAccepts an [options](#types) object. \u003cbr/\u003e\nReturns a promise that resolves to a url (string) to the song's album art. Returns `null` if no url is found.\n\n### `getSong(options)`\n\nAccepts an [options](#types) object. \u003cbr/\u003e\nReturns a promise that resolves to an object of type [song](#types). Returns `null` if song is not found.\n\n### `searchSong(options)`\n\nAccepts an [options](#types) object. \u003cbr/\u003e\nReturns a promise that resolves to an array of type [searchResult](#types). Returns `null` if no matches are found.\n\n### `getSongById(id: (number | string), access_token: string)`\n\nAccepts a valid Genius song ID. IDs can be found using the `searchSong` method. \u003cbr/\u003e\nReturns a promise that resolves to an object of type [song](#types).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarshed%2Fgenius-lyrics-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarshed%2Fgenius-lyrics-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarshed%2Fgenius-lyrics-api/lists"}