# Find by discogs id

**URL:** <https://community.metabrainz.org/t/find-by-discogs-id/457022>\
**Category:** Development\
**Tags:** webservice, discogs\
**Created:** [December 30, 2019, 9:40am UTC](https://community.metabrainz.org/t/find-by-discogs-id/457022 "2019-12-30T09:40:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![foremtehan](https://community.metabrainz.org/letter_avatar_proxy/v4/letter/f/e56c9b/32.png) [@foremtehan](https://community.metabrainz.org/u/foremtehan)\
**Post date:** [December 30, 2019, 9:40am UTC](https://community.metabrainz.org/t/find-by-discogs-id/457022/1 "2019-12-30T09:40:52Z")

</div>

Is there any way that i get information about the release by discogs id in API call ? Since the most releases have linked to discogs page i think there way to do that [for example](https://musicbrainz.org/release/56a006b0-e615-314b-9b45-86455f0d757b)

---

<div class="post-metadata">

**Author:** ![Freso](https://community.metabrainz.org/user_avatar/community.metabrainz.org/freso/32/25_2.png) [@Freso](https://community.metabrainz.org/u/Freso)\
**Post date:** [December 30, 2019, 3:18pm UTC](https://community.metabrainz.org/t/find-by-discogs-id/457022/2 "2019-12-30T15:18:42Z")

</div>

Just do a regular lookup for an URL entity using the `resource` URL parameter, as per [MusicBrainz API - MusicBrainz](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2#Non-MBID_Lookups) - e.g., [https://musicbrainz.org/ws/2/url?resource=https://www.discogs.com/release/1309587](https://musicbrainz.org/ws/2/url?resource=https://www.discogs.com/release/1309587)

Note that you will need to use [`inc`lude parameters](https://musicbrainz.org/doc/Development/XML_Web_Service/Version_2#Relationships) as well if you want to go directly from URL to MB entity, e.g., to see artists linked to a given url, you need to use the `artist-rels` include flag.

You can see an example of this in my `spotify2musicbrainz.py` script:

> <https://gitlab.com/Freso/spotify2musicbrainz/blob/master/spotify2musicbrainz.py#L149-150>
