---
title: "Download Site File"
method: GET
path: "/api/sites/{site_id}/download/{filename}"
tags: ["Monitored sites"]
---

# Download Site File

`GET /api/sites/{site_id}/download/{filename}`

## Request

- Base URL: `https://epw.tools`
- URL: `https://epw.tools/api/sites/{site_id}/download/{filename}`
- Auth: none declared

The site's latest file, from R2 (outputs/ is cleaned after 24 h). A
plain <a href> can't send headers, so ?key= is accepted too.

## Path parameters

- `site_id` string, required
- `filename` string, required

## Query parameters

- `key` string, nullable

## Headers

- `X-API-Key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/epw/apis/epw-tools-api.md) · [All operations](https://skmtc.dev/epw/apis/epw-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/epw/apis/epw-tools-api/revisions/e6b60fc7a6d7?raw)
