---
title: "Batch: many locations from a CSV"
method: POST
path: "/api/generate/csv-batch"
tags: ["Generate weather files"]
---

# Batch: many locations from a CSV

`POST /api/generate/csv-batch`

## Request

- Base URL: `https://epw.tools`
- URL: `https://epw.tools/api/generate/csv-batch`
- Auth: API key in header `X-API-Key`

Upload a CSV with one location per row (name, lat, lon); one job per row, credits charged per file. Batches above 3 sites need a paid account.

## Headers

- `X-API-Key` string, nullable

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