Skip to content

Get item category

GET
/api/v2/item-category/{id}/
const url = 'https://pokeapi.co/api/v2/item-category/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 categories determine where items will be placed in the players bag.

id
required
string

This parameter can be a string or an integer.

Examples

Example1
Terminal window
1
Media typeapplication/json
object
id
required

The identifier for this resource.

integer
name
required

The name for this resource.

string
<= 200 characters
items
required

A list of items that are a part of this category.

Array<object>
object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
names
required

The name of this item category listed in different languages.

Array<object>
object
name
required

The localized name for an API resource in a specific language.

string
<= 200 characters
language
required

The language this name is in.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
pocket
required

The pocket items in this category would be put in.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri

Example

Terminal window
{
"id": 1,
"name": "stat-boosts",
"items": [
{
"name": "guard-spec",
"url": "https://pokeapi.co/api/v2/item/55/"
},
{
"name": "dire-hit",
"url": "https://pokeapi.co/api/v2/item/56/"
}
],
"names": [
{
"name": "Stat boosts",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
],
"pocket": {
"name": "battle",
"url": "https://pokeapi.co/api/v2/item-pocket/7/"
}
}