---
title: "Future-climate scenario/horizon sweep"
method: POST
path: "/api/generate/future-climate/sweep"
tags: ["Generate weather files"]
---

# Future-climate scenario/horizon sweep

`POST /api/generate/future-climate/sweep`

## Request

- Base URL: `https://epw.tools`
- URL: `https://epw.tools/api/generate/future-climate/sweep`
- Auth: API key in header `X-API-Key`

Submit one future-climate job per (scenario, horizon) combination.

Billed 1 credit per combination: the dependency charges the first, the
rest are charged here once the combination count is known.

## Headers

- `X-API-Key` string, nullable

## Request body

- ScenarioSweepRequest
  - `lat` number, required
  - `lon` number, required
  - `location_name` string, required
  - `base_year` integer
  - `scenarios` string[]
  - `horizons` integer[]
  - `model` string
  - `dc_edition` string

## Response `200`

Successful Response

- unknown

## Other responses

- `402`: Insufficient credits for this operation.
- `422`: Validation Error
- `429`: Rate limit exceeded — retry after a short delay.

---

[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)
