Wikidata API
Returns Wikidata items by search, Q id or Wikimedia page, with labels, descriptions, aliases and property statements.
View as Markdown| GET | /wikidata/search | Items whose label or alias matches a search, best match first, 20 per page. |
| GET | /wikidata/item | One item by its Q id: its label, description and aliases in one language. |
| GET | /wikidata/itemsByIds | Several items by their Q ids in one call, up to 50, each with its label and description. |
| GET | /wikidata/fromSite | The Wikidata item of a page on a Wikimedia site, such as the English Wikipedia article Douglas Adams. |
| GET | /wikidata/statements | The statements an item makes for one property, such as P31 (instance of), with their values. |
| GET | /wikidata/propertySearch | Wikidata properties whose label or alias matches a search, such as P31 for instance of, 20 per page. |
| GET | /wikidata/sitelinks | The Wikipedia articles and other wiki pages about an item, in every language or the wikis you name, with their page addresses. |
search
/v1/wikidata/searchItems whose label or alias matches a search, best match first, 20 per page.
Parameters
querystring required | Words to search for, such as Douglas Adams. e.g. Douglas Adams |
langstring | Language of the labels, such as en or de. default en |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
aliases | Alias[] |
name | string |
description | string |
id | string |
label | string |
url | string |
curl "https://api.hoshime.com/v1/wikidata/search?query=Douglas+Adams" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikidata/search?query=Douglas+Adams", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikidata/search?query=Douglas+Adams", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "aliases": [ { "name": null } ], "description": "…", "id": "abc123", "label": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikidata", "requestId": "req_2Xb9kQ…", "units": 1 } }
item
/v1/wikidata/itemOne item by its Q id: its label, description and aliases in one language.
Parameters
idstring required | Wikidata item id such as Q42, or a wikidata.org/wiki/Q42 URL. e.g. Q42 |
langstring | Language of the label, such as en or de. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
aliases | Alias[] |
name | string |
description | string |
id | string |
label | string |
url | string |
curl "https://api.hoshime.com/v1/wikidata/item?id=Q42" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikidata/item?id=Q42", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikidata/item?id=Q42", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "aliases": [ { "name": "…" } ], "description": "…", "id": "abc123", "label": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "item", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikidata", "requestId": "req_2Xb9kQ…", "units": 1 } }
itemsByIds
/v1/wikidata/itemsByIdsSeveral items by their Q ids in one call, up to 50, each with its label and description.
Parameters
idsstring required | Wikidata item ids separated by | or commas, such as Q42|Q5. e.g. Q42|Q5 |
langstring | Language of the labels, such as en or de. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
aliases | Alias[] |
name | string |
description | string |
id | string |
label | string |
url | string |
curl "https://api.hoshime.com/v1/wikidata/itemsByIds?ids=Q42%7CQ5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikidata/itemsByIds?ids=Q42%7CQ5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikidata/itemsByIds?ids=Q42%7CQ5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "aliases": [], "description": "British science fiction writer and humorist (1952–2001)", "id": "Q42", "label": "", "url": "https://www.wikidata.org/wiki/Q42" }, { "aliases": [ { "name": "human being" }, { "name": "people" } ], "description": "any single member of Homo sapiens, unique extant species of the genus Homo", "id": "Q5", "label": "human", "url": "https://www.wikidata.org/wiki/Q5" } ], "meta": { "cached": false, "endpoint": "itemsByIds", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikidata", "requestId": "req_2Xb9kQ…", "units": 1 } }
fromSite
/v1/wikidata/fromSiteThe Wikidata item of a page on a Wikimedia site, such as the English Wikipedia article Douglas Adams.
Parameters
sitestring required | Wiki database name such as enwiki, dewiki or idwiki. e.g. enwiki |
titlestring required | Page title on that wiki, such as Douglas Adams. e.g. Douglas Adams |
langstring | Language of the label, such as en or de. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
aliases | Alias[] |
name | string |
description | string |
id | string |
label | string |
url | string |
curl "https://api.hoshime.com/v1/wikidata/fromSite?site=enwiki&title=Douglas+Adams" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikidata/fromSite?site=enwiki&title=Douglas+Adams", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikidata/fromSite?site=enwiki&title=Douglas+Adams", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "aliases": [ { "name": "…" } ], "description": "…", "id": "abc123", "label": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "fromSite", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikidata", "requestId": "req_2Xb9kQ…", "units": 1 } }
statements
/v1/wikidata/statementsThe statements an item makes for one property, such as P31 (instance of), with their values.
Parameters
idstring required | Wikidata item id such as Q42, or a wikidata.org/wiki/Q42 URL. e.g. Q42 |
propertystring required | Property id such as P31 (instance of) or P569 (date of birth). e.g. P31 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
property | string |
rank | string |
type | string |
value | string |
curl "https://api.hoshime.com/v1/wikidata/statements?id=Q42&property=P31" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikidata/statements?id=Q42&property=P31", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikidata/statements?id=Q42&property=P31", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "property": "…", "rank": "…", "type": "…", "value": "…" } ], "meta": { "cached": false, "endpoint": "statements", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikidata", "requestId": "req_2Xb9kQ…", "units": 1 } }
propertySearch
/v1/wikidata/propertySearchWikidata properties whose label or alias matches a search, such as P31 for instance of, 20 per page.
Parameters
querystring required | Words to search for, such as date of birth. e.g. instance of |
langstring | Language of the labels, such as en or de. default en |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
aliases | Alias[] |
name | string |
description | string |
id | string |
label | string |
url | string |
curl "https://api.hoshime.com/v1/wikidata/propertySearch?query=instance+of" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikidata/propertySearch?query=instance+of", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikidata/propertySearch?query=instance+of", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "aliases": [ { "name": null } ], "description": "…", "id": "abc123", "label": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "propertySearch", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikidata", "requestId": "req_2Xb9kQ…", "units": 1 } }
sitelinks
/v1/wikidata/sitelinksThe Wikipedia articles and other wiki pages about an item, in every language or the wikis you name, with their page addresses.
Parameters
idstring required | Wikidata item id such as Q42, or a wikidata.org/wiki/Q42 URL. e.g. Q42 |
sitesstring | Wiki database names separated by |, such as enwiki|dewiki. Omit it for every wiki. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
site | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wikidata/sitelinks?id=Q42" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikidata/sitelinks?id=Q42", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikidata/sitelinks?id=Q42", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "site": "…", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "sitelinks", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikidata", "requestId": "req_2Xb9kQ…", "units": 1 } }