---
title: "Export leaks for an email to CSV/TXT/JSON"
method: POST
path: "/search/email/export"
tags: ["Search Email"]
---

# Export leaks for an email to CSV/TXT/JSON

`POST /search/email/export`

Queue an export of all leaks that match the given email or username and optional filters. Provide the search payload in the JSON body.

Request body
- `email` the email or username to search.
- `search` optional free-text filter applied to URL or username.
- `is_email` optional boolean: `true` emails only, `false` usernames only, `null` both.

Query parameters
- `format` optional output format: `csv` (default), `txt`, or `json`.

Limits and plan requirement
- You can have at most 5 exports with status PENDING or IN_PROGRESS (per account).
- Requires a paid plan with `email_search` enabled.

Response
`ExportResponse` with `status`, `message`, and `export_id`.

## Query parameters

- `format` 'csv' | 'txt' | 'json'

## Request body

- EmailSearchRequest
  - `email` string, required — Email or username to search.
  - `search` string, nullable — Optional free-text filter.
  - `is_email` boolean, nullable — Identifier type filter: true=email only, false=username only, null=both.

## Response `200`

Export queued successfully.

- ExportResponse
  - `status` string, required — Export job status: 'queued', 'processing', 'completed', or 'failed'.
  - `message` string, required — Human-readable status message.
  - `export_id` integer, required — ID of the export job. Use this to check status or download the result.

## Other responses

- `400` — Maximum concurrent exports reached (PENDING/IN_PROGRESS limit).
- `401` — Authentication required, or invalid/expired API key.
- `403` — Email search not available on your plan, search blocked, account banned, or pending email verification.
- `409` — An identical export is already queued or running.
- `422` — Validation Error
- `429` — Rate limit exceeded. See Retry-After / X-RateLimit-* headers.
- `503` — Email search under maintenance, or public API temporarily disabled.

---

[API](https://skmtc.dev/leakradar/apis/leakradar-io-api.md) · [All operations](https://skmtc.dev/leakradar/apis/leakradar-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leakradar/leakradar-io-api/revisions/82a99c608e1a/schema)
