知
Wikiquote API
7 endpointsSearch & KnowledgeGlobalsocial:read1 real examples
Returns Wikiquote pages by search, with summaries, sections, page lists, categories and random pages.
View as Markdown| GET | /wikiquote/search | Pages of Wikiquote whose text matches a search, 10 per page. |
| GET | /wikiquote/summary | Short description and lead text of one Wikiquote page. |
| GET | /wikiquote/sections | The sections of one Wikiquote page, in reading order, with their level and anchor. |
| GET | /wikiquote/quotes | The quotes of one Wikiquote page, in reading order, each with the heading of its section. Page with cursor. |
| GET | /wikiquote/pages | Page titles of the main namespace in alphabetical order, 50 per page. |
| GET | /wikiquote/categories | The visible categories of one Wikiquote page. |
| GET | /wikiquote/random | Random pages of the main namespace, 1 to 10 at a time. Each call returns new ones, so it is not cached. |
search
GET
/v1/wikiquote/searchPages of Wikiquote whose text matches a search, 10 per page.
scope social:read1 unitcached 30 minpaginated
Parameters
querystring required | Words to search for, such as Einstein. e.g. Einstein |
langstring | Language code of the edition, 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
4 fields
pageId | string |
snippet | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wikiquote/search?query=Einstein" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikiquote/search?query=Einstein", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikiquote/search?query=Einstein", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "pageId": "2", "snippet": "Albert Einstein (14 March 1879 – 18 April 1955) was a Jewish German theoretical physicist, widely acknowledged to be one of the greatest phy…", "title": "Albert Einstein", "url": "https://en.wikiquote.org/wiki/Albert_Einstein" }, { "pageId": "177844", "snippet": "The Bohr–Einstein debates were a series of public disputes about quantum mechanics between Albert Einstein and Niels Bohr. The debates start…", "title": "Bohr–Einstein debates", "url": "https://en.wikiquote.org/wiki/Bohr%E2%80%93Einstein_debates" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikiquote", "requestId": "req_2Xb9kQ…", "units": 1 } }
summary
GET
/v1/wikiquote/summaryShort description and lead text of one Wikiquote page.
scope social:read1 unitcached 6 h
Parameters
titlestring required | Page title, or a <lang>.wikiquote.org/wiki/<title> URL. e.g. Albert Einstein |
langstring | Language code of the edition. 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
6 fields
description | string |
extract | string |
lang | string |
pageId | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wikiquote/summary?title=Albert+Einstein" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikiquote/summary?title=Albert+Einstein", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikiquote/summary?title=Albert+Einstein", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "…", "extract": "…", "lang": "…", "pageId": "abc123", "title": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "summary", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikiquote", "requestId": "req_2Xb9kQ…", "units": 1 } }
sections
GET
/v1/wikiquote/sectionsThe sections of one Wikiquote page, in reading order, with their level and anchor.
scope social:read1 unitcached 6 hpaginated
Parameters
titlestring required | Page title, or a <lang>.wikiquote.org/wiki/<title> URL. e.g. Albert Einstein |
langstring | Language code of the edition. 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
4 fields
anchor | string |
level | integer (int64) |
number | string |
title | string |
curl "https://api.hoshime.com/v1/wikiquote/sections?title=Albert+Einstein" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikiquote/sections?title=Albert+Einstein", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikiquote/sections?title=Albert+Einstein", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "anchor": "…", "level": 0, "number": "…", "title": "…" } ], "meta": { "cached": false, "endpoint": "sections", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikiquote", "requestId": "req_2Xb9kQ…", "units": 1 } }
quotes
GET
/v1/wikiquote/quotesThe quotes of one Wikiquote page, in reading order, each with the heading of its section. Page with cursor.
scope social:read1 unitcached 6 hpaginated
Parameters
titlestring required | Page title, or a <lang>.wikiquote.org/wiki/<title> URL. e.g. Albert Einstein |
langstring | Language code of the edition. A URL sets it. default en |
limitinteger | Items per page, 1 to 100. default 20 |
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
2 fields
section | string |
text | string |
curl "https://api.hoshime.com/v1/wikiquote/quotes?title=Albert+Einstein" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikiquote/quotes?title=Albert+Einstein", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikiquote/quotes?title=Albert+Einstein", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "section": "…", "text": "…" } ], "meta": { "cached": false, "endpoint": "quotes", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikiquote", "requestId": "req_2Xb9kQ…", "units": 1 } }
pages
GET
/v1/wikiquote/pagesPage titles of the main namespace in alphabetical order, 50 per page.
scope social:read1 unitcached 1 hpaginated
Parameters
langstring | Language code of the edition, 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
4 fields
pageId | string |
snippet | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wikiquote/pages" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikiquote/pages", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikiquote/pages", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "pageId": "abc123", "snippet": "…", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "pages", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikiquote", "requestId": "req_2Xb9kQ…", "units": 1 } }
categories
GET
/v1/wikiquote/categoriesThe visible categories of one Wikiquote page.
scope social:read1 unitcached 6 h
Parameters
titlestring required | Page title, or a <lang>.wikiquote.org/wiki/<title> URL. e.g. Albert Einstein |
langstring | Language code of the edition. 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
4 fields
items | Category[] |
title | string |
url | string |
title | string |
curl "https://api.hoshime.com/v1/wikiquote/categories?title=Albert+Einstein" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikiquote/categories?title=Albert+Einstein", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wikiquote/categories?title=Albert+Einstein", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "title": "…", "url": "https://…" } ], "title": "…" }, "meta": { "cached": false, "endpoint": "categories", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wikiquote", "requestId": "req_2Xb9kQ…", "units": 1 } }
random
GET
/v1/wikiquote/randomRandom pages of the main namespace, 1 to 10 at a time. Each call returns new ones, so it is not cached.
scope social:read1 unitpaginated
Parameters
limitinteger | Items per page, 1 to 10. default 1 |
langstring | Language code of the edition, 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
4 fields
pageId | string |
snippet | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/wikiquote/random" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wikiquote/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/wikiquote/random", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "pageId": "abc123", "snippet": "…", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "random", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wikiquote", "requestId": "req_2Xb9kQ…", "units": 1 } }