The unofficial Pokemon Go API (while it lasts).
npm install pokemon-go-api --save
.login(username, password, type)
username
- the username of the accountpassword
- the password of the accounttype
- a string that's eithergoogle
orpokemon-club
.location.set('address', address)
address
- the street address as a string
.location.set('coordinates', latitude, longitude)
latitude
- the latitude floatlongitude
- the longitude float
.getPlayerEndpoint()
.profile.get()
.inventory.get()
.mapData.getNearby()
.mapData.getByAddress(address)
address
- the street address as a string
.mapData.getByCoordinates(latitude, longitude)
latitude
- the latitude floatlongitude
- the longitude float
For a working set of code examples, visit the Examples section of the repository.
This package is made possible thanks to: