Skip to content

Get machine

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

Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is not certain that one specific TM or HM corresponds to a single Machine.

id
required
string

This parameter can be a string or an integer.

Media typeapplication/json
object
id
required
integer
item
required
object
name
required
string
<= 200 characters
url
required
string format: uri
version_group
required
object
name
required
string
<= 200 characters
url
required
string format: uri
move
required
object
name
required
string
<= 200 characters
url
required
string format: uri
Examplegenerated
Terminal window
{
"item": {
"name": "example"
},
"version_group": {
"name": "example"
},
"move": {
"name": "example"
}
}