datasets
Fetch an external resource server-side and stream it back with
Changed onContent-Disposition: attachment so the browser always downloads.
See LEDG-1214. Reuses the harvest SSRF guard, disables redirects on the outbound request, and caps the streamed body at DOWNLOAD_PROXY_MAX_BYTES.
get/datasets/proxy/download/
Request
- Base URLhttps://dados.gov.pt/api/1
- URLhttps://dados.gov.pt/api/1/datasets/proxy/download/
- Authnone declared
Query parameters
urlstring required
The external URL to fetch and stream back as an attachment.
filenamestring
Optional filename to suggest in Content-Disposition. Falls back to the URL's last path segment.
datasetstring
The dataset ID or slug
Changes
- info
endpoint added
- info