← All APIs

Wikidata

byAPI3FreeAirnode v0.1.0

Wikidata is the structured knowledge base behind Wikipedia: countries, companies, people, places and the identifiers and relationships that tie them together, edited in the open and readable as data rather than as prose. This Airnode wraps its REST API, so a consumer receives what Wikidata held at a moment with a signature saying this Airnode read it then, which is the part that matters for a knowledge base anyone can edit.

Everything here goes through two ideas. An item is a thing, addressed by a Q id such as Q64 for Berlin. A statement is a fact about that thing, keyed by the P id of the property it uses, such as P1082 for population. So a lookup is two calls: search for the id, then read the statements. Nothing here writes, and the SPARQL endpoint is deliberately absent, since an arbitrary query is a way to ask this Airnode for an unbounded amount of work.

Wikidata's structured data is released under CC0, so it can be reused and redistributed commercially with no conditions attached. Wikidata asks to be named as the origin of the data anyway, and that is what this document does.

Every response carries an EIP-191 signature from the Airnode that served it, so the data can be attributed back to its source rather than trusted on reputation.

Interface

Served at https://airnode-wikidata.fly.dev/. The two requests below are everything the endpoint speaks, and each can be sent from this page. What comes back is verified right here in the browser.

GET /

Returns the machine-readable documentation this page is rendered from. Free, and everything an agent needs.

POST /

Names an operation and its parameters, performs it against the upstream API, and answers with the response and the attestation over it.

Verify the response

Every response is signed by the API that served it. Paste one to check it really came from this listing and was not altered along the way.