Skip to content
v2.0.0

API Reference

Every entity class maps one endpoint of pokeapi.co. Pass the class as the generic parameter of PokeApi.get() and the endpoint is resolved for you:

val pikachu = PokeApi.get<Pokemon>(name = "pikachu")

48 endpoints are wired across 11 groups.

Asking for a class that is not mapped throws UnknownEndpointException.