On-Demand Documentation

The On-demand API will return the most recent live version of any article(s) from any Wikimedia project. Query by name across all projects or from a single language project using Metadata filtering. On-demand returns JSON by default, but if you would prefer a NDJSON response be sure to include the Accept: application/x-ndjson header.

Article Lookup

Most current revision of an article.

GET https://api.enterprise.wikimedia.com/v2/articles/{name}

Most current revision of an article.

Parameters
Path parameters
name
string
Required
Article name.
Query parameters
limit
integer
Optional
Limit of articles to return.
fields
array
Optional
Allows to select what fields you receive in your response.
filters
array
Optional
Allows you to filter the response payload.
Response
  • application/json
    [ { "event": { "identifier": "string", "type": "string", "date_created": "string" }, "additional_entities": "array", "article_body": { "html": "string", "wikitext": "string" }, "categories": "array", "date_modified": "string", "identifier": "integer", "in_language": { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" }, "is_part_of": { "identifier": "string", "code": "string", "name": "string", "url": "string", "in_language": { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" } }, "license": "array", "main_entity": { "identifier": "string", "url": "string" }, "name": "string", "abstract": "string", "namespace": { "identifier": "number", "name": "string", "description": "string" }, "protection": "array", "redirects": "array", "templates": "array", "url": "string", "version": { "comment": "string", "editor": { "date_started": "string", "edit_count": "integer", "groups": "array", "identifier": "integer", "is_anonymous": "boolean", "is_bot": "boolean", "name": "string" }, "identifier": "integer", "is_flagged_stable": "boolean", "is_minor_edit": "boolean", "scores": { "damaging": { "prediction": "boolean", "probability": "object" }, "good_faith": { "prediction": "boolean", "probability": "object" } }, "tags": "array" }, "visibility": { "comment": "boolean", "text": "boolean", "user": "boolean" } } ]
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
POST https://api.enterprise.wikimedia.com/v2/articles/{name}

Most current revision of an article.

Parameters
Path parameters
name
string
Required
Article name.
Request Body
fields
array
filters
array
limit
integer
application/json
{ "fields": "[\"name\",\"identifier\"]\n", "filters": "[{\"field\":\"in_language.identifier\",\"value\":\"en\"}]\n", "limit": 3 }
Response
  • application/json
    [ { "event": { "identifier": "string", "type": "string", "date_created": "string" }, "additional_entities": "array", "article_body": { "html": "string", "wikitext": "string" }, "categories": "array", "date_modified": "string", "identifier": "integer", "in_language": { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" }, "is_part_of": { "identifier": "string", "code": "string", "name": "string", "url": "string", "in_language": { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" } }, "license": "array", "main_entity": { "identifier": "string", "url": "string" }, "name": "string", "abstract": "string", "namespace": { "identifier": "number", "name": "string", "description": "string" }, "protection": "array", "redirects": "array", "templates": "array", "url": "string", "version": { "comment": "string", "editor": { "date_started": "string", "edit_count": "integer", "groups": "array", "identifier": "integer", "is_anonymous": "boolean", "is_bot": "boolean", "name": "string" }, "identifier": "integer", "is_flagged_stable": "boolean", "is_minor_edit": "boolean", "scores": { "damaging": { "prediction": "boolean", "probability": "object" }, "good_faith": { "prediction": "boolean", "probability": "object" } }, "tags": "array" }, "visibility": { "comment": "boolean", "text": "boolean", "user": "boolean" } } ]
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }