import requests
import json


def breed_stats(id):
    """
    Returns the json data for a single dog breed. 
    
    Parameter (id): is an id for the dog breed
    Precondition: id is an integer
    
    """
    # make the call to the api and return the data
    breed_url = 'https://api.thedogapi.com/v1/images/search?48dbab43-41dd-4351-9528-5f3aa2a1bd39&include_breed=1'
    param = {'breed_id': str(id)}
    response = requests.get(breed_url, params=param)
    data = json.loads(response.text)[0]
    # print(data['breeds'])
    breed_info = data
    # print(breed_info)
        
    return breed_info