{"id":17133989,"url":"https://github.com/shkm/discogs-api","last_synced_at":"2025-04-13T08:52:24.725Z","repository":{"id":62557224,"uuid":"145138342","full_name":"shkm/discogs-api","owner":"shkm","description":"💿 Discogs API client in Ruby.","archived":false,"fork":false,"pushed_at":"2022-10-24T14:55:08.000Z","size":29,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T15:57:51.331Z","etag":null,"topics":["api-client","discogs","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/shkm.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}},"created_at":"2018-08-17T15:39:40.000Z","updated_at":"2019-11-08T04:10:39.000Z","dependencies_parsed_at":"2022-11-03T06:15:38.034Z","dependency_job_id":null,"html_url":"https://github.com/shkm/discogs-api","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/shkm%2Fdiscogs-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shkm%2Fdiscogs-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shkm%2Fdiscogs-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shkm%2Fdiscogs-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shkm","download_url":"https://codeload.github.com/shkm/discogs-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688542,"owners_count":21145763,"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-client","discogs","ruby"],"created_at":"2024-10-14T19:43:30.838Z","updated_at":"2025-04-13T08:52:24.706Z","avatar_url":"https://github.com/shkm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discogs::Api\n\n[![Gem Version](https://badge.fury.io/rb/discogs-api.svg)](https://badge.fury.io/rb/discogs-api)\n[![Build Status](https://travis-ci.org/shkm/discogs-api.svg?branch=master)](https://travis-ci.org/shkm/discogs-api)\n[![codecov](https://codecov.io/gh/shkm/discogs-api/branch/master/graph/badge.svg)](https://codecov.io/gh/shkm/discogs-api)\n[![Maintainability](https://api.codeclimate.com/v1/badges/07116b2d10b61e6c2726/maintainability)](https://codeclimate.com/github/shkm/discogs-api/maintainability)\n\n\nA simple wrapper around the [Discogs API](https://www.discogs.com/developers/).\n\nI'm only aiming to implement endpoints that I actually use at this time, which is a very small subset of what's available. See [Implemented Endpoints](#user-content-implemented-endpoints) and consider opening an issue or PR if you need more.\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'discogs-api'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install discogs-api\n\n## Usage\n\n```ruby\n# Set up a client with your auth token and user agent\nclient = Discogs::Api::Client.new('my-auth-token', 'my-user-agent')\n\n# Search for an artist\nDiscogs::Api::Search.artist(client, query: 'Electric Octopus')\n\n# Search for a master\nDiscogs::Api::Search.master(client, query: 'This is our Culture')\n\n# Search for an release\nDiscogs::Api::Search.release(client, query: 'This is our Culture')\n\n# Search for a label\nDiscogs::Api::Search.label(client, query: 'Heavy Psych Sounds')\n\n# Get an artist by its ID\nDiscogs::Api::Artist.get(client, 5272208)\n\n# Get an artist's releases\nDiscogs::Api::Artist.releases(client, 5272208)\n```\n\n## Implemented Endpoints\n\n- [ ] OAuth\n  - [ ] GET [oauth/request_token](https://www.discogs.com/developers/#page:authentication)\n  - [ ] POST [oauth/access_token](https://www.discogs.com/developers/#page:authentication)\n  - [ ] GET [oauth/identify](https://www.discogs.com/developers/#page:authentication)\n- [ ] Releases\n  - [ ] GET [releases/:id](https://www.discogs.com/developers/#page:database,header:database-release)\n  - [ ] GET [releases/:id/rating](https://www.discogs.com/developers/#page:database,header:database-community-release-rating-get)\n  - [ ] GET [releases/:id/rating/:user](https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user)\n  - [ ] PUT [releases/:id/rating/:user](https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user-put)\n  - [ ] DELETE [releases/:id/rating/:user](https://www.discogs.com/developers/#page:database,header:database-release-rating-by-user-delete)\n- [ ] Masters\n  - [ ] GET [masters/:id](https://www.discogs.com/developers/#page:database,header:database-master-release-get)\n  - [ ] GET [masters/:id/versions](https://www.discogs.com/developers/#page:database,header:database-master-release-get)\n- [x] Artists\n  - [x] GET [artists/:id](https://www.discogs.com/developers/#page:database,header:database-artist-get)\n  - [x] GET [artists/:id/releases](https://www.discogs.com/developers/#page:database,header:database-artist-releases)\n- [ ] Labels\n  - [ ] GET [label/:id](https://www.discogs.com/developers/#page:database,header:database-artist-releases)\n  - [ ] GET [label/:id/releases](https://www.discogs.com/developers/#page:database,header:database-all-label-releases-get)\n- [x] Search\n  - [x] GET [database/search](https://www.discogs.com/developers/#page:database,header:database-search-get)\n\nThere are more endpoints regarding the marketplace, user identity, user collection, user wantlists, and user lists. I have no intention at all of implementing those at the moment.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/shkm/discogs-api.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshkm%2Fdiscogs-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshkm%2Fdiscogs-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshkm%2Fdiscogs-api/lists"}