Skip to content

udayvirsingh/pokemongo-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

206 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pokemongo-api Travis Commitizen friendly

Pokemon Go API for nodejs

Query the Pokemon database for what you want.. This library covers all functions available in the api through Call() We are also working on porting 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

Player Object

{
  accessToken
  username
  password
  debug
  latitude
  longitude
  altitude
  provider
  sessionData
}

Available functions

player.provider()
player.profileDetails()
player.location()
player.location()
player.profile()
player.createdDate()
player.pokeStorage()
player.itemsStorage()
player.currency()
player.Login()
player.walkAround()
player.walkToPoint()
player.hatchedEggs()
player.levelUpRewards()
player.checkAwardBadges()
player.collectDailyBonus()
player.collectDailyBonus()
player.settings()
player.itemTemplates()
player.remoteConfigVersion()
player.remoteConfigVersion()

Available functions (more to come)

Pokemon object

{
  id
  pokemon_id
  cp
  stamina
  stamina_max
  move_1
  move_2
  deployed_fort_id
  owner_name
  is_egg
  egg_km_walked_target
  egg_km_walked_start
  origin
  height_m
  weight_kg
  individual_attack
  individual_defense
  individual_stamina
  cp_multiplier
  pokeball
  captured_cell_id
  battles_attacked
  battles_defended
  egg_incubator_id
  creation_time_ms
  num_upgrades
  additional_cp_multiplier
  favorite
  nickname
  from_fort
}

Available functions

pokemon.encounter()
pokemon.catch()
pokemon.encounterAndCatch()
pokemon.release()
pokemon.envolve()
pokemon.upgrade()
pokemon.setFavorite()
pokemon.nickname()

Fort object (Checkpoint and Gym)

{
  fort_id
  team_color
  pokemon_data
  name
  image_urls
  fp
  stamina
  max_stamina
  type
  latitude
  longitude
  description
  modifiers
}

Available functions

fort.isCheckpoint
fort.isGym
fort.search()
fort.recallPokemon(Pokemon Object)
fort.deployPokemon(Pokemon Object)
fort.details()
fort.addModifier()

Poke.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}
  }
}

Poke.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}

  }

About

Pokemon Go API for nodejs

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Protocol Buffer 70.5%
  • JavaScript 29.5%