Wikidata External ID redirector (original) (raw)
This accepts the following '?' parameters and returns a redirect constructed from them:
- p - property number (eg. 213 = ISNI)
- url_prefix - eg. http://isni.org/
- url_suffix - eg. .html
- id - the id value of this external id property for an entity of interest This accepts the alternative '?' parameters:
- url - url with parameters %1, %2... eg. http://test.org/?vol=%1&item=%2
- exp - regular expression eg. (.*)-(.*)
- id - eg. 113-1250
- example https://wikidata-externalid-url.toolforge.org/?url=http%3A%2F%2Ftest.org%2F%3Fvol%3D%251%26item%3D%252&exp=%28.%2A%29-%28.%2A%29&id=113-1250
- result http://test.org/?vol=113?item=1250
Note: all parameters should be url encoded.
Note: this script also URL-decodes the id value so that an id with several embedded parameters can be used as originally intended.
An example: [https://wikidata-externalid-url.toolforge.org/?p=213&url\_prefix=http://isni.org/&id=0000 0000 8045 6315](index.php?p=213&url%5Fprefix=http://isni.org/&id=0000 0000 8045 6315).
Currently supported id translations:
- ISNI - property 213
- IMDB - property 345
- HURDAT - property 502
- E number - property 628
- SOC code - property 919
- NUKAT - property 1207
- CN - property 1209
- TA98 - property 1323
- CricketArchive - property 2698
- EU VAT number - property 3608
- USCG Lighthouse ID - property 3723
- Mastodon - property 4033
- UOL Brazil election id - property 5892
- Swedish Organization Number - property 6460
- Gamepedia article ID - property 6623
- ITF tournament ID - property 6841
- Epitafier.se ID - property 6996
- NLP ID - property 1695
- ft.dk politician identifier - property 7882
- VcBA ID - property 8034
- Dictionary of Occupational Titles code - property 8679
- wiki.gg article ID - property 11988 The source code for this service is available under the Apache License, Version 2.0.