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

# Export Subnets to CSV

`GET /api/v1/subnets/export/csv`

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

## Query parameters

- `network_id` string, uuid, nullable
- `group_by` 'created_at' | 'name' | 'cidr' | 'subnet_type' | 'updated_at' | 'network_id' | 'last_seen_at' — Fields that subnets can be ordered/grouped by.
- `order_by` 'created_at' | 'name' | 'cidr' | 'subnet_type' | 'updated_at' | 'network_id' | 'last_seen_at' — Fields that subnets can be ordered/grouped by.
- `order_direction` 'asc' | 'desc' — Direction for ORDER BY clauses.
- `limit` integer, nullable
- `offset` integer, nullable
- `at` string, date-time, nullable
- `stale` boolean, nullable

## Response `200`

CSV file containing Subnets

---

[API](https://skmtc.net/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.net/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/versions/28e466341947/schema)
