Skip to content

Get encounter condition

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

Conditions which affect what pokemon might appear in the wild, e.g., day or night.

id
required
string

This parameter can be a string or an integer.

Media typeapplication/json
object
id
required
integer
name
required
string
<= 200 characters
values
required
Array<object>
object
name
required
string
<= 200 characters
url
required
string format: uri
names
required
Array<object>
object
name
required
string
<= 200 characters
language
required
object
name
required
string
<= 200 characters
url
required
string format: uri
Examplegenerated
Terminal window
{
"name": "example"
}