fetch_json

gwosc.api.fetch_json(url, **kwargs)

Fetch JSON data from a remote URL

Parameters:
  • url (str) – the remote URL to fetch

  • **kwargs – other keyword arguments are passed directly to requests.get()

Returns:

data – the data fetched from url as parsed by requests.Response.json()

Return type:

dict or list

See also

json.loads

for details of the JSON parsing