datasets

Fetch an external resource server-side and stream it back with

Changed on

Content-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 URL
    https://dados.gov.pt/api/1
  • URL
    https://dados.gov.pt/api/1/datasets/proxy/download/
  • Auth
    none 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