import requests


def get_page_data(page_number):
    """
    abstract json data from query
    :param page_number: page number for api to call
    :return: data of the page in json
    """
    headers = {
        'accept': 'application/json',
    }
    url = f'https://api.ipfs-search.com/v1/search?q=last-seen%3A%3Enow-1M&type=file&page={page_number}'
    r = requests.get(url, headers=headers)
    return r.json()