import requests


def get_latest(items):
    """
    Returns the latest x number of records from the fisheries api as an
    array of json objects.
    """
    r = requests.get(
        'http://api.fish.wa.gov.au/webapi/v1/RawData?pageNumber=1&pageSize={items}'.format(items=items)
    )
    return r.json()['PagedItems']