import time
import requests


def get_api_data_from_url(url) -> dict:
    """Call the api and return the data

    100ms delay between calls per https://scryfall.com/docs/api
    """
    time.sleep(0.1)
    resp = requests.get(url)
    if not resp.ok:
        print(resp.text)
        return {}
    return resp.json()