import requests
import json
import zlib


def get(url):
    """Perform an API GET.

    Arguments
    ---------
    url : str
        The path (with query params)

    Returns
    -------
    Decoded JSON.
    """
    content = requests.get(url).content
    # Interestingly, the API compresses the JSON and sends the compressed bytes
    # instead of using HTTP gzip compression.
    return json.loads(zlib.decompress(content).decode('utf-8'))