Skip to content

Get contest type

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

Contest types are categories judges used to weigh a Pokémon’s condition in Pokémon contests. 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
berry_flavor
required

The berry flavor that correlates with this contest type.

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 contest type listed in different languages.

Array<object>
object
name
required

The name for this contest.

string
<= 200 characters
color
required

The color associated with this contest’s name.

string
<= 10 characters
language
required

The language that 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": "cool",
"berry_flavor": {
"name": "spicy",
"url": "https://pokeapi.co/api/v2/berry-flavor/1/"
},
"names": [
{
"name": "Cool",
"color": "Red",
"language": {
"name": "en",
"url": "https://pokeapi.co/api/v2/language/9/"
}
}
]
}