---
title: "Export discoveries to CSV"
method: GET
path: "/api/v1/discoveries/export/csv"
tags: ["Discoveries"]
---

# Export discoveries to CSV

`GET /api/v1/discoveries/export/csv`

## Request

- Base URL: `https://app.scanopy.net`
- URL: `https://app.scanopy.net/api/v1/discoveries/export/csv`
- Auth: one of:
  - API key in header `Authorization`
  - API key in cookie `session_id`

Export all discoveries matching the filter criteria to CSV format. Ignores pagination parameters (limit/offset) and exports all matching records.

## Query parameters

- `site_ids` string[], nullable
- `daemon_ids` string[], nullable
- `ids` string[], nullable
- `discovery_types` string[], nullable
- `phases` DiscoveryPhase[], nullable
- `historical` boolean, nullable
- `search` string, nullable
- `run_types` string[], nullable
- `legacy` boolean[], nullable
- `force_full_scan` boolean[], nullable
- `tag_ids` string[], nullable
- `tag_sets` string[], nullable
- `group_by_tag_group` string, uuid, nullable
- `order_by_tag_group` string, uuid, nullable
- `group_by` 'created_at' | 'name' | 'updated_at' | 'daemon_id' | 'site_id' | 'discovery_type' | 'phase' | 'started_at' | 'finished_at' | 'duration' | 'warnings' | 'run_type' | 'last_run' | 'scan_count' | 'force_full_scan' | 'legacy': Fields that discoveries can be ordered/grouped by.
- `order_by` 'created_at' | 'name' | 'updated_at' | 'daemon_id' | 'site_id' | 'discovery_type' | 'phase' | 'started_at' | 'finished_at' | 'duration' | 'warnings' | 'run_type' | 'last_run' | 'scan_count' | 'force_full_scan' | 'legacy': Fields that discoveries can be ordered/grouped by.
- `order_direction` 'asc' | 'desc': Direction for ORDER BY clauses.
- `limit` integer, nullable
- `offset` integer, nullable

## Response `200`

CSV file containing Discoveries

## Changes

- **2026-10-26** `c9d9d46d1ae8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/v1/discoveries/export/csv/get.md)

---

[API](https://skmtc.dev/scanopy/apis/scanopy-api.md) - [All operations](https://skmtc.dev/scanopy/apis/scanopy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scanopy/apis/scanopy-api/revisions/966ba786bdb5?raw)
