{"id":26018998,"url":"https://github.com/moonwave99/discogs-image-grabber","last_synced_at":"2026-05-27T13:31:43.185Z","repository":{"id":142636141,"uuid":"48057967","full_name":"moonwave99/discogs-image-grabber","owner":"moonwave99","description":"Grabs images from Discogs API","archived":false,"fork":false,"pushed_at":"2015-12-15T22:20:08.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T06:46:51.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moonwave99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-15T17:18:20.000Z","updated_at":"2022-03-22T01:40:50.000Z","dependencies_parsed_at":"2023-03-15T09:45:34.001Z","dependency_job_id":null,"html_url":"https://github.com/moonwave99/discogs-image-grabber","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/moonwave99/discogs-image-grabber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fdiscogs-image-grabber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fdiscogs-image-grabber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fdiscogs-image-grabber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fdiscogs-image-grabber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moonwave99","download_url":"https://codeload.github.com/moonwave99/discogs-image-grabber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonwave99%2Fdiscogs-image-grabber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33568857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":[],"created_at":"2025-03-06T06:39:58.824Z","updated_at":"2026-05-27T13:31:43.168Z","avatar_url":"https://github.com/moonwave99.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discogs Image Grabber\n\nGrab [Discogs](https://www.discogs.com) release covers via command line:\n\n    $ discogs --token a9c8d34176060890ba50bc300d43ce01 --userAgentURL http://yourwebsite.com --requestURL /releases/561793\n\nThe `requestURL` parameter is the relative URL for **master releases** and **releases** according to [Discogs API documentation](https://www.discogs.com/developers/#page:database).\n\nNote the different URL schema between website and API:\n\n    http://www.discogs.com/Slowdive-Outside-Your-Room-EP/release/582239\n    http://api.discogs.com/releases/582239\n\n    http://www.discogs.com/Slowdive-Outside-Your-Room-EP/master/9486\n    http://api.discogs.com/masters/9486\n\nAPI uses plural (`releases`, `masters`)!\n\n---\n\nThe `token` is strictly needed, you can get it from the [developer settings page](https://www.discogs.com/settings/developers) of your Discogs account (see _Generate new token_).\nRegarding the user agent, Discogs API states that [_your application must provide a User-Agent string that identifies itself_](https://www.discogs.com/developers/#page:home,header:home-general-information), so providing the `userAgentURL` parameter will result in issuing the request with:\n\n    discogs-image-grabber/{version} +http://yourwebsite.com\n\nIn order not to write `token`and `userAgentURL` all over the place, you may place them in your environment variables, either globally or via [`.env`](https://github.com/motdotla/dotenv) file, like:\n\n    DISCOGS_TOKEN=a9c8d34176060890ba50bc300d43ce01\n    DISCOGS_USER_AGENT_URL=http://yourwebsite.com\n\n---\n\nIf you want to use it into your scripts:\n\n    var DiscogsGrabber = require('discogs-image-grabber')\n\n    DiscogsGrabber({\n      requestURL:   '/releases/561793',\n      token:        'a9c8d34176060890ba50bc300d43ce01',\n      userAgentURL: 'http://yourwebsite.com'\n    }).then(function(file){\n      // file is the absolute path of the saved image\n    }).catch(function(error){\n      // too bad\n    })\n\n## Disclaimer\n\nMake a fair use of this, so please do not pipe a gazillion request per seconds: Discogs limits them [to 20 per minute per IP address](https://www.discogs.com/developers/#page:home,header:home-rate-limiting) - `_.throttle` and proper timeouts are your friends.\n\n## Internet Systems Consortium license\n\nCopyright (c) 2015, Diego Caponera\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonwave99%2Fdiscogs-image-grabber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoonwave99%2Fdiscogs-image-grabber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonwave99%2Fdiscogs-image-grabber/lists"}