Resolve Wikidata External ID
wikidata_resolve_external_idLook up a Wikidata entity by an external identifier such as a DOI, PubMed ID, ORCID iD, OpenAlex ID, or IMDb ID. Returns match= on success, match=null when not found, and match=null with multipleMatches populated when a Wikidata data integrity issue causes more than one entity to claim the same external ID. The identifier matches through statements of every rank — entities holding it at best rank first, then at another non-deprecated rank, then deprecated — and each match reports the rank of the statement it was found through. The lookup searches both the main Wikidata graph and the scholarly-article graph, where scholarly articles and the DOIs and PubMed IDs on them live; when one does not answer, the result covers the other, with unavailableGraphs naming the one missed. Common cross-server join use cases: CrossRef DOI → Wikidata paper QID (P356), PubMed PMID → Wikidata paper QID (P698), ORCID → author QID (P496), OpenAlex ID → entity QID (P10283). The property must be one whose Wikidata data type is external-id — item-valued or media properties (e.g. P31 instance-of, P18 image) are rejected rather than returning an empty match. Known value forms are normalized automatically. Surrounding whitespace is trimmed. Resolver prefixes are stripped, in any case and with https://, http://, or no scheme: doi.org/, dx.doi.org/, www.doi.org/, and doi: for DOIs; pubmed.ncbi.nlm.nih.gov/, www.ncbi.nlm.nih.gov/pubmed/, and PMID: for PubMed IDs; orcid.org/, www.orcid.org/, and orcid: for ORCID iDs; openalex.org/ and api.openalex.org/ with an optional entity path for OpenAlex IDs; and the title, name, company, and event pages of imdb.com, www.imdb.com, and m.imdb.com for IMDb IDs; ror.org/ for ROR; and arxiv.org/abs/ or arXiv: for arXiv. PMC is stripped from numeric PMCIDs, and ISNI values displayed in four space-separated groups are compacted. DOIs are uppercased, ORCID iDs regrouped with hyphens and an uppercase X check character, and IMDb IDs lowercased. An OpenAlex ID is stored with its entity letter in either case, so it is tried as given and then with that letter in the other case.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"property": "<property>",
"value": "<value>"
},
"name": "wikidata_resolve_external_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The external identifier value to look up (e.g., "10.1038/nature01234" for a DOI, "32283226" for a PubMed ID, "0000-0002-1825-0097" for an ORCID, "A5035517966" for an OpenAlex ID, "tt0111161" for an IMDb ID). Accepts resolver or page URLs for DOI, PubMed, ORCID, OpenAlex, IMDb, and ROR, and abs URLs for arXiv. Also accepts PMC-prefixed PMCIDs, four space-separated ISNI groups, and arXiv: labels. | |
| language | No | Wikidata language code for the label and description in the response (e.g., "en", "de"). Case-insensitive; "_" is read as "-"; blank means "en". An entity with no label in this language returns its multilingual ("mul") label. | en |
| property | Yes | P-ID of the external identifier property, whose Wikidata data type must be external-id (e.g., "P356" for DOI, "P698" for PubMed ID, "P496" for ORCID, "P10283" for OpenAlex ID, "P345" for IMDb ID). Properties of any other data type are rejected — check an unfamiliar P-ID's data type with wikidata_get_entity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| match | No | Matching entity, or null when no Wikidata entity claims this external identifier (including the case where multipleMatches is populated). The identifier matches through statements of every rank, from the best tier any entity holds it at: best-rank statements first, then other non-deprecated ones, then deprecated ones. A null match is not proof of absence: the Query Service backing this lookup lags the live wiki, so a recently added identifier may not be indexed yet, and a graph named in unavailableGraphs was not searched. | |
| value | No | The normalized value that was searched (may differ from input due to canonicalization). An identifier stored in more than one form — an OpenAlex ID with its entity letter in either case, an IMDb ceremony with or without its number — is also looked up in its other form, which matches only when no entity holds this one. | |
| notice | No | Present when a graph did not answer (unavailableGraphs names it), or when more than 5 entities claim the identifier, so multipleMatches lists only 5 of them — saying what the result leaves out and how to get it. | |
| property | No | The P-ID used for the lookup. | |
| multipleMatches | No | Present when more than one Wikidata entity claims this external ID at the same rank tier (data integrity issue), listing at most 5; the notice says when more claim it. match is null when this field is present. Inspect the list and select the correct QID manually. | |
| unavailableGraphs | No | Present when one of the two graphs the lookup searches did not answer in time or could not be reached. The result covers the other graph only — an entity held in the named graph would not appear — so retry for a complete answer. Absent when both answered. |