Metadata Endpoints Documentation

Metadata endpoints for Wikimedia Enterprise, including project codes, namespaces, and language information.

Available Project Codes (Project Types)

Lists available project codes (types). Includes project code (type) identifier, name and description.

GET https://api.enterprise.wikimedia.com/v2/codes
Parameters
Query parameters
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
    [ { "identifier": "string", "name": "string", "description": "string" } ]
  • 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/codes
Request Body
fields
array
filters
array
application/json
{ "fields": "[\"name\",\"identifier\"]\n", "filters": "[{\"field\": \"identifier\", \"value\": \"wiki\"}]\n" }
Response
  • application/json
    [ { "identifier": "string", "name": "string", "description": "string" } ]
  • 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" }

Single Project Code (Project Type)

Information on a specific project code (type). Includes identifier, name and description.

GET https://api.enterprise.wikimedia.com/v2/codes/{identifier}
Parameters
Path parameters
identifier
string
Required
Identifier of the code.
Query parameters
fields
array
Optional
Allows to select what fields you receive in your response.
Response
  • application/json
    { "identifier": "string", "name": "string", "description": "string" }
  • 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/codes/{identifier}
Parameters
Path parameters
identifier
string
Required
Identifier of the code.
Request Body
fields
array
application/json
{ "fields": "[\"name\",\"identifier\"]\n" }
Response
  • application/json
    { "identifier": "string", "name": "string", "description": "string" }
  • 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" }

Available Languages

Lists of available languages. Includes language identifier, name, direction and other relevant metadata.

GET https://api.enterprise.wikimedia.com/v2/languages
Parameters
Query parameters
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
    [ { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" } ]
  • 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/languages
Request Body
fields
array
filters
array
application/json
{ "fields": "[\"name\",\"identifier\"]\n", "filters": "[{\"field\": \"identifier\",\"value\": \"en\"}]\n" }
Response
  • application/json
    [ { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" } ]
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }

Single Language

Information on specific language. Includes identifier, name, direction and other relevant metadata.

GET https://api.enterprise.wikimedia.com/v2/languages/{identifier}
Parameters
Path parameters
identifier
string
Required
Identifier of the language.
Query parameters
fields
array
Optional
Allows to select what fields you receive in your response.
Response
  • application/json
    { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" }
  • 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/languages/{identifier}
Parameters
Path parameters
identifier
string
Required
Identifier of the language.
Request Body
fields
array
application/json
{ "fields": "[\"name\",\"identifier\"]\n" }
Response
  • application/json
    { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" }
  • 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" }

Available Projects

List of available projects. Includes project identifier, name, language and other relevant metadata.

GET https://api.enterprise.wikimedia.com/v2/projects
Parameters
Query parameters
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
    [ { "identifier": "string", "code": "string", "name": "string", "url": "string", "in_language": { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" } } ]
  • 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/projects
Request Body
fields
array
filters
array
application/json
{ "fields": "[\"name\",\"identifier\"]\n", "filters": "[{\"field\": \"identifier\",\"value\": \"enwiki\"}]\n" }
Response
  • application/json
    [ { "identifier": "string", "code": "string", "name": "string", "url": "string", "in_language": { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" } } ]
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }

Single Project

Information on specific project. Includes identifier, name, language and other relevant metadata.

GET https://api.enterprise.wikimedia.com/v2/projects/{identifier}
Parameters
Path parameters
identifier
string
Required
Project identifier.
Query parameters
fields
array
Optional
Allows to select what fields you receive in your response.
Response
  • application/json
    { "identifier": "string", "code": "string", "name": "string", "url": "string", "in_language": { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" } }
  • 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/projects/{identifier}
Parameters
Path parameters
identifier
string
Required
Project identifier.
Request Body
fields
array
application/json
{ "fields": "[\"name\",\"identifier\"]\n" }
Response
  • application/json
    { "identifier": "string", "code": "string", "name": "string", "url": "string", "in_language": { "identifier": "string", "name": "string", "alternate_name": "string", "direction": "string" } }
  • 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" }

Available Namespaces

List of available namespaces. Includes name, identifier and description.

GET https://api.enterprise.wikimedia.com/v2/namespaces
Parameters
Query parameters
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
    [ { "identifier": "number", "name": "string", "description": "string" } ]
  • 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/namespaces
Request Body
fields
array
filters
array
application/json
{ "fields": "[\"name\",\"identifier\"]\n", "filters": "[{\"field\": \"identifier\",\"value\": 0}]\n" }
Response
  • application/json
    [ { "identifier": "number", "name": "string", "description": "string" } ]
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }

Single Namespace

Information on specific namespace. Includes name, identifier and description.

GET https://api.enterprise.wikimedia.com/v2/namespaces/{identifier}
Parameters
Path parameters
identifier
integer
Required
Namespace identifier.
Query parameters
fields
array
Optional
Allows to select what fields you receive in your response.
Response
  • application/json
    { "identifier": "number", "name": "string", "description": "string" }
  • 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/namespaces/{identifier}
Parameters
Path parameters
identifier
integer
Required
Namespace identifier.
Request Body
fields
array
application/json
{ "fields": "[\"name\",\"identifier\"]\n" }
Response
  • application/json
    { "identifier": "number", "name": "string", "description": "string" }
  • 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" }