import requests


def call_api(key, spot_id, units, fields, **kwargs):
    """
    Reach out magic seaweed api:
    @key: magic seaweed api key
    @spot_id: spot id (found via url)
    @units: english or metric
    @fields: specific data to retrieve from magic seaweed api
    """
    return requests.get(
        f'http://magicseaweed.com/api/{key}/forecast/?spot_id={spot_id}&units={units}&fields={fields}').json()