Skip to content
Joddie edited this page Jul 19, 2017 · 2 revisions

Pokemon

Pokemon standard now includes moveset and IVs as of commit oc1b4.

Example:

{
  "type": "pokemon",
    "message": {
        "encounter_id": "0",
        "spawnpoint_id": "0",
        "pokemon_id": 1,
        "latitude": -45.10312534490142,
        "longitude": 40.677737099053275,
        "disappear_time": 1584828794,
        "last_modified_time": 1475033386661,
        "time_until_hidden_ms": 5000,
        "individual_attack": 15,
        "individual_defense": 15,
        "individual_stamina": 15,
        "move_1": 214,
        "move_2": 90,
        "height": 1.0,
        "weight": 1.0,
        "gender": 1
    }
}

Pokestops

Example:

{ 
    "type": "pokestop",
    "message": {
        "pokestop_id": 0,
        "enabled": "True",
        "latitude": 62.790967,
        "longitude":  76.927920,
        "last_modified_time": 1572241600,
        "lure_expiration": 1572241600,
        "active_fort_modifier": 0
    }
}

Gyms

Example:

{ 
    "type": "gyms",
    "message": {
		"gym_id": 0,
		"team_id": 0,
		"guard_pokemon_id": 0,
		"gym_points": 100,
		"enabled": "True",
		"latitude": 62.790967,
		"longitude":  76.927920,
		"last_modified": 1572241600
    }
}

Gym-details Example:

{
	"type": "gym_details",
    "message": {
        "id": "4b432a31c3c247e5b0f7656d09e2c050.11",
        "url": "http://lh3.ggpht.com/yBqXtFfq3nOlZmLc7DbgSIcXcyfvsWfY3VQs_gBziPwjUx7xOfgvucz6uxP_Ri-ianoWFt5mgJ7_zpsa7VNK",
        "name": "Graduate School of Public Health Sculpture",
        "description": "Sculpture on the exterior of the Graduate School of Public Health building.",
        "team": 1,
        "latitude": 40.442506,
        "longitude": -79.957962,
        "pokemon": [{
            "num_upgrades": 0,
            "move_1": 234,
            "move_2": 99,
            "additional_cp_multiplier": 0,
            "iv_defense": 11,
            "weight": 14.138585090637207,
            "pokemon_id": 63,
            "stamina_max": 46,
            "cp_multiplier": 0.39956727623939514,
            "height": 0.7160492539405823,
            "stamina": 46,
            "pokemon_uid": 9278614152997308833,
            "iv_attack": 12,
            "trainer_name": "SportyGator",
            "trainer_level": 18,
            "cp": 138,
            "iv_stamina": 8
        }, {
            "num_upgrades": 0,
            "move_1": 234,
            "move_2": 87,
            "additional_cp_multiplier": 0,
            "iv_defense": 12,
            "weight": 3.51259708404541,
            "pokemon_id": 36,
            "stamina_max": 250,
            "cp_multiplier": 0.6121572852134705,
            "height": 1.4966495037078857,
            "stamina": 250,
            "pokemon_uid": 6103380929145641793,
            "iv_attack": 5,
            "trainer_name": "Meckelangelo",
            "trainer_level": 22,
            "cp": 1353,
            "iv_stamina": 15
        }, {
            "num_upgrades": 9,
            "move_1": 224,
            "move_2": 32,
            "additional_cp_multiplier": 0.06381925195455551,
            "iv_defense": 13,
            "weight": 60.0,
            "pokemon_id": 31,
            "stamina_max": 252,
            "cp_multiplier": 0.5974000096321106,
            "height": 1.0611374378204346,
            "stamina": 252,
            "pokemon_uid": 3580711458547635980,
            "iv_attack": 10,
            "trainer_name": "Plaidflamingo",
            "trainer_level": 23,
            "cp": 1670,
            "iv_stamina": 11
        }]
    }
}

Egg example

Take note that the type for egg is raid because it is collected from the same webhook event from RocketMap as raids are.

{ 
    "type": "raid",
    "message": {
        "gym_id": "gym_id",
        "start": 1499244052,
        "end": 1499246052 ,
        "level": 5,
        "latitude": 12.345678,
        "longitude": 12.345678
    }
}

Raid Example

{ 
    "type": "raid",
    "message": {
        "gym_id": "gym_id",
        "pokemon_id": 200,
        "cp": 12345,
        "move_1": 123,
        "move_2": 123,
        "start": 1499244052,
        "end": 1499246052 ,
        "level": 5,
        "latitude": 12.345678,
        "longitude": 12.345678
    }
}