Wikipedia API
Returns Wikipedia article summaries, search results, page views, random articles, categories and language editions.
View as Markdown| GET | /wikipedia/summary | Lead summary, description and thumbnail of one article. |
| GET | /wikipedia/search | Articles that match a search in one Wikipedia language, 20 per page. |
| GET | /wikipedia/pageviews | Daily page views of one article by people (not bots) over the last days, up to 90. |
| GET | /wikipedia/random | Summary of a random article. |
| GET | /wikipedia/categories | Visible categories of one article. |
| GET | /wikipedia/languages | The same article in other language editions of Wikipedia. |
| GET | /wikipedia/mostRead | The most-read articles of one Wikipedia day, with view counts. |
| GET | /wikipedia/onThisDay | Events of one calendar day in history, with the articles about them. |
| GET | /wikipedia/nearby | Wikipedia articles about places near a latitude and longitude, nearest first, within a radius of up to 10 km. |
| GET | /wikipedia/backlinks | Articles of one Wikipedia language that link to an article, 20 per page. |
summary
/v1/wikipedia/summaryLead summary, description and thumbnail of one article.
Parameters
titlestring required | Article title, or a <lang>.wikipedia.org/wiki/<title> URL. e.g. Indonesia |
langstring | Wikipedia language code, such as en or de. A URL sets it. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
description | string |
extract | string |
lang | string |
lastModified | string |
pageId | string |
thumbnail | Image | null |
height | any |
url | string |
width | any |
title | string |
type | string |
url | string |
curl "https://api.hoshime.com/v1/wikipedia/summary?title=Indonesia" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/summary?title=Indonesia", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/summary?title=Indonesia", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "Country in Southeast Asia and Oceania", "extract": "Indonesia, officially the Republic of Indonesia, is a country in Southeast Asia and Oceania, between the Indian and Pacific oceans. Comprisi…", "lang": "en", "lastModified": "2026-11-06T13:23:17Z", "pageId": "14579", "thumbnail": { "height": 220, "url": "https://thumb.wikimedia.org/wikipedia/commons/thumb/9/9f/Flag_of_Indonesia.svg/330px-Flag_of_Indonesia.svg.png?utm_source=en.wikipedia.org&u…", "width": 330 }, "title": "Indonesia", "type": "standard", "url": "https://en.wikipedia.org/wiki/Indonesia" }, "meta": { "cached": false, "endpoint": "summary", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
/v1/wikipedia/searchArticles that match a search in one Wikipedia language, 20 per page.
Parameters
querystring required | Search terms. e.g. Indonesia |
langstring | Wikipedia language code, such as en or de. default en |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
lastModified | string |
pageId | string |
snippet | string |
title | string |
url | string |
wordCount | integer (int64) |
curl "https://api.hoshime.com/v1/wikipedia/search?query=Indonesia" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/search?query=Indonesia", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/search?query=Indonesia", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "lastModified": "2026-11-06T13:23:17Z", "pageId": "14579", "snippet": "Indonesia, officially the Republic of Indonesia, is a country in Southeast Asia and Oceania, between the Indian and Pacific oceans. Comprisi…", "title": "Indonesia", "url": "https://en.wikipedia.org/wiki/Indonesia", "wordCount": 20959 }, { "lastModified": "2026-11-05T15:09:12Z", "pageId": "66906", "snippet": "The Indonesian National Revolution (Indonesian: Revolusi Nasional Indonesia), also known as the Indonesian War of Independence, was an armed…", "title": "Indonesian National Revolution", "url": "https://en.wikipedia.org/wiki/Indonesian_National_Revolution", "wordCount": 11323 } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
pageviews
/v1/wikipedia/pageviewsDaily page views of one article by people (not bots) over the last days, up to 90.
Parameters
articlestring required | Article title, or a <lang>.wikipedia.org/wiki/<title> URL. e.g. Indonesia |
langstring | Wikipedia language code, such as en or de. A URL sets it. default en |
daysinteger | Days to count back from the last complete day. Ignored when from or to is set. default 30 |
fromstring | First day of the range as YYYY-MM-DD, from 2015-07-01. Overrides days. |
tostring | Last day of the range as YYYY-MM-DD. Default: the last complete day. Overrides days. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
daily | Day[] |
date | string |
views | integer (int64) |
from | string |
lang | string |
title | string |
to | string |
total | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/wikipedia/pageviews?article=Indonesia" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/pageviews?article=Indonesia", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/pageviews?article=Indonesia", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "daily": [ { "date": "2026-10-07", "views": 7052 }, { "date": "2026-10-08", "views": 7066 } ], "from": "2026-10-07", "lang": "en", "title": "Indonesia", "to": "2026-11-05", "total": 223932, "url": "https://en.wikipedia.org/wiki/Indonesia" }, "meta": { "cached": false, "endpoint": "pageviews", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
random
/v1/wikipedia/randomSummary of a random article.
Parameters
langstring | Wikipedia language code, such as en or de. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
description | string |
extract | string |
lang | string |
lastModified | string |
pageId | string |
thumbnail | Image | null |
height | any |
url | string |
width | any |
title | string |
type | string |
url | string |
curl "https://api.hoshime.com/v1/wikipedia/random" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/random", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/random", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "Species of fungus", "extract": "Conocybe subpallida is a species of mushroom-producing fungus in the family Bolbitiaceae.", "lang": "en", "lastModified": "2025-05-28T03:33:41Z", "pageId": "76462414", "thumbnail": { "height": 270, "url": "https://thumb.wikimedia.org/wikipedia/commons/thumb/c/ce/Conocybe_subpallida_Enderle_2332469363_%28cropped%29.jpg/330px-Conocybe_subpallida_…", "width": 330 }, "title": "Conocybe subpallida", "type": "standard", "url": "https://en.wikipedia.org/wiki/Conocybe_subpallida" }, "meta": { "cached": false, "endpoint": "random", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
categories
/v1/wikipedia/categoriesVisible categories of one article.
Parameters
titlestring required | Article title, or a <lang>.wikipedia.org/wiki/<title> URL. e.g. Go (programming language) |
langstring | Wikipedia language code, such as en or de. A URL sets it. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
items | Category[] |
title | string |
title | string |
curl "https://api.hoshime.com/v1/wikipedia/categories?title=Go+%28programming+language%29" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/categories?title=Go+%28programming+language%29", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/categories?title=Go+%28programming+language%29", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "title": "Category:American inventions" }, { "title": "Category:C programming language family" } ], "title": "Go (programming language)" }, "meta": { "cached": false, "endpoint": "categories", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
languages
/v1/wikipedia/languagesThe same article in other language editions of Wikipedia.
Parameters
titlestring required | Article title, or a <lang>.wikipedia.org/wiki/<title> URL. e.g. Indonesia |
langstring | Wikipedia language code of the title, such as en or de. A URL sets it. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
items | LangLink[] |
lang | string |
title | string |
url | string |
title | string |
curl "https://api.hoshime.com/v1/wikipedia/languages?title=Indonesia" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/languages?title=Indonesia", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/languages?title=Indonesia", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "lang": "…", "title": "…", "url": "https://…" } ], "title": "…" }, "meta": { "cached": false, "endpoint": "languages", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
mostRead
/v1/wikipedia/mostReadThe most-read articles of one Wikipedia day, with view counts.
Parameters
datestring | Day as YYYY-MM-DD, from 2015-01-01. Default: yesterday (UTC). e.g. 2025-06-01 |
langstring | Wikipedia language code, such as en or de. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
date | string |
items | ReadArticle[] |
extract | string |
rank | integer (int64) |
title | string |
url | string |
views | integer (int64) |
lang | string |
curl "https://api.hoshime.com/v1/wikipedia/mostRead?date=2025-06-01" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/mostRead?date=2025-06-01", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/mostRead?date=2025-06-01", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "date": "…", "items": [ { "extract": "…", "rank": 0, "title": "…", "url": "https://…", "views": 0 } ], "lang": "…" }, "meta": { "cached": false, "endpoint": "mostRead", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
onThisDay
/v1/wikipedia/onThisDayEvents of one calendar day in history, with the articles about them.
Parameters
datestring | Day as YYYY-MM-DD; only the month and day matter. Default: yesterday (UTC). e.g. 2025-06-01 |
langstring | Wikipedia language code, such as en or de. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
date | string |
items | Event[] |
pages | RelatedArticle[] |
description | string |
extract | string |
pageId | string |
thumbnail | Image | null |
title | string |
url | string |
text | string |
year | integer (int64) |
lang | string |
curl "https://api.hoshime.com/v1/wikipedia/onThisDay?date=2025-06-01" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/onThisDay?date=2025-06-01", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/onThisDay?date=2025-06-01", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "date": "…", "items": [ { "pages": [], "text": "…", "year": 0 } ], "lang": "…" }, "meta": { "cached": false, "endpoint": "onThisDay", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
nearby
/v1/wikipedia/nearbyWikipedia articles about places near a latitude and longitude, nearest first, within a radius of up to 10 km.
Parameters
latstring required | Latitude in degrees, from -90 to 90, such as -6.2. e.g. -6.2 |
lonstring required | Longitude in degrees, from -180 to 180, such as 106.8. e.g. 106.8 |
radiusinteger | Radius in metres, from 10 to 10000. default 1000 |
limitinteger | Articles to return, from 1 to 50. default 20 |
langstring | Wikipedia language code, such as en or de. default en |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
distanceMetres | number (double) |
latitude | number (double) |
longitude | number (double) |
pageId | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wikipedia/nearby?lat=-6.2&lon=106.8" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/nearby?lat=-6.2&lon=106.8", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/nearby?lat=-6.2&lon=106.8", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "distanceMetres": 0, "latitude": 0, "longitude": 0, "pageId": "abc123", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "nearby", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }
backlinks
/v1/wikipedia/backlinksArticles of one Wikipedia language that link to an article, 20 per page.
Parameters
titlestring required | Article title, or a <lang>.wikipedia.org/wiki/<title> URL. e.g. Indonesia |
langstring | Wikipedia language code, such as en or de. A URL sets it. default en |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
pageId | string |
redirect | boolean |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wikipedia/backlinks?title=Indonesia" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikipedia/backlinks?title=Indonesia", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikipedia/backlinks?title=Indonesia", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "pageId": "abc123", "redirect": false, "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "backlinks", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikipedia", "requestId": "req_2Xb9kQ…", "units": 1 } }