Skip to content

Wikidata API

7 endpointsSearch & KnowledgeGlobalsocial:read1 real examples

Returns Wikidata items by search, Q id or Wikimedia page, with labels, descriptions, aliases and property statements.

View as Markdown
GET/wikidata/searchItems whose label or alias matches a search, best match first, 20 per page.
GET/wikidata/itemOne item by its Q id: its label, description and aliases in one language.
GET/wikidata/itemsByIdsSeveral items by their Q ids in one call, up to 50, each with its label and description.
GET/wikidata/fromSiteThe Wikidata item of a page on a Wikimedia site, such as the English Wikipedia article Douglas Adams.
GET/wikidata/statementsThe statements an item makes for one property, such as P31 (instance of), with their values.
GET/wikidata/propertySearchWikidata properties whose label or alias matches a search, such as P31 for instance of, 20 per page.
GET/wikidata/sitelinksThe Wikipedia articles and other wiki pages about an item, in every language or the wikis you name, with their page addresses.

item

GET/v1/wikidata/item

One item by its Q id: its label, description and aliases in one language.

scope social:read1 unitcached 6 h

Parameters

id
string
required
Wikidata item id such as Q42, or a wikidata.org/wiki/Q42 URL.
e.g. Q42
lang
string
Language of the label, such as en or de.
default en
tunnel
string
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.
proxy
string
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.
profileId
string
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
aliasesAlias[]
namestring
descriptionstring
idstring
labelstring
urlstring
curl "https://api.hoshime.com/v1/wikidata/item?id=Q42" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/wikidata/itemsByIds

Several items by their Q ids in one call, up to 50, each with its label and description.

scope social:read1 unitcached 6 hpaginated

Parameters

ids
string
required
Wikidata item ids separated by | or commas, such as Q42|Q5.
e.g. Q42|Q5
lang
string
Language of the labels, such as en or de.
default en
tunnel
string
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.
proxy
string
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.
profileId
string
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
aliasesAlias[]
namestring
descriptionstring
idstring
labelstring
urlstring
curl "https://api.hoshime.com/v1/wikidata/itemsByIds?ids=Q42%7CQ5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/wikidata/fromSite

The Wikidata item of a page on a Wikimedia site, such as the English Wikipedia article Douglas Adams.

scope social:read1 unitcached 6 h

Parameters

site
string
required
Wiki database name such as enwiki, dewiki or idwiki.
e.g. enwiki
title
string
required
Page title on that wiki, such as Douglas Adams.
e.g. Douglas Adams
lang
string
Language of the label, such as en or de.
default en
tunnel
string
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.
proxy
string
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.
profileId
string
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
aliasesAlias[]
namestring
descriptionstring
idstring
labelstring
urlstring
curl "https://api.hoshime.com/v1/wikidata/fromSite?site=enwiki&title=Douglas+Adams" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/wikidata/statements

The statements an item makes for one property, such as P31 (instance of), with their values.

scope social:read1 unitcached 6 hpaginated

Parameters

id
string
required
Wikidata item id such as Q42, or a wikidata.org/wiki/Q42 URL.
e.g. Q42
property
string
required
Property id such as P31 (instance of) or P569 (date of birth).
e.g. P31
tunnel
string
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.
proxy
string
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.
profileId
string
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
propertystring
rankstring
typestring
valuestring
curl "https://api.hoshime.com/v1/wikidata/statements?id=Q42&property=P31" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/wikidata/propertySearch

Wikidata properties whose label or alias matches a search, such as P31 for instance of, 20 per page.

scope social:read1 unitcached 6 hpaginated

Parameters

query
string
required
Words to search for, such as date of birth.
e.g. instance of
lang
string
Language of the labels, such as en or de.
default en
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
aliasesAlias[]
namestring
descriptionstring
idstring
labelstring
urlstring
curl "https://api.hoshime.com/v1/wikidata/propertySearch?query=instance+of" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open