import requests


def get_pokeapi_data(pokemon):
    """ Retrieve data on Pokemon from PokeAPI in JSON format. """
    endpoint = 'http://pokeapi.co/api/v2/pokemon/' + pokemon
    r = requests.get(endpoint)
    r.raise_for_status()

    return r.json()