hestia_earth.utils.api.download_hestia

hestia_earth.utils.api.download_hestia(node_id, node_type=<SchemaType.TERM: 'Term'>, data_state='', mode='')[source]

Download a Node from the Hestia Database.

Parameters
  • node_id (str) – The @id of the Node.

  • node_type – The @type of the Node.

  • data_state – Optional - the dataState of the Node. By default, original version will be returned. Use recalculated to download the recalculated version instead (if available).

  • mode – Optional - use csv to download as a CSV file, zip to download as a ZIP file. Defaults to JSON.

Returns

The JSON content of the Node.

Return type

JSON