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 Transforms API

convert content between HTML and Wikitext

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

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

This API exposes 9 operations across 9 paths, and defines 1 schema. It is described by OpenAPI 3.0.1, at version 1.0.0.

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

9 operations 9 paths 1 schemas 9 POST

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 9

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

Transforms 9

convert content between HTML and Wikitext

POST
/transform/html/to/wikitext
Transform HTML to Wikitext
1 param body → 200403404409410default
POST
/transform/html/to/wikitext/{title}
Transform HTML to Wikitext
2 params body → 200403404409410default
POST
/transform/html/to/wikitext/{title}/{revision}
Transform HTML to Wikitext
3 params body → 200403404409410default
POST
/transform/wikitext/to/html
Transform Wikitext to HTML
body → 200403404409410default
POST
/transform/wikitext/to/html/{title}
Transform Wikitext to HTML
1 param body → 200403404409410default
POST
/transform/wikitext/to/html/{title}/{revision}
Transform Wikitext to HTML
2 params body → 200403404409410default
POST
/transform/wikitext/to/lint
Check Wikitext for lint errors
body → 200404409410default
POST
/transform/wikitext/to/lint/{title}
Check Wikitext for lint errors
1 param body → 200404409410default
POST
/transform/wikitext/to/lint/{title}/{revision}
Check Wikitext for lint errors
2 params body → 200404409410default

Schemas 1

The contract defines 1 schema that model the data the API accepts and returns. The most detailed is problem (4 properties). Each schema is shown below with its type and property counts.

problem
object
4 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

wikisource-transforms-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 Page content API
Wikisource Reading lists API
Wikisource Recommendation API