Getting Data

    Once a ROM has been uploaded, the data is now queryable.

    To get a Pokémon's name, send a request to the GET /v1/pokemon/names/:pokedex_id endpoint:

    bash
    js
    curl \
        -H 'Authorization: Bearer <access_token>' \
        https://api.pkmnapi.com/v1/pokemon/names/1
    

    Here is the result:

    {
        "data": {
            "id": "1",
            "type": "pokemon_names",
            "attributes": {
                "name": "BULBASAUR"
            },
            "links": {
                "self": "https://api.pkmnapi.com/v1/pokemon/names/1"
            }
        },
        "links": {
            "self": "https://api.pkmnapi.com/v1/pokemon/names/1"
        }
    }