{"id":19686145,"url":"https://github.com/loiccoyle/shazam-cli","last_synced_at":"2025-10-24T13:18:21.772Z","repository":{"id":46886870,"uuid":"404860010","full_name":"loiccoyle/shazam-cli","owner":"loiccoyle","description":"🎶 CLI music recognition using the Shazam API","archived":false,"fork":false,"pushed_at":"2024-10-01T16:43:27.000Z","size":17,"stargazers_count":52,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T13:51:23.650Z","etag":null,"topics":["cli","music","music-recognition","shazam"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/loiccoyle.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":"2021-09-09T20:24:18.000Z","updated_at":"2025-03-04T03:22:29.000Z","dependencies_parsed_at":"2024-11-11T18:32:34.110Z","dependency_job_id":"7b48e3fb-6d7b-4462-84f2-416497c0b273","html_url":"https://github.com/loiccoyle/shazam-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fshazam-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fshazam-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fshazam-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fshazam-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loiccoyle","download_url":"https://codeload.github.com/loiccoyle/shazam-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251450656,"owners_count":21591407,"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":["cli","music","music-recognition","shazam"],"created_at":"2024-11-11T18:26:25.701Z","updated_at":"2025-10-24T13:18:21.687Z","avatar_url":"https://github.com/loiccoyle.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎶 shazam-cli\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"./LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://aur.archlinux.org/packages/shazam-cli-git/\"\u003e\u003cimg src=\"https://img.shields.io/aur/version/shazam-cli-git\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nRecord audio and use the [Shazam](https://rapidapi.com/apidojo/api/shazam/) music recognition API from the command line. It is free for 500 queries per month.\n\nThe [`shazam`](./shazam) scripts queries the Shazam API. This repository also contains [`shazam-notif`](./shazam-notif) which uses [`shazam`](./shazam) and `libnotify` to return the match result.\n\n## 📦 Installation\n\n### Dependencies\n\nThe `shazam` script requires:\n\n- [curl](https://github.com/curl/curl)\n- [ffmpeg](https://git.ffmpeg.org/ffmpeg.git)\n\nIn addition to the above the `shazam-notif` script requires:\n\n- [jq](https://github.com/stedolan/jq)\n- notify-send\n- [dunst](https://github.com/dunst-project/dunst) (optional)\n\n#### Manual\n\nJust clone this repo and place the `shazam` and `shazam-notif` scripts on your `$PATH`.\n\n#### Arch (AUR)\n\nUsing your favourite AUR helper:\n\n```sh\nparu -S shazam-cli-git\n```\n\n## 📋 Usage\n\nTo use these scripts you'll need your own API key.\nIt can be obtained from [`rapidapi`](https://rapidapi.com/apidojo/api/shazam/) you'll need a RapidAPI account and subscribe to the Shazam API (there is a free a plan).\nProvide the API key either through the `-a` flag or by writing to `${XDG_CONFIG_HOME:-$HOME/.config}/shazam-cli/key`.\n\n\u003c!-- help start --\u003e\n\n```\n$ shazam -h\nUsage: shazam [OPTION]... [FILE]\nQuery the Shazam music recognition API.\n\nGet free API access at: https://rapidapi.com/apidojo/api/shazam/\n\nThe API key can be read from file:\n$ echo \"api-key\" \u003e \"~/.config/shazam-cli/key\"\n\nIf no FILE is provided, a recording is made using the AUDIO_SOURCE.\n\nUsage:\n    -h                    Show this message and exit.\n    -a API_KEY            API token.\n    -s AUDIO_SOURCE       ffmpeg audio input source, (default: \"default\").\n    -t RECORDING_TIME     Length of recording time, in seconds, (default: 5).\n```\n\n\u003c!-- help end --\u003e\n\n\u003e You can use `ffmpeg -sources pulse` to list available sources.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiccoyle%2Fshazam-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floiccoyle%2Fshazam-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiccoyle%2Fshazam-cli/lists"}