Pokemon Go API – API Hashes API

This post talks about the newest Pokemon Go API, the API Hashes API at pogoapi.net.

Using the API Hashes API

It is recommended to locally cache the API files so you can store them on your own server and use them as needed. To help facilitate this hash API is provided, which gives the current hashes of all API’s available.

By downloading the current hashes you can compare them against the files you have stored. Then if the hashes are different you know you need to update the file.

This should reduce the traffic requirements on both my and your website and make updating easier.

Getting the API Hashes

This API details the hashes of all the different API’s available from PogoAPI.net.

GET /api/v1/api_hashes.json

Returns a json dict with the keys being the api filename and the values being an array containing api_filename, full_path, hash_md5, hash_sha1, hash_sha256.

Example Data

{
    alolan_pokemon.json: {
        api_filename: "alolan_pokemon.json",
        full_path: "/api/v1/alolan_pokemon.json",
        hash_md5: "355f4ec183f1f519d9cae8e16013dcf4",
        hash_sha1: "0bb393f6819825afa0ae89e38c1c57e2805371f3",
        hash_sha256: "d3ea3002c9bbbd4a955bec49352a36c8ed5c6c62cfe8b3f71acfd2083a828b33"
    }, ...
}

The full documentation is available on the PoGoAPI.net documentation page.

If you have any questions about this API or suggestions for other API’s contact me here below or on Twitter!

One Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.