Discover/query.wikidata.org API
live

query.wikidata.org APIquery.wikidata.org

Extract structured biographical data from Wikipedia and Wikidata. Get names, birth/death dates, nationalities, professions, and narrative life events via 3 endpoints.

Endpoints
3
Updated
3mo ago
Try it
Comma-separated list of Wikipedia or Wikidata URLs to extract biographical data from (e.g.
api.parse.bot/scraper/32c5108a-abe3-41c2-b7de-4534b2aa0cc6/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/32c5108a-abe3-41c2-b7de-4534b2aa0cc6/extract_biography?urls=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMarie_Curie' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Extract biographical data from one or more Wikipedia or Wikidata URLs. Returns a JSON array with one biography object per URL. Supports Wikipedia article URLs and Wikidata entity URLs. Returns empty object {} for inaccessible or non-biographical URLs.

Input
ParamTypeDescription
urlsrequiredstringComma-separated list of Wikipedia or Wikidata URLs to extract biographical data from (e.g. 'https://en.wikipedia.org/wiki/Marie_Curie,https://www.wikidata.org/wiki/Q937')
Response
{
  "type": "object",
  "fields": {
    "data": "array of biography objects, each containing: name (string or null), birth_date (string YYYY-MM-DD or null), death_date (string YYYY-MM-DD or null), nationality (string or null), profession (string or null), summary (string), notable_events (array of {topic: string, text: string})"
  },
  "sample": {
    "data": [
      {
        "name": null,
        "summary": "Maria Salomea Sklodowska Curie was a Polish and naturalised-French physicist and chemist...",
        "birth_date": "1867-11-07",
        "death_date": "1934-07-04",
        "profession": "physicist, chemist, university teacher",
        "nationality": "Second Polish Republic, France, Russian Empire",
        "notable_events": [
          {
            "text": "Maria Salomea Sklodowska Curie...",
            "topic": "Introduction"
          },
          {
            "text": "Maria Salomea Sklodowska was born in Warsaw...",
            "topic": "Early years"
          }
        ]
      }
    ],
    "status": "success"
  }
}

About the query.wikidata.org API

The Wikidata & Wikipedia Biography API exposes 3 endpoints for retrieving structured biographical data on any notable person. Use search_person to look up someone by name, get_person_details to fetch by Wikidata QID, or extract_biography to pull data from one or more Wikipedia or Wikidata URLs in a single call. Each response combines structured facts — birth and death dates, nationality, profession — with narrative life events grouped by topic.

What the API Returns

Every biography response includes a name, ISO-formatted birth_date and death_date (both nullable), profession as a comma-separated string of roles, nationality as a comma-separated string of countries, a summary paragraph, and a notable_events array. Each element in notable_events has a topic label (e.g., "Early life", "Scientific work") and a text block drawn from the corresponding Wikipedia article section.

Endpoints

search_person takes a name string — "Marie Curie", "Albert Einstein" — and returns the full biography object for the best-matching Wikidata entity. get_person_details accepts a Wikidata QID directly (e.g., Q937 for Einstein) and is useful when you already know the canonical entity identifier and want deterministic results. extract_biography accepts a comma-separated urls parameter with any mix of Wikipedia article URLs and Wikidata entity URLs, returning an array of biography objects in the same order; non-biographical or inaccessible URLs return an empty object {}.

Data Shape and Coverage

Dates are returned in YYYY-MM-DD format where available, and fields are null when the source lacks the value — the response shape is consistent regardless of how complete the underlying data is. The notable_events array length varies by subject; well-documented figures may return a dozen or more topic sections, while less-covered individuals may return only a few. The API covers only persons; querying organizational or geographic Wikidata entities via extract_biography will return an empty object.

Disambiguation and QID Lookup

When multiple Wikidata entities share a name, search_person resolves to the top-ranked entity match. If you need a specific person who shares a common name with others, use get_person_details with the exact QID to bypass ambiguity. You can find QIDs by searching directly on wikidata.org and reading the entity identifier from the URL.

Common use cases
  • Populating author profile pages with birth dates, nationalities, and professions from search_person
  • Building a knowledge graph of historical figures using get_person_details with known QIDs
  • Batch-enriching a list of Wikipedia URLs with structured biographical facts via extract_biography
  • Generating timeline visualizations from the notable_events array grouped by topic
  • Validating or de-duplicating a people database by cross-referencing Wikidata QIDs
  • Surfacing structured bios in a research tool where users search by name and expect key facts at a glance
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Do Wikidata and Wikipedia offer an official developer API?+
Yes. Wikidata exposes a public SPARQL endpoint at query.wikidata.org and a MediaWiki Action API at wikidata.org/w/api.php. Wikipedia provides its own MediaWiki API at en.wikipedia.org/w/api.php. These require constructing SPARQL queries or MediaWiki API calls directly and merging the results yourself.
What does `extract_biography` return when given a mix of valid and invalid URLs?+
It returns an array with one element per URL in the order submitted. Valid biographical URLs return a full biography object with all fields. URLs that are inaccessible, point to non-person entities, or cannot be resolved return an empty object {}. The array length always matches the number of URLs submitted.
How detailed is the `notable_events` data?+
The notable_events array reflects the section structure of the corresponding Wikipedia article. Each entry has a topic string (the section heading) and a text block. Breadth and depth vary by subject — major historical figures with extensive Wikipedia coverage produce many entries, while individuals with short articles may produce only one or two. There is no filtering parameter to request specific topics; all available sections are returned.
Does the API return images, external links, or Wikipedia categories for a person?+
Not currently. The API covers structured facts (name, dates, profession, nationality), a summary paragraph, and narrative notable_events sections. Fields like images, external links, Wikipedia categories, and related-person links are not part of the response. You can fork this API on Parse and revise it to add those fields from the Wikidata or Wikipedia sources.
Can I retrieve biographical data in languages other than English?+
Not currently. Responses draw from English-language Wikipedia for the summary and notable_events fields, and English Wikidata labels for name, profession, and nationality. Non-English Wikipedia articles are not supported at this time. You can fork this API on Parse and revise it to target a different Wikipedia language edition.
Page content last updated . Spec covers 3 endpoints from query.wikidata.org.
Related APIs in Government PublicSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
maradminbot.com API
Search and retrieve official Marine Corps MARADMIN announcements from Marines.mil, filtering by year, status, and keyword to stay updated on the latest personnel and administrative directives. Get detailed information about specific announcements by number or browse the most recent updates to ensure you never miss critical Marine Corps guidance.
13f.info API
13f.info API
illinoisreportcard.com API
Search and analyze comprehensive performance data for Illinois public schools, districts, and the state, including academic achievements in ELA, math, and science, student demographics, teacher and administrator information, school finances, and environmental conditions. Compare schools side-by-side, track growth metrics, and access accountability ratings and school highlights to make informed decisions about education quality.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.