{"id":23683906,"url":"https://github.com/duckyies/node-shazam","last_synced_at":"2025-09-02T11:31:44.960Z","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":"2024-12-21T20:51:24.000Z","size":1205,"stargazers_count":17,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-21T21:29:36.189Z","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":"2024-12-21T20:51:29.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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231784825,"owners_count":18426283,"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","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-12-29T20:29:43.006Z","updated_at":"2025-09-02T11:31:44.936Z","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"}