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

Get pokemon encounter

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

Handles Pokemon Encounters as a sub-resource.

pokemon_id
required
string
/^\d+$/
Example
Terminal window
1
Media typeapplication/json
Array<object>
object
location_area
required
object
name
required
string
<= 200 characters
url
required
string format: uri
version_details
required
Array<object>
object
version
required
object
name
required
string
<= 200 characters
url
required
string format: uri
max_chance
required
integer
encounter_details
required
Array<object>
object
chance
required
integer
condition_values
required
Array<object>
object
name
required
string
<= 200 characters
url
required
string format: uri
max_level
required
integer
method
required
object
name
required
string
<= 200 characters
url
required
string format: uri
min_level
required
integer
Example
Terminal window
[
{
"location_area": {
"name": "cerulean-city-area",
"url": "https://pokeapi.co/api/v2/location-area/281/"
},
"version_details": [
{
"version": {
"name": "yellow",
"url": "https://pokeapi.co/api/v2/version/3/"
},
"max_chance": 100,
"encounter_details": [
{
"min_level": 10,
"max_level": 10,
"chance": 100,
"method": {
"name": "gift",
"url": "https://pokeapi.co/api/v2/encounter-method/18/"
},
"condition_values": [],
"pokemon_details": null
}
]
},
{
"version": {
"name": "lets-go-pikachu",
"url": "https://pokeapi.co/api/v2/version/31/"
},
"max_chance": 100,
"encounter_details": [
{
"min_level": 12,
"max_level": 12,
"chance": 100,
"method": {
"name": "gift",
"url": "https://pokeapi.co/api/v2/encounter-method/18/"
},
"condition_values": [],
"pokemon_details": null
}
]
}
]
},
{
"location_area": {
"name": "pallet-town-area",
"url": "https://pokeapi.co/api/v2/location-area/285/"
},
"version_details": [
{
"version": {
"name": "red",
"url": "https://pokeapi.co/api/v2/version/1/"
},
"max_chance": 100,
"encounter_details": [
{
"min_level": 5,
"max_level": 5,
"chance": 100,
"method": {
"name": "gift",
"url": "https://pokeapi.co/api/v2/encounter-method/18/"
},
"condition_values": [],
"pokemon_details": null
}
]
},
{
"version": {
"name": "blue",
"url": "https://pokeapi.co/api/v2/version/2/"
},
"max_chance": 100,
"encounter_details": [
{
"min_level": 5,
"max_level": 5,
"chance": 100,
"method": {
"name": "gift",
"url": "https://pokeapi.co/api/v2/encounter-method/18/"
},
"condition_values": [],
"pokemon_details": null
}
]
}
]
}
]