Get output from API in Excel

Hi Olivia,
in order to access output data of your models using the Session init and export request of our backend API, please first configure an export in your Grasshopper model. You can use the ShapeDiverExportDownload component for that purpose, and somehow convert your data to text before feeding it into the component. Use txt as your file type. You can test your export using the export button that will show up in the viewer.

Once that works, use api.exports.get() of the viewer’s API to find the id of your export. Use this id when making the Session init and export request. Please also include the max_wait_time and set it to 10000 milliseconds (assuming that you have a PRO account). The reply to this request will contain a download link to the exported text file.

When running the Session init and export request from your local Postman app, you will be able to find some scripts explaining on how to locate the download link in the API response: