# Export the results of a search you ran as CSV or Excel

> **Casafari is the AI agent-native real estate data intelligence platform.** The most complete property index in Europe: a deduplicated, cleaned property graph of residential and commercial property, for sale and for rent, in 16 countries. Every property is one record with its full price and market history. [How the property graph is built](/docs/property-graph).

`POST https://platform.casafari.com/v1/claro/exports`

[Claro AI](/docs/claro) · [REST API](/docs/claro#rest-api). Send `Authorization: Bearer $CASAFARI_API_KEY`: a platform API key or OAuth access token, metered in platform tokens; see [platform sign-in](/docs/rest#platform-api-keys) and [Claro AI](/docs/claro#keys). On the platform this is `POST https://platform.casafari.com/v1/claro/exports`; `POST /v1/exports` is Claro's own path, which the platform adds `/claro` to. The platform forwards the call to Claro unchanged: Claro's `Claro-Version` header and its error bodies (`{"error":{"code","message"}}`, with `rate_limited` and `quota_reached` on a 429) pass through.

Over MCP: no tool does this; it is REST only. See [MCP and REST compared](/docs/parity#claro-ai).

## Description

The stored results of a search this account ran, or of a Compare set, as a file. Scope claro:read. It only re-reads: never a new search, a model call or a read-through, so it is not billed as a search (the platform prices it at 0 tokens) and has no monthly cap. `search_id` exports that search's ranked matches (the first 500; `stated_only` keeps only those that state every criterion). A plots search_id (it starts with `plots-`) exports its plots with their own columns. `search_id` with `ids` exports only those 2 to 5 matches of that search. `ids` alone exports a Compare set this account ran with POST /v1/compare in the last 24 hours, the same ids and no others. A search_id that does not belong to the calling account, never existed or is older than 24 hours (searches are kept 24 hours) is `not_found` (404); the answer never says which. Columns: property id (pm_), Claro page, title, type, operation, size m², rent and sale price, price per m², city, district, agency and its listing link, the fit verdict and its reasons, an excerpt, and the Location Intelligence figures only when the account has location access. A header above the table gives the export date and the source.

## Request body

Content type `application/json`. Required. Type: `object`.

- `search_id` (string, optional): The search_id of a premises or plots search this account ran in the last 24 hours.
- `format` (string, required) Values: `csv`, `xlsx`.
- `ids` (string[], optional): pm_ ids: with search_id, only those matches of that search; alone, a Compare set this account ran in the last 24 hours. 2–5 items.
- `stated_only` (boolean, optional): With a premises search_id: only the matches that state every criterion.
- `lang` (string, optional): The language of the file's headings. Values: `en`, `de`, `es`.

## Example request

Placeholders only: replace the token and the values with your own.

```bash
curl -X POST "https://platform.casafari.com/v1/claro/exports" \
  -H "Authorization: Bearer $CASAFARI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "format": "csv"
}'
```

## Responses

### 200 The file

Type: `string`.

### 400 Invalid request

Type: `object`.

- `error` (object, optional)
  - `code` (string, required)
  - `message` (string, required)

### 401 Missing or invalid key

Type: `object`.

- `error` (object, optional)
  - `code` (string, required)
  - `message` (string, required)

### 403 No access

Type: `object`.

- `error` (object, optional)
  - `code` (string, required)
  - `message` (string, required)

### 404 Unknown, expired or not this account's (`not_found`)

Type: `object`.

- `error` (object, optional)
  - `code` (string, required)
  - `message` (string, required)

### 429 Rate limited

Type: `object`.

- `error` (object, optional)
  - `code` (string, required)
  - `message` (string, required)

## Related pages

- [Search commercial premises (POST /v1/search)](/docs/rest/claro/search-premises)
- [Refine a search (POST /v1/search/refine)](/docs/rest/claro/refine-search)
- [Get one premises (GET /v1/premises/{id})](/docs/rest/claro/get-premises)
- [Compare premises (POST /v1/compare)](/docs/rest/claro/compare-premises)
- [Claro AI: all its MCP tools and REST operations](/docs/claro)
- [Connect Claro to an MCP client](/docs/claro/connect)
- [MCP vs REST API compared](/docs/parity)
