Skip to content

bcbrian/pokemongo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pokemongo-api

Pokemon Go API for nodejs

Query the Pokemon database for what you want.. This library covers all functions available in the api throu Call() We are also working now to port all calls into functions,

Install

npm i -S pokemongo-api

Example

See /example folder

To-Do:

  • Login as pokemon trainer + token
  • Login over google + token
  • API connector
  • Make all calls available in functions
  • Add proxy options to requests
  • Run to pokestops
  • Farm specific area for pokestops
  • Human walking logic
  • Catch Pokemon automatically
  • Drop items when bag is full
  • Scan your inventar for XYZ CP pokemon and release them
  • Pokemon catch filter
  • Hatch eggs
  • Incubate eggs
  • Evolve pokemons
  • Use candy
  • Clean code
  • Fully automate this script

Available functions (more to come)

FortRecallPokemon() //More to come

FortDeployPokemon() //More to come

FortDetails() //More to come

FortSearch() //More to come

CatchPokemon() //More to come

EncounterPokemon() //More to come

ReleasePokemon() //More to come

UseItemPotion() //More to come

GetPlayer()

  • Returns the Player Object.
profile{
  creation_time: {Number}
  username: {String}
  team: {Number}
  tutorial: {Number/Boolean}
  poke_storage: {String}
  item_storage: {String}
  daily_bonus{
    NextCollectTimestampMs: {Number}
    NextDefenderBonusCollectTimestampMs: {Number}
  }
  currency{
    type: {String}
    amount: {Number}
  }
}

GetInventory()

  • Retrives the inventory object.
  inventory_delta{
    pokemon_data : {object}
    item : {object}
    pokedex_entry : {object}
    player_stats : {object}
    player_currency : {object}
    player_camera : {object}
    inventory_upgrades : {object}
    applied_items : {object}
    egg_incubators : {object}
    pokemon_family : {object}

  }

##Player functions

Poke.player.coords()

  • Returns array of coords: [latitude, longitude]

Poke.player.coords()

  • Returns array of coords

Poke.player.profile()

  • Returns player profile

Poke.player.createdDate()

  • Returns account creation date (dddd, MMMM Do YYYY, h:mm:ss a)

Poke.player.pokeStorage()

  • Returns poke storage amount

Poke.player.itemsStorage()

  • Returns items storage amount

Poke.player.currency()

  • Returns currencies

Poke.player.setLocation(location)

  • Sets user location Input:
***location***: (required) Has to be a object of location:
{
  type: 'name',
  name: 'Times Square'
}

OR

{
  type: 'coords',
  latitude: 0,
  longitude: 0,
  altitude: 0,
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published