Skip to content

List berries

GET
/api/v2/berry/
const url = 'https://pokeapi.co/api/v2/berry/';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}

Berries are small fruits that can provide HP and status condition restoration, stat enhancement, and even damage negation when eaten by Pokémon. Check out Bulbapedia for greater detail.

limit
integer

Number of results to return per page.

offset
integer

The initial index from which to return the results.

q
string

Only available locally and not at pokeapi.co Case-insensitive query applied on the name property.

Media typeapplication/json
object
count
required

The total number of resources available from this API.

integer
next

The URL for the next page in the list, or null if there is no next page.

string | null format: uri
previous

The URL for the previous page in the list, or null if there is no previous page.

string | null format: uri
results
required

A list of API resources on this page.

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

Example

Terminal window
{
"count": 68,
"next": "https://pokeapi.co/api/v2/berry/?offset=2&limit=2",
"previous": null,
"results": [
{
"name": "cheri",
"url": "https://pokeapi.co/api/v2/berry/1/"
},
{
"name": "chesto",
"url": "https://pokeapi.co/api/v2/berry/2/"
}
]
}