import requests


def get(uid, api_key):
    """Retrieve raw response from SoundCloud API.

    Arguments:
        uid {str}
        api_key {str}

    Returns:
        list -- SoundCloud sound dicts
        None -- on failure
    """
    payload = {'client_id': api_key}
    url = 'https://api.soundcloud.com/users/{}/tracks'.format(uid)
    try:
        r = requests.get(url, params=payload)
        r.raise_for_status()
    except requests.exceptions.HTTPError:
        return None
    return r.json()