Skip to content

Get item attribute

GET
/api/v2/item-attribute/{id}/
const url = 'https://pokeapi.co/api/v2/item-attribute/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);
}

Item attributes define particular aspects of items, e.g.“usable in battle” or “consumable”.

id
required
string

This parameter can be a string or an integer.

Media typeapplication/json
object
id
required
integer
name
required
string
<= 200 characters
descriptions
required
Array<object>
object
description
string
<= 2000 characters
language
required
object
name
required
string
<= 200 characters
url
required
string format: uri
items
required
Array<object>
object
name
required
string
url
required
string format: uri
names
required
Array<object>
object
name
required
string
<= 200 characters
language
required
object
name
required
string
<= 200 characters
url
required
string format: uri
Example
Terminal window
{
"items": [
{
"name": "master-ball",
"url": "https://pokeapi.co/api/v2/item/1/"
}
]
}