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 structured-contents API

(Beta) Structured Contents On-demand API

Wikimedia structured-contents API is one of 20 APIs that Wikimedia publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include structured-contents. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, rate-limit docs, and pricing.

This API exposes 2 operations across 1 path, and defines 21 schemas. 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.

2 operations 1 paths 21 schemas 1 GET1 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 structured-contents API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (JWT) (bearerAuth). By default, every request must be authenticated.

Paths & Operations 2

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

structured-contents 2

(Beta) Structured Contents On-demand API

GET
/v2/structured-contents/{name}
4 params → 200401403404422500
POST
/v2/structured-contents/{name}
1 param body → 200401403404422500

Schemas 21

The contract defines 21 schemas that model the data the API accepts and returns. The most detailed are structured-content (18 properties), image (10 properties), version (9 properties), part (8 properties). Each schema is shown below with its type and property counts.

license
object
3 properties
project
object
5 properties
revertrisk
object
2 properties
link
object
3 properties
editor
object
7 properties
referenceneed
object
1 property
citation
object
3 properties
reference
object
7 properties
scores
object
3 properties
structured-content
object
18 properties
part
object
8 properties
maintenance_tags
object
4 properties
table
object
4 properties
entity
object
2 properties
version
object
9 properties
filter
object
2 properties
image
object
10 properties
error
object
2 properties
language
object
4 properties
thumbnail
object
3 properties
referencerisk
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

wikimedia-structured-contents-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