Get Wikidata Sitelinks
wikidata_get_sitelinksFetch Wikipedia and other Wikimedia project article URLs for a Wikidata item. A sitelink maps a site code (e.g., "enwiki", "commonswiki") to an article title and URL. Major items can have 300+ sitelinks across languages. Use sites to filter to specific site codes, or wikis_only to return only Wikipedia editions. Only Q-IDs (items) have sitelinks — properties (P-IDs) do not.
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": {
"id": "<id>"
},
"name": "wikidata_get_sitelinks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Q-ID of the item (e.g., "Q76"), bare or as an entity URI or wd: form (e.g., "http://www.wikidata.org/entity/Q76", "wd:Q76"). Only items have sitelinks; properties (P-IDs) are not supported. | |
| sites | No | Optional filter to specific site codes (e.g., ["enwiki", "frwiki", "commonswiki"]), matched in any case with surrounding whitespace ignored. Omit to return all sitelinks. | |
| wikis_only | No | When true, return only Wikipedia language editions: sitelinks whose URL is on a <subdomain>.wikipedia.org host, such as enwiki (en.wikipedia.org) or be_x_oldwiki (be-tarask.wikipedia.org). Excludes Abstract Wikipedia, Wikimedia Commons, Wikispecies, Wikisource, Wiktionary, Wikiquote, and every other project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The resolved Q-ID whose sitelinks were fetched. | |
| count | No | Number of sitelinks returned. | |
| error | No | Present when the call failed. Absent on success. | |
| message | No | Informational note when a requested site code is absent or no sitelinks match. | |
| notFound | No | Requested site codes absent from the resolved item, normalized to lowercase with surrounding whitespace removed. | |
| sitelinks | No | Map of site code to sitelink metadata. Empty when the entity has no matching sitelinks. | |
| redirectedFrom | No | The normalized requested Q-ID when it redirects to id. |