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

Wikimedia Transforms API

convert content between HTML and Wikitext

Wikimedia Transforms API is one of 20 APIs that Wikimedia 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, API documentation, rate-limit docs, and pricing.

This API exposes 10 operations across 10 paths, and defines 1 schema. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, https://api.enterprise.wikimedia.com.

10 operations 10 paths 1 schemas 10 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Base URL
https://en.wikipedia.org/w/api.php
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Wikimedia Transforms API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

Paths & Operations 10

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

Transforms 10

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
POST
/transform/wikitext/to/mobile-html/{title}
Transform Wikitext to Mobile HTML
transformWikitextToMobileHtml 3 params body → 200404default

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

wikimedia-transforms-api-openapi.yml Raw ↑

Other APIs Wikimedia publishes across the network.

MediaWiki REST API
Wikimedia articles API
Wikimedia batches API
Wikimedia Citation API
Wikimedia codes API
Wikimedia languages API
Wikimedia Math API
Wikimedia Mobile API
Wikimedia namespaces API
Wikimedia offline API
Wikimedia Page content API
Wikimedia projects API