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

Wiktionary Transform API

Parsoid wikitext ↔ HTML transforms and lint

Wiktionary Transform API is one of 11 APIs that Wiktionary publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 64 JSON Schema definitions.

Tagged areas include Transform. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, authentication docs, rate-limit docs, and 64 JSON Schemas.

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

Requests are made against a single base URL, https://en.wiktionary.org/w/rest.php.

3 operations 3 paths 3 schemas 3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Base URL
https://en.wiktionary.org/w/api.php
Authentication
OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 1

Wiktionary Transform API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 1 scope. By default, every request must be authenticated, though some operations may also be called without credentials.

  • oauth2 — OAuth 2.0 access tokens issued via api.wikimedia.org.

Paths & Operations 3

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

Transform 3

Parsoid wikitext ↔ HTML transforms and lint

POST
/transform/wikitext/to/html/{title}
Wiktionary Transform Wikitext to HTML
transformWikitextToHtml 1 param body → 200403404410
POST
/transform/html/to/wikitext/{title}/{revision}
Wiktionary Transform HTML to Wikitext
transformHtmlToWikitext 3 params body → 200403404410
POST
/transform/wikitext/to/lint/{title}
Wiktionary Transform Wikitext to Lint
transformWikitextToLint 1 param body → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are LintError (4 properties), WikitextTransformRequest (3 properties), HtmlTransformRequest (2 properties). Each schema is shown below with its type and property counts.

HtmlTransformRequest
object
2 properties 1 required
WikitextTransformRequest
object
3 properties 1 required
LintError
object
One Parsoid lint error found in supplied wikitext.
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

wiktionary-transform-api-openapi.yml Raw ↑

Other APIs Wiktionary publishes across the network.

Wiktionary Definition API
Wiktionary ExpandTemplates API
Wiktionary File API
Wiktionary History API
Wiktionary OpenSearch API
Wiktionary Page API
Wiktionary Page Content API
Wiktionary Parse API
Wiktionary Query API
Wiktionary Search API