Skip to content

Get berries by flavor

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

Flavors determine whether a Pokémon will benefit or suffer from eating a berry based on their nature. Check out Bulbapedia for greater detail.

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
berries
required

A list of the berries with this flavor.

Array<object>
object
potency
required

How powerful the referenced flavor is for this berry.

integer
<= 32767
berry
required

The berry with the referenced flavor.

object
name
required

The name of the referenced resource.

string
<= 200 characters
url
required

The URL of the referenced resource.

string format: uri
contest_type
required

The contest type that correlates with this berry flavor.

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 resource 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

Example

Terminal window
{
"id": 1,
"name": "spicy",
"berries": [
{
"potency": 10,
"berry": {
"name": "cheri",
"url": "https://pokeapi.co/api/v2/berry/1/"
}
},
{
"potency": 10,
"berry": {
"name": "leppa",
"url": "https://pokeapi.co/api/v2/berry/6/"
}
}
],
"contest_type": {
"name": "cool",
"url": "https://pokeapi.co/api/v2/contest-type/1/"
},
"names": [
{
"name": "Spicy",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
]
}