Resource Lists
Endpoint list
To see the list of available endpoints
from pypokeclient import ENDPOINTS
print(ENDPOINTS)
NamedAPIResourceList
¶
Represent a paginated list of named API resources returned by PokéAPI.
This model represents collection responses containing named resources, with pagination metadata for retrieving additional results.
Attributes:
| Name | Type | Description |
|---|---|---|
count |
int
|
The total number of resources available in the collection. |
next |
str | None
|
The URL of the next page of results, or |
previous |
str | None
|
The URL of the previous page of results, or |
results |
list[NamedAPIResource]
|
The named resources returned on the current page. |
APIResourceList
¶
Represent a paginated list of API resources returned by PokéAPI.
This model represents collection responses containing resources without names, with pagination metadata for retrieving additional results.
Attributes:
| Name | Type | Description |
|---|---|---|
count |
int
|
The total number of resources available in the collection. |
next |
str | None
|
The URL of the next page of results, or |
previous |
str | None
|
The URL of the previous page of results, or |
results |
list[APIResource]
|
The resources returned on the current page. |