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

Get item pocket

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

Pockets within the players bag used for storing items by category.

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
categories
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": "misc",
"categories": [
{
"name": "collectibles",
"url": "https://pokeapi.co/api/v2/item-category/9/"
},
{
"name": "evolution",
"url": "https://pokeapi.co/api/v2/item-category/10/"
}
],
"names": [
{
"name": "Items",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
]
}