Metadata Utility Endpoints

Metadata endpoints provide the reference data you’ll need to use the APIs effectively. These utility endpoints return project codes, language identifiers, and namespace mappings. This information helps you build accurate API queries, filter results by project or language, and understand the structure of article responses.

Project Codes Available

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
Select which fields to receive in your response, using JSON dot notation.
filters
array
Optional
Select which projects and languages to 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
Request Body
fields
array
filters
array
application/json
{ "fields": [ "name", "identifier" ], "filters": [ { "field": "identifier", "value": "wiki" } ] }
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" }

Project Code Info

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
Select which fields to receive in your response, using JSON dot notation.
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" ] }
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" }

Languages Available

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
Select which fields to receive in your response, using JSON dot notation.
filters
array
Optional
Select which projects and languages to receive in your response.
Response
  • application/json
    [ { "identifier": "en", "name": "English", "alternate_name": "English", "direction": "ltr" } ]
  • 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" ], "filters": [ { "field": "identifier", "value": "en" } ] }
Response
  • application/json
    [ { "identifier": "en", "name": "English", "alternate_name": "English", "direction": "ltr" } ]
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }

Language Info

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
Select which fields to receive in your response, using JSON dot notation.
Response
  • application/json
    { "identifier": "en", "name": "English", "alternate_name": "English", "direction": "ltr" }
  • 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" ] }
Response
  • application/json
    { "identifier": "en", "name": "English", "alternate_name": "English", "direction": "ltr" }
  • 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" }

Projects Available

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
Select which fields to receive in your response, using JSON dot notation.
filters
array
Optional
Select which projects and languages to receive in your response.
Response
  • application/json
    [ { "identifier": "enwiki", "code": "wiki", "name": "Wikipedia", "url": "https://en.wikipedia.org", "in_language": { "identifier": "en", "name": "English", "alternate_name": "English", "direction": "ltr" } } ]
  • 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" ], "filters": [ { "field": "identifier", "value": "enwiki" } ] }
Response
  • application/json
    [ { "identifier": "enwiki", "code": "wiki", "name": "Wikipedia", "url": "https://en.wikipedia.org", "in_language": { "identifier": "en", "name": "English", "alternate_name": "English", "direction": "ltr" } } ]
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }

Project Info

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
Select which fields to receive in your response, using JSON dot notation.
Response
  • application/json
    { "identifier": "enwiki", "code": "wiki", "name": "Wikipedia", "url": "https://en.wikipedia.org", "in_language": { "identifier": "en", "name": "English", "alternate_name": "English", "direction": "ltr" } }
  • 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" ] }
Response
  • application/json
    { "identifier": "enwiki", "code": "wiki", "name": "Wikipedia", "url": "https://en.wikipedia.org", "in_language": { "identifier": "en", "name": "English", "alternate_name": "English", "direction": "ltr" } }
  • 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" }

Namespaces Available

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

GET https://api.enterprise.wikimedia.com/v2/namespaces
Parameters
Query parameters
fields
array
Optional
Select which fields to receive in your response, using JSON dot notation.
filters
array
Optional
Select which projects and languages to receive in your response.
Response
  • application/json
    [ { "identifier": 0, "name": "Article", "description": "The Article namespace, also known as the main or mainspace, is where a project's primary content resides, whether articles, entries, or main documents depending on the Wikimedia project." } ]
  • 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" ], "filters": [ { "field": "identifier", "value": 0 } ] }
Response
  • application/json
    [ { "identifier": 0, "name": "Article", "description": "The Article namespace, also known as the main or mainspace, is where a project's primary content resides, whether articles, entries, or main documents depending on the Wikimedia project." } ]
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }
  • application/json
    { "message": "string", "status": "integer" }

Namespace Info

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
Select which fields to receive in your response, using JSON dot notation.
Response
  • application/json
    { "identifier": 0, "name": "Article", "description": "The Article namespace, also known as the main or mainspace, is where a project's primary content resides, whether articles, entries, or main documents depending on the Wikimedia project." }
  • 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" ] }
Response
  • application/json
    { "identifier": 0, "name": "Article", "description": "The Article namespace, also known as the main or mainspace, is where a project's primary content resides, whether articles, entries, or main documents depending on the Wikimedia project." }
  • 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" }