Skip to content

Get API metadata

GET
/api/v2/meta/
const url = 'https://pokeapi.co/api/v2/meta/';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}

Returns metadata about the current deployed version of the API, including the git commit hash, deploy date, and tag (if any).

Media typeapplication/json
object
deploy_date
required

The deployment time as a Unix timestamp string.

string | null
hash
required

The source commit hash used for this deployment.

string | null
tag
required

The deployment tag, or null if the deployment has no tag.

string | null

Example

Terminal window
{
"deploy_date": "1795441227",
"hash": "de6760be38b60a3024f1d9054330ff265f0dc619",
"tag": null
}