---
title: "Raw Data Download"
method: GET
path: "/api/raw-data"
tags: ["Stations and data"]
---

# Raw Data Download

`GET /api/raw-data`

## Request

- Base URL: `https://epw.tools`
- URL: `https://epw.tools/api/raw-data`
- Auth: none declared

Download the highest-resolution weather data available for any location
and date range.  Sources chosen automatically per variable and region:

- Solar (GHI/DNI/DHI):  CAMS 15-min (Meteosat area) › PSM3 30-min (Americas) › ERA5 1-hour
- Meteorological:       PSM3 30-min (Americas) › ERA5 1-hour (global)

Returns a CSV (default) or JSON with columns:
  time, ghi, dni, dhi,
  temperature_2m_c, dewpoint_2m_c, relative_humidity_pct,
  wind_speed_10m_ms, wind_direction_10m_deg,
  surface_pressure_hpa, precipitation_mm, cloud_cover_pct, snow_depth_m

## Query parameters

- `lat` number, required
- `lon` number, required
- `start_date` string, required: YYYY-MM-DD
- `end_date` string, required: YYYY-MM-DD
- `format` string
- `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)
