Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Wikisource Page content API

page content in different formats

Wikisource Page content API is one of 10 APIs that Wikisource publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Page content. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 8 operations across 8 paths, and defines 8 schemas. It is described by OpenAPI 3.0.1, at version 1.0.0.

Requests are made against a single base URL, /api/rest_v1.

8 operations 8 paths 8 schemas 8 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
1.0.0
Base URL
https://en.wikisource.org/w/api.php
License
Terms of Service
Resource Areas
1

Paths & Operations 8

Across 8 paths, the API surfaces 8 operations — 8 GET. Each is listed below with its method, path, parameters, and response codes.

Page content 8

page content in different formats

GET
/page/
List page-related API entry points.
→ 200default
GET
/page/title/{title}
Get revision metadata for a title.
1 param → 200301302404default
GET
/page/title/{title}/{revision}
Get revision metadata for a title.
2 params → 200301302404default
GET
/page/html/{title}
Get latest HTML for a title.
4 params → 200301302404default
GET
/page/html/{title}/{revision}
Get HTML for a specific title/revision & optionally timeuuid.
getFormatRevision 5 params → 200301302400403404default
GET
/page/lint/{title}
Get the linter errors for a specific title/revision.
1 param → 200301302400403404default
GET
/page/lint/{title}/{revision}
Get the linter errors for a specific title/revision.
2 params → 200301302400403404default
GET
/page/summary/{title}
Get basic metadata and simplified article introduction.
3 params → 200301302404default

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are summary (13 properties), revisionInfo (12 properties), problem (4 properties), thumbnail (3 properties). Each schema is shown below with its type and property counts.

problem
object
4 properties 1 required
revisionInfo
object
Complete information about the revision
12 properties
originalimage
object
3 properties 3 required
revision
object
Result format for revision items
2 properties 2 required
listing
object
The result format for listings
2 properties 1 required
summary
object
13 properties 4 required
thumbnail
object
3 properties 3 required
titles_set
object
a good example of the differences can be seen in https://en.wikipedia.org/api/restv1/page/summary/IOS13
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

wikisource-page-content-api-openapi.yml Raw ↑

Other APIs Wikisource publishes across the network.

MediaWiki Action API
MediaWiki Core REST API
Wikimedia REST API v1
Wikisource Citation API
Wikisource Math API
Wikisource Mobile API
Wikisource Reading lists API
Wikisource Recommendation API
Wikisource Transforms API