{"id":1763,"date":"2018-12-26T13:00:07","date_gmt":"2018-12-26T13:00:07","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=1763"},"modified":"2018-12-22T22:42:03","modified_gmt":"2018-12-22T22:42:03","slug":"pokemon-go-api-encounter-data-api","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/1763\/pokemon-go-api-encounter-data-api\/","title":{"rendered":"Pokemon Go API &#8211; Encounter Data API"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1765\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/1763\/pokemon-go-api-encounter-data-api\/pogo_api_encounter_data\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_encounter_data.jpg?fit=800%2C300&amp;ssl=1\" data-orig-size=\"800,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"pogo_api_encounter_data\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_encounter_data.jpg?fit=678%2C254&amp;ssl=1\" class=\"aligncenter size-full wp-image-1765\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_encounter_data.jpg?resize=678%2C254\" alt=\"\" width=\"678\" height=\"254\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_encounter_data.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_encounter_data.jpg?resize=300%2C113&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_encounter_data.jpg?resize=768%2C288&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_encounter_data.jpg?resize=50%2C19&amp;ssl=1 50w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/p>\n<p>This post talks about the newest Pokemon Go API, the Encounter Data API at&nbsp;<a href=\"http:\/\/pogoapi.net\/\" target=\"_blank\" rel=\"noopener\">pogoapi.net<\/a>.<\/p>\n<p><!--more--><\/p>\n<h2>Pokemon Encounter Data<\/h2>\n<p>When encountering a Pokemon there are a number of metrics that influence the catch rate,&nbsp;and what it does during the encounter.<\/p>\n<p>Some of these metrics affect the Pokemon does during the encounter. For example,&nbsp;<code>base_flee_rate<\/code> is the chance that a Pokemon will run from the encounter each turn and&nbsp;<code>base_capture_rate<\/code>&nbsp;is the base rate of capturing the Pokemon.<\/p>\n<p>The <code>attack_probability<\/code> and <code>dodge_probability<\/code> reflect the chance that the Pokemon will attack and dodge respectively. The&nbsp;min_pokemon_action_frequency and max_pokemon_action_frequency are the minimum and maximum time between an action.<\/p>\n<h2>Getting the Pokemon Encounter Data<\/h2>\n<p>This API groups all the information that influences an encounter together.<\/p>\n<h3>GET&nbsp;<code>\/api\/v1\/pokemon_encounter_data.json<\/code><\/h3>\n<p>Returns a JSON array where each element is a dict containing <code>attack_probability<\/code>, <code>base_capture_rate<\/code>, <code>base_flee_rate<\/code>, <code>dodge_probability<\/code>, <code>max_pokemon_action_frequency<\/code>, <code>min_pokemon_action_frequency<\/code>, Pokemon ID, Pokemon name&nbsp;and optionally the form.<\/p>\n<p>The fields <code>attack_probability<\/code>, <code>base_capture_rate<\/code>, <code>base_flee_rate<\/code>, and <code>dodge_probability<\/code> are a value from 0 to 1.&nbsp;0 represents 0% chance of it occurring each turn and 1 represents 100% chance.&nbsp;The fields <code>max_pokemon_action_frequency<\/code>, and <code>min_pokemon_action_frequency<\/code> are in seconds representing the maximum and minimum amount of time between an action.<\/p>\n<h3>Example data<\/h3>\n<pre>[\n    {\n        \"attack_probability\": 0.1,\n        \"base_capture_rate\": 0.2,\n        \"base_flee_rate\": 0.1,\n        \"dodge_probability\": 0.15,\n        \"max_pokemon_action_frequency\": 1.6,\n        \"min_pokemon_action_frequency\": 0.2,\n        \"pokemon_id\": 1,\n        \"pokemon_name\": \"Bulbasaur\"\n    },\n    {\n        \"attack_probability\": 0.1,\n        \"base_capture_rate\": 0.1,\n        \"base_flee_rate\": 0.07,\n        \"dodge_probability\": 0.15,\n        \"max_pokemon_action_frequency\": 1.6,\n        \"min_pokemon_action_frequency\": 0.2,\n        \"pokemon_id\": 2,\n        \"pokemon_name\": \"Ivysaur\"\n    }, ...\n]<\/pre>\n<p>The full documentation&nbsp;is available on the&nbsp;<a href=\"https:\/\/pogoapi.net\/documentation\/\" target=\"_blank\" rel=\"noopener\">PoGoAPI.net documentation&nbsp;page<\/a>.<\/p>\n<p>If you have any questions about this API or suggestions for other API\u2019s contact me here below or on Twitter!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post talks about the newest Pokemon Go API, the Encounter Data API at&nbsp;pogoapi.net.<\/p>\n","protected":false},"author":1,"featured_media":1771,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Today I am talking about another #PokemonGo #API, the Encounter Data API #OpenData","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[98],"tags":[226,227,224,223,218,225],"class_list":["post-1763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-api","tag-open-data","tag-pogoapi","tag-pokemon","tag-pokemon-go","tag-pokemon-go-api"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_encounter_data-1.jpg?fit=800%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-sr","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1811,"url":"https:\/\/chewett.co.uk\/blog\/1811\/pokemon-go-api-pokemon-gender-api\/","url_meta":{"origin":1763,"position":0},"title":"Pokemon Go API \u2013 Pokemon Gender API","author":"Chewett","date":"March 30, 2019","format":false,"excerpt":"This post talks about the newest Pokemon Go API, the Pokemon Gender API at\u00a0pogoapi.net. Pokemon Gender Information Each Pokemon either has a gender of male or female, or is classified as genderless. This is important for some Pokemon who have gender specific evolutions. For example only a female Combee will\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/chewett.co.uk\/blog\/category\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/12\/pogo_api_pokemon_gender-1.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/12\/pogo_api_pokemon_gender-1.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/12\/pogo_api_pokemon_gender-1.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/12\/pogo_api_pokemon_gender-1.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1384,"url":"https:\/\/chewett.co.uk\/blog\/1384\/pokemon-go-api-does-it-nest-now-searchable\/","url_meta":{"origin":1763,"position":1},"title":"Pokemon Go API Does it Nest? Now Searchable","author":"Chewett","date":"August 1, 2018","format":false,"excerpt":"This post talks about the new searching feature on the Pokemon Go API \"Does it Nest?\" page. Pokemon Go API \"Does it Nest?\" Page The Pokemon Go API \"Does it Nest?\" page allows you to easily find which pokemon nest. I talked about how it works in the previous blog\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/chewett.co.uk\/blog\/category\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/07\/pogo_api_does_it_nest_now_searchable.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/07\/pogo_api_does_it_nest_now_searchable.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/07\/pogo_api_does_it_nest_now_searchable.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/07\/pogo_api_does_it_nest_now_searchable.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1777,"url":"https:\/\/chewett.co.uk\/blog\/1777\/pokemon-go-api-pokemon-types-api\/","url_meta":{"origin":1763,"position":2},"title":"Pokemon Go API &#8211; Pokemon Types API","author":"Chewett","date":"January 23, 2019","format":false,"excerpt":"This post talks about the newest Pokemon Go API, the Pokemon Types API at\u00a0pogoapi.net. Pokemon Type Data All Pokemon have either one or two types, these types affect the strength of moves and weaknesses it has to opponents moves. Getting the Pokemon Types Data This API lists the types of\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/chewett.co.uk\/blog\/category\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_pokemon_types-1.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_pokemon_types-1.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_pokemon_types-1.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/11\/pogo_api_pokemon_types-1.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1020,"url":"https:\/\/chewett.co.uk\/blog\/1020\/pokemon-go-api-list-pokemon-names\/","url_meta":{"origin":1763,"position":3},"title":"Pokemon Go API &#8211; List of Pokemon Names","author":"Chewett","date":"February 17, 2018","format":false,"excerpt":"Here I talk about the first public API for the PoGoAPI.net website and what it does. First Public API and Documentation Today I have launched the first public API for PoGoAPI.net and the associated (short) documentation for it. Earlier I talked about launching the domain and some of the plans\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/chewett.co.uk\/blog\/category\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/02\/pogo_api_pokemon_names.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/02\/pogo_api_pokemon_names.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/02\/pogo_api_pokemon_names.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/02\/pogo_api_pokemon_names.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2804,"url":"https:\/\/chewett.co.uk\/blog\/2804\/pokemon-go-api-baby-pokemon-api\/","url_meta":{"origin":1763,"position":4},"title":"Pokemon Go API &#8211; Baby Pokemon API","author":"Chewett","date":"February 13, 2021","format":false,"excerpt":"This post talks about the latest API I have added to PoGoAPI.net, the Baby Pokemon API. What are Baby Pokemon Some Pokemon are only available from eggs and are typically smaller versions of \"grown up\" Pokemon. These are called baby Pokemon and the only way to get them is typically\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/chewett.co.uk\/blog\/category\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/02\/pogoapi_baby_pokemon_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/02\/pogoapi_baby_pokemon_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/02\/pogoapi_baby_pokemon_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/02\/pogoapi_baby_pokemon_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2021\/02\/pogoapi_baby_pokemon_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2461,"url":"https:\/\/chewett.co.uk\/blog\/2461\/pokemon-go-api-pvp-exclusive-pokemon-list\/","url_meta":{"origin":1763,"position":5},"title":"Pokemon Go API \u2013 PVP Exclusive Pokemon List","author":"Chewett","date":"May 23, 2020","format":false,"excerpt":"This post talks about the latest API I have added to PoGoAPI.net, the PVP Exclusive Pokemon list. What are PVP Exclusive Pokemon Some Pokemon and their evolutions are only available in PVP. Currently to get these Pokemon you need to win a number of battles in the PVP league with\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/chewett.co.uk\/blog\/category\/software\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/05\/pogo_api_posticon_pvpexclusive.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/05\/pogo_api_posticon_pvpexclusive.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/05\/pogo_api_posticon_pvpexclusive.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/05\/pogo_api_posticon_pvpexclusive.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=1763"}],"version-history":[{"count":3,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1763\/revisions"}],"predecessor-version":[{"id":1871,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1763\/revisions\/1871"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/1771"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=1763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=1763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=1763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}