Unable to uncompress zip file

Hi, we tried to run OpenData APIs in API explorer (Ex: "Public Transport - Timetables - For Realtime API Explore API - Public Transport - Timetables - For Realtime | TfNSW Open Data Hub and Developer Portal) 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?

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.