import requests


def _send_request(query: str) -> dict:
    """
    Send a request to the RCSB website and return the json response in a dictionary.

    :param query: advanced query in json format.
    """
    # Documentation URL: https://search.rcsb.org/#search-api
    url_get = 'https://search.rcsb.org/rcsbsearch/v1/query?json=' + query
    response = requests.get(url_get)
    response.raise_for_status()
    return response.json()