[13:33:27] hola soy Leonardo Martinez Gonzalez de Greenville nesecito mucha ayuda [15:19:51] I sometimes want to do wikidata id -> some other id (e.g. musicbrainz). That is easy. I was wondering if there is a API for a reverse lookup. [15:20:09] so not A -r-> ? but ? -r-> B [15:20:20] to get back to A. [17:48:34] phschafft: You can do it using a SPARQL query [17:49:23] For example if you want to send a SPARQL query and get the results in json you can use something like this: [17:49:24] https://query.wikidata.org/sparql?query=SELECT%20*%20WHERE%20%7B%20%3Fitem%20wdt%3AP434%20%22b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d%22%20%7D&format=json [17:55:03] that is nice. do I need to be extra careful with that endpoint? don't want to be that guy that is known for hammering the API. [18:06:30] phschafft: I don't know if there is something specific to that endpoint but there is the general guidance https://www.mediawiki.org/wiki/API:Etiquette [18:09:43] hm. [18:10:01] thank you for all that input. super helpful. :) [18:12:04] Also btw if you want to just look up the item(s) with a particular external ID in web UI you can just enter haswbstatement:P434=b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d in the search box. [18:13:38] my context are some applications I work on (at work). and I would like to get good wikidata support in. [18:13:49] however I also don't want to be that bad guy ;) [18:15:32] that's also why I was wondering if importing a dump to prime an internal cache and only do lookups if the cache doesn't have any data for the request would be an option.