Skip to content
Announcement: An API update is available. Check the documentation for details.

Get item attribute

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

Example
Terminal window
1
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
<= 200 characters
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
{
"id": 1,
"name": "countable",
"descriptions": [
{
"description": "Has a count in the bag",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
],
"items": [
{
"name": "master-ball",
"url": "https://pokeapi.co/api/v2/item/1/"
},
{
"name": "ultra-ball",
"url": "https://pokeapi.co/api/v2/item/2/"
}
],
"names": [
{
"name": "Countable",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
]
}