Skip to content

Get pal park area

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

Areas used for grouping Pokémon encounters in Pal Park. They’re like habitats that are specific to Pal Park.

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

A list of Pokémon encountered in thi pal park area along with details.

Array<object>
object
base_score

The base score given to the player when this Pokémon is caught during a pal park run.

integer | null
<= 32767
rate
required

The base rate for encountering this Pokémon in this pal park area.

integer
<= 32767
pokemon_species
required

The Pokémon species being encountered.

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": "forest",
"names": [
{
"name": "Forest",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
],
"pokemon_encounters": [
{
"base_score": 30,
"rate": 50,
"pokemon_species": {
"name": "caterpie",
"url": "https://pokeapi.co/api/v2/pokemon-species/10/"
}
},
{
"base_score": 50,
"rate": 30,
"pokemon_species": {
"name": "metapod",
"url": "https://pokeapi.co/api/v2/pokemon-species/11/"
}
}
]
}