fetch_event_json

gwosc.api.fetch_event_json(event, catalog=None, version=None, host='https://gwosc.org')

Returns the JSON metadata for the given event.

By default, this function queries across all catalogs and all data-release versions, returning the highest available version, unless the version and/or catalog keywords are specified.

Parameters:
  • event (str) – the name of the event to query

  • catalog (str, optional) – name of catalogue that hosts this event

  • version (int, None, optional) – restrict query to a given data-release version

  • host (str, optional) – the URL of the GWOSC host to query, defaults to https://gwosc.org

Returns:

data – the JSON data retrieved from GWOSC and returned by json.loads

Return type:

dict or list