Skip to content

Wikisource API

6 endpointsSearch & KnowledgeGlobalsocial:read1 real examples

Returns Wikisource pages by search, with summaries, sections, page lists, categories and random pages.

View as Markdown
GET/wikisource/searchPages of Wikisource whose text matches a search, 10 per page.
GET/wikisource/summaryShort description and lead text of one Wikisource page.
GET/wikisource/sectionsThe sections of one Wikisource page, in reading order, with their level and anchor.
GET/wikisource/pagesPage titles of the main namespace in alphabetical order, 50 per page.
GET/wikisource/categoriesThe visible categories of one Wikisource page.
GET/wikisource/randomRandom pages of the main namespace, 1 to 10 at a time. Each call returns new ones, so it is not cached.

summary

GET/v1/wikisource/summary

Short description and lead text of one Wikisource page.

scope social:read1 unitcached 6 h

Parameters

title
string
required
Page title, or a <lang>.wikisource.org/wiki/<title> URL.
e.g. Hamlet
lang
string
Language code of the edition. A URL sets it.
default en
tunnel
string
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.
proxy
string
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.
profileId
string
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
descriptionstring
extractstring
langstring
pageIdstring
titlestring
urlstring
curl "https://api.hoshime.com/v1/wikisource/summary?title=Hamlet" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "description": "Wikimedia disambiguation page",
    "extract": "",
    "lang": "en",
    "pageId": "16170",
    "title": "Hamlet",
    "url": "https://en.wikisource.org/wiki/Hamlet"
  },
  "meta": {
    "cached": false,
    "endpoint": "summary",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "wikisource",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

sections

GET/v1/wikisource/sections

The sections of one Wikisource page, in reading order, with their level and anchor.

scope social:read1 unitcached 6 hpaginated

Parameters

title
string
required
Page title, or a <lang>.wikisource.org/wiki/<title> URL.
e.g. Hamlet
lang
string
Language code of the edition. A URL sets it.
default en
tunnel
string
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.
proxy
string
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.
profileId
string
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
anchorstring
levelinteger (int64)
numberstring
titlestring
curl "https://api.hoshime.com/v1/wikisource/sections?title=Hamlet" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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": "wikisource",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

pages

GET/v1/wikisource/pages

Page titles of the main namespace in alphabetical order, 50 per page.

scope social:read1 unitcached 1 hpaginated

Parameters

lang
string
Language code of the edition, such as en or de.
default en
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
pageIdstring
snippetstring
titlestring
urlstring
curl "https://api.hoshime.com/v1/wikisource/pages" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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": "wikisource",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

categories

GET/v1/wikisource/categories

The visible categories of one Wikisource page.

scope social:read1 unitcached 6 h

Parameters

title
string
required
Page title, or a <lang>.wikisource.org/wiki/<title> URL.
e.g. Hamlet
lang
string
Language code of the edition. A URL sets it.
default en
tunnel
string
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.
proxy
string
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.
profileId
string
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
itemsCategory[]
titlestring
urlstring
titlestring
curl "https://api.hoshime.com/v1/wikisource/categories?title=Hamlet" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "items": [
      {
        "title": "…",
        "url": "https://…"
      }
    ],
    "title": "…"
  },
  "meta": {
    "cached": false,
    "endpoint": "categories",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "wikisource",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

random

GET/v1/wikisource/random

Random 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

limit
integer
Items per page, 1 to 10.
default 1
lang
string
Language code of the edition, such as en or de.
default en
tunnel
string
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.
proxy
string
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.
profileId
string
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
pageIdstring
snippetstring
titlestring
urlstring
curl "https://api.hoshime.com/v1/wikisource/random" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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": "wikisource",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open