Unable to uncompress zip file


#1

Hi, we tried to run OpenData APIs in API explorer (Ex: "Public Transport - Timetables - For Realtime API https://opendata.transport.nsw.gov.au/node/332/exploreapi) and downloaded zip file in the response. But, when trying to extract, it says “Unable to uncompress- Error in the document”. Can you please verify and let us know if any issues with APIs?


#2

Hi @saravanan, apologies about this, we’re working on fixing it as soon as possible. You can still call the API programmatically and use curl to download as zip, which will work as expected.

Eg. curl -X GET --header ‘Accept: application/zip’ --header ‘Authorization: apikey XXXXXXXXX’ ‘https://api.transport.nsw.gov.au/v1/gtfs/schedule/sydneytrains’ > sydneytrains.zip

Let me know if you have any further issues.

Thanks,
Alex