Wikidata API: List items by criteria
Lists Wikidata items of a named kind, optionally in a country or directly assigned to a region or city, or with an award, sorted by Wikipedia language editions, date or name.
Unofficial. Not affiliated with or endorsed by Wikidata.
Inputs
Values from the run on Oct 31, 2026, shown under Output.
- Kind, required
kind Kind of item, for example university or person.
person
- Sort optional
sort Result order; most_notable ranks by number of Wikipedia language editions, for example newest.
most_notable (default)
One of
most_notable,newest,oldest,alphabetical.- Award optional
award Optional award received, for example Nobel Prize in Physics.
Nobel Prize in Physics
Default
.- Located in optional
located_in Optional country, region, or city, for example Canada.
(default)
- Max Results optional
max_results Maximum number of items, for example 50 (up to 500).
500
Whole number from 1 to 500. Default
50.
Input as JSON
{ "kind": "person", "award": "Nobel Prize in Physics", "max_results": 500}Output
{ "items": [ { "name": "Albert Einstein", "country": "Germany", "item_id": "Q937", "start_date": "1879-03-14", "wikidata_link": "https://www.wikidata.org/wiki/Q937" , "short_description": "German-born theoretical physicist (1879–1955)", "english_wikipedia_link": "https://en.wikipedia.org/wiki/Albert_Einstein" }, { "name": "Marie Curie", "country": "France", "item_id": "Q7186", "start_date": "1867-11-07", "wikidata_link": "https://www.wikidata.org/wiki/Q7186" , "short_description": "Polish-born French physicist and chemist (1867–1934)", "english_wikipedia_link": "https://en.wikipedia.org/wiki/Marie_Curie" }, { "name": "Niels Bohr", "country": "Kingdom of Denmark", "item_id": "Q7085", "start_date": "1885-10-07", "wikidata_link": "https://www.wikidata.org/wiki/Q7085" , "short_description": "Danish physicist (1885–1962)", "english_wikipedia_link": "https://en.wikipedia.org/wiki/Niels_Bohr" } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"wikidata.org/list_items_by_criteria","input":{"kind":"person","award":"Nobel Prize in Physics","max_results":500}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "wikidata.org/list_items_by_criteria" , "input": { "kind": "person", "award": "Nobel Prize in Physics", "max_results": 500 }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "wikidata.org/list_items_by_criteria" , "input": { "kind": "person", "award": "Nobel Prize in Physics", "max_results": 500 } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run wikidata.org/list_items_by_criteria# with {"kind":"person","award":"Nobel Prize in Physics","max_results":500}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "kind" ], "properties": { "kind": { "type": "string", "description": "Kind of item, for example university or person." }, "sort": { "enum": [ "most_notable", "newest", "oldest", "alphabetical" ], "type": "string", "default": "most_notable", "description": "Result order; most_notable ranks by number of Wikipedia language editions, for example newest." }, "award": { "type": "string", "default": "", "description": "Optional award received, for example Nobel Prize in Physics." }, "located_in": { "type": "string", "default": "", "description": "Optional country, region, or city, for example Canada." }, "max_results": { "type": "integer", "default": 50, "maximum": 500, "minimum": 1, "description": "Maximum number of items, for example 50 (up to 500)." } }}Output schema
{ "type": "object", "required": [ "items" ], "properties": { "items": { "type": "array", "items": { "type": "object", "required": [ "name", "short_description", "country", "start_date", "english_wikipedia_link", "wikidata_link", "item_id" ], "properties": { "name": { "type": "string" }, "country": { "type": [ "string", "null" ] }, "item_id": { "type": "string" }, "start_date": { "type": [ "string", "null" ], "format": "date" }, "wikidata_link": { "type": "string" }, "short_description": { "type": [ "string", "null" ] }, "english_wikipedia_link": { "type": [ "string", "null" ] } }, "additionalProperties": false } } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
wikidata.org/list_items_by_criteria- Returns
- name, short description, country, start date, English Wikipedia link, Wikidata link, item id
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method wikidata.org/list_items_by_criteria with the inputs above.
Ask your agent
- List the 20 most notable universities in Canada along with their founding dates and English Wikipedia links
- Which people have received the Nobel Prize in Chemistry? Give me up to 100, ordered from earliest to latest, using Wikidata
- I need an alphabetical list of museums located in Lyon, with short descriptions and item IDs
- Show me the newest airports in Brazil, maybe 30 of them, with their Wikidata links
- Pull the 200 best-known novels that won the Pulitzer Prize for Fiction from wikidata.org, ranked by how many Wikipedia languages cover them
See more
All Wikidata methodsLooks up a Wikidata item by name, item ID or link and returns its name, description, image, links and readable facts. A hint picks between items with similar names.
wikidata.org/get_factsLists the QS World University Rankings, or a QS subject ranking, for an edition and optionally one country, with each university's displayed rank, location, overall score and the indicator scores published for that table.
topuniversities.com/list_university_rankingsLists current Hacker News stories in rank order from the top, newest, best, Ask HN, Show HN or jobs list.
news.ycombinator.com/list_front_pageLists Similarweb's most visited websites for a category and country, with rankings and engagement figures for the reported month. Anonymous view limits may restrict results, especially for country rankings.
similarweb.com/list_top_websitesLists Steam's top-selling, discounted, or new and trending games in store order, with prices for a chosen country, review summaries and release dates.
store.steampowered.com/list_top_sellersSearches a Wikipedia language edition by keywords and returns matching articles in relevance order, with descriptions, snippets, word counts, last edit dates and links.
wikipedia.org/search_articlesFinds public Kaggle datasets on a topic, with size, file formats, usability, popularity and license. Lists at most 100 results in Kaggle's order; files are not downloaded.
kaggle.com/search_datasetsLists the most-watched live Kick streams right now, optionally in one category and language, sorted by current viewers.
kick.com/list_live_streams