Wikipedia
Article summaries, search and structured facts.
/wikipedia/v1/summary1 creditpage summary: extract, description, thumbnail, coordinates, wikibase QID, urls (lang= any of 360+ editions)
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| title | required | — | Exact article title (case-sensitive first letter aside). |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
/wikipedia/v1/page1 creditfull article: plain-text body + internal links + image list + categories + external links (content=false → structure only)
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| title | required | — | Exact article title (case-sensitive first letter aside). |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
| content = true | optional | — | false (or 0/no) → return article STRUCTURE only (links/images/categories), skip the plain-text body. |
| links_limit = 100 | optional | 1–500 | Max internal links to return (1-500); clamped. |
| images_limit = 50 | optional | 1–200 | Max images to return (1-200); clamped. |
/wikipedia/v1/search1 creditfull-text search → ranked pages (snippet/pageid/wordcount) + totalhits; enrich= adds extract/thumbnail/QID
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| query | required | — | Full-text search query. |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
| limit = 10 | optional | 1–50 | Max results (1-50, default 10); clamped. |
| offset = 0 | optional | 0–10000 | Result offset for pagination (0-10000); page with meta/next_offset. |
| enrich = false | optional | — | If true, hydrate each result with extract + thumbnail + Wikidata QID (extra requests). |
/wikipedia/v1/entity_facts2 creditsWikidata facts for a QID or title: label/description/aliases + resolved human-readable facts{prop:value} + key_facts + identifiers + image/coords
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| id | optional | — | Wikidata QID (e.g. Q937). Supply this OR `title`/`query` to resolve one. |
| title | optional | — | Article/entity title to resolve to a Wikidata QID. Supply this OR `id`. |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
| value_cap = 50 | optional | 1–200 | Max values kept per multi-valued Wikidata property (1-200); clamped. |
/wikipedia/v1/pageviews1 creditdaily/monthly traffic for an article over a date range → series + total + average
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| title | required | — | Article title to pull traffic for. |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
| start | optional | — | Range start date, YYYYMMDD or YYYY-MM-DD. Supply both start AND end, or use `days` instead. |
| end | optional | — | Range end date, YYYYMMDD or YYYY-MM-DD. Supply both start AND end, or use `days` instead. |
| days = 30 | optional | 1–1000 | Look-back window ending today, used when start/end are omitted (1-1000). |
| granularity = daily | optional | daily · monthly | Bucket size. Anything not starting with 'month' is treated as daily. |
| access = all-access | optional | all-access · desktop · mobile-app · mobile-web | Wikimedia Pageviews access channel (passed through to the REST API). |
| agent = all-agents | optional | all-agents · user · spider · automated | Wikimedia Pageviews agent class (passed through to the REST API). |
/wikipedia/v1/autocompletefreetypeahead title suggestions
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| q | required | — | Typeahead prefix to autocomplete. |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
| limit = 10 | optional | 1–50 | Max results (1-50, default 10); clamped. |
/wikipedia/v1/geosearch1 creditWikipedia pages near a coordinate or around a title
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| lat | optional | -90–90 | Latitude. Provide lat+lon, OR `coord`, OR `title` for geosearch. |
| lon | optional | -180–180 | Longitude (pairs with lat). |
| coord | optional | — | 'lat,lon' string — alternative to separate lat/lon params. |
| title | optional | — | Find pages near THIS article's coordinates (alternative to lat/lon/coord). |
| radius = 1000 | optional | 10–10000 | Search radius in metres (10-10000); clamped. |
| limit = 10 | optional | 1–50 | Max results (1-50, default 10); clamped. |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
/wikipedia/v1/on_this_day1 credithistorical events/births/deaths/holidays for a month-day (kind=all|selected|events|births|deaths|holidays)
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| month | optional | 1–12 | Month 1-12 (pair with `day`), OR supply `date` instead. Defaults to today. |
| day | optional | 1–31 | Day-of-month 1-31 (pairs with `month`). |
| date | optional | — | Date whose month-day is used (MM-DD or YYYY-MM-DD). Alternative to month/day. |
| kind = all | optional | all · selected · events · births · deaths · holidays | Which on-this-day category. An unknown value falls back to 'all'. |
| limit = 30 | optional | 1–100 | Max results (1-100, default 30); clamped. |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
/wikipedia/v1/top_articles1 creditmost-viewed articles for a given date (trending)
| Parameter | Allowed / range | Description | |
|---|---|---|---|
| date | optional | — | Day to rank, YYYY-MM-DD or YYYYMMDD. Defaults to yesterday (today lags). |
| limit = 50 | optional | 1–1000 | Max results (1-1000, default 50); clamped. |
| access = all-access | optional | all-access · desktop · mobile-app · mobile-web | Wikimedia Pageviews access channel (passed through to the REST API). |
| include_special = false | optional | — | Keep special pages (Main_Page, Special:Search) in the ranking; default drops them. |
| lang = en | optional | — | Wikipedia language edition code (en, de, fr, ja, … 360+ editions). Default en. |
curl -X POST https://api.reefapi.com/wikipedia/v1/summary \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"title":"Albert Einstein"}'{
"ok": true,
"data": { /* the result */ },
"meta": {
"latency_ms": 240,
"record_count": 12,
"completeness_pct": 100
},
"error": null
}