{"id":21689606,"url":"https://github.com/duckyies/Node-Shazam","last_synced_at":"2025-08-21T10:31:34.949Z","repository":{"id":231286746,"uuid":"780946988","full_name":"duckyies/Node-Shazam","owner":"duckyies","description":"A library to interact with the Shazam API","archived":false,"fork":false,"pushed_at":"2025-01-17T17:01:11.000Z","size":1133,"stargazers_count":27,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T12:24:28.504Z","etag":null,"topics":["api","music","nodejs","shazam","shazam-api","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duckyies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-04-02T13:13:57.000Z","updated_at":"2025-07-04T05:12:53.000Z","dependencies_parsed_at":"2024-04-20T06:21:56.238Z","dependency_job_id":"e2ad5836-10c5-49af-8501-72d294392f5b","html_url":"https://github.com/duckyies/Node-Shazam","commit_stats":{"total_commits":24,"total_committers":5,"mean_commits":4.8,"dds":0.5833333333333333,"last_synced_commit":"af308152f157a1d3e44b4090b706f814efdf72ea"},"previous_names":["throwaway5665/node-shazam","scaranaraa/node-shazam","duckyies/node-shazam"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/duckyies/Node-Shazam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyies%2FNode-Shazam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyies%2FNode-Shazam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyies%2FNode-Shazam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyies%2FNode-Shazam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duckyies","download_url":"https://codeload.github.com/duckyies/Node-Shazam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duckyies%2FNode-Shazam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271462932,"owners_count":24764075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","music","nodejs","shazam","shazam-api","typescript"],"created_at":"2024-11-25T17:26:58.081Z","updated_at":"2025-08-21T10:31:34.941Z","avatar_url":"https://github.com/duckyies.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node-Shazam\n A library to interact with the Shazam API\n\nThis is based on [Node-Shazam-API](https://github.com/asivery/node-shazam-api) with most features added from [ShazamIO](https://github.com/shazamio/ShazamIO)\n\n## Installation\n```\nnpm install node-shazam\n```\n## Documentation\nDocumentation can be found [here](https://duckyies.github.io/Node-Shazam/)\n\n## Example usage\n\nRecognise track from file\n```js\n\n//ESM\nimport {Shazam} from 'node-shazam'\nconst shazam = new Shazam()\n\n//CommonJS\nconst {Shazam} = require(\"node-shazam\")\nconst shazam = new Shazam()\n\nconst recognise = await shazam.recognise('/path/to/file','en-US')\nconsole.log(recognise)\n\n//fromVideoFile and fromFilePath is deprecated and much slower\n```\n\nSearch track\n```js\n//works with lyrics and name\nawait shazam.search_music('en-US','GB','you know the rules and so do I','1','0')\n```\n\nTop tracks globally\n```js\nawait shazam.top_tracks_global('en-US','GB','10','0')\nconsole.log(toptracks)\n```\n\nTop tracks globally for a genre\n```js\nawait shazam.top_genre_tracks_world('en-US','GB','POP','10','0')\n```\n\nTop tracks by country\n```js\nawait shazam.top_tracks_country('en-US','GB','GB','10','0')\n```\n\nRelated songs\n```js\nconst trackid = '157666207'\nawait shazam.related_songs('en-US','GB',trackid,'10','0')\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckyies%2FNode-Shazam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduckyies%2FNode-Shazam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckyies%2FNode-Shazam/lists"}