---
title: "Export all URLs for a domain as CSV/TXT/JSON"
method: POST
path: "/search/domain/{domain}/urls/export"
tags: ["Search Domain"]
---

# Export all URLs for a domain as CSV/TXT/JSON

`POST /search/domain/{domain}/urls/export`

## Request

- Base URL: `https://api.leakradar.io`
- URL: `https://api.leakradar.io/search/domain/{domain}/urls/export`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/leakradar/apis/leakradar-io-api/docs/search/domain/:domain/urls/export/post.ts> (a function with typed inputs; its response is checked against the schema)

Generate an on-demand export of all distinct URLs for the given domain. The export contains a single `URL` column and is capped at 100,000 rows.

**Plan requirement**
Requires a paid plan with `domain_search` enabled.

**Parameters**
- You can provide `search` either as a query parameter or in the JSON body. If both are provided, the JSON body value takes precedence.

## Path parameters

- `domain` string, required: Domain to export URLs for, e.g. `example.com`.

## Query parameters

- `search` string, nullable: Optional search term to filter results when using query parameters. If also provided in the JSON body, the body value takes precedence.
- `format` 'csv' | 'txt' | 'json'

## Request body

- DomainURLsExportBody
  - `search` string, nullable

## Response `200`

URLs file (CSV/TXT/JSON) streamed successfully.

## Other responses

- `401`: Authentication required, or invalid/expired API key.
- `403`: Domain search not available on your plan, domain blocked, account banned, or pending email verification.
- `422`: Validation Error
- `429`: Rate limit exceeded. See Retry-After / X-RateLimit-* headers.
- `503`: Domain search under maintenance, or public API temporarily disabled.

## Changes

- **2026-09-01** `82a99c608e1a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leakradar/apis/leakradar-io-api/changes/search/domain/:domain/urls/export/post.md)

---

[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.dev/leakradar/apis/leakradar-io-api/revisions/8dcd4b54cc4a?raw)
