Skip to content

Wikidata API

Search and read structured facts about entities.
Status
Working
API key
Not needed
Browser calls
Runs in the browser
Latency
355 ms

Build snapshot, not live. One verifier run on , from the machine that built this site. How we check

Example request

GEThttps://www.wikidata.org/w/api.php?action=wbsearchentities&search=earth&language=en&format=json&origin=*

Sent from your browser straight to www.wikidata.org. No proxy: this site never sees the request or the answer.

Copy the request

Shell
curl -s 'https://www.wikidata.org/w/api.php?action=wbsearchentities&search=earth&language=en&format=json&origin=*'

Response stored by the verifier

This is what www.wikidata.org answered when the verifier sent the request above on : HTTP 200, application/json. Arrays are cut to two items and long strings are shortened. It comes from the build snapshot.

application/json · stored
{
  "searchinfo": {
    "search": "earth"
  },
  "search": [
    {
      "id": "Q2",
      "title": "Q2",
      "pageid": 130,
      "concepturi": "http://www.wikidata.org/entity/Q2",
      "repository": "wikidata",
      "url": "//www.wikidata.org/wiki/Q2",
      "display": {
        "label": {},
        "description": {}
      },
      "label": "Earth",
      "description": "third planet from the Sun in the Solar System",
      "match": {
        "type": "label",
        "language": "en",
        "text": "Earth"
      }
    },
    {
      "id": "Q3518604",
      "title": "Q3518604",
      "pageid": 3350215,
      "concepturi": "http://www.wikidata.org/entity/Q3518604",
      "repository": "wikidata",
      "url": "//www.wikidata.org/wiki/Q3518604",
      "display": {
        "label": {},
        "description": {}
      },
      "label": "Earth",
      "description": "1990 novel by David Brin",
      "match": {
        "type": "label",
        "language": "en",
        "text": "Earth"
      }
    }
  ],
  "search-continue": 7,
  "success": 1
}

Availability

Up 1 of 1 day checked · 30-day window

What counts as up for this API: an answer within five seconds, a 2xx status, and the JSON body must contain the field "search".

Last check: — passed, HTTP 200 in 355 ms.

The check runs from our infrastructure, not from where you are. If you need certainty, send the request yourself above. How the verifier works.

Badge for your README

If you maintain this API, you can show its last check in your README. The image is made when the site is built, so it shows that check and its date; it is not live, and it can be older than the status page until the site is published again. The link goes back to this page.

freeapi.today: Working, checked 2026-11-26
Markdown
[![freeapi.today status](https://freeapi.today/badge/wikidata.svg/)](https://freeapi.today/apis/wikidata/)

Questions

Does the Wikidata API need an API key?

No. The sample request on this page was answered without a key, token or account. Note: Add origin=* to the query to receive CORS headers.

Can I call the Wikidata API from the browser?

Yes. www.wikidata.org answered our verifier with an Access-Control-Allow-Origin header on Nov 26, 2026, so a fetch call from a web page can read the response.

Is the Wikidata API working?

At the check on Nov 26, 2026 it returned HTTP 200 with the expected data in 355 ms. The status at the top of this page shows the most recent result we have.