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

# Export Services to CSV

`GET /api/v1/services/export/csv`

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

## Query parameters

- `network_id` string, uuid, nullable
- `host_id` string, uuid, nullable
- `ids` string[], nullable
- `tag_ids` string[], nullable
- `search` string, nullable
- `group_by` 'created_at' | 'name' | 'updated_at' | 'host' | 'network_id' | 'position' | 'service_definition' | 'last_seen_at' — Fields that services can be ordered/grouped by.
- `order_by` 'created_at' | 'name' | 'updated_at' | 'host' | 'network_id' | 'position' | 'service_definition' | 'last_seen_at' — Fields that services can be ordered/grouped by.
- `order_direction` 'asc' | 'desc' — Direction for ORDER BY clauses.
- `ports` integer[], nullable
- `exclude_categories` ServiceCategory[], nullable
- `limit` integer, nullable
- `offset` integer, nullable
- `at` string, date-time, nullable
- `stale` boolean, nullable

## Response `200`

CSV file containing Services

## Changes

- **2026-07-29** `51af15be596e` — 1 warning
  - deleted the `query` request parameter `protocol`
- **2026-07-29** `49ea97c8bb7e` — 5 info
  - added the new optional `query` request parameter `ports`
  - added the new optional `query` request parameter `protocol`
  - added the new optional `query` request parameter `search`
  - added the enum value `service_definition` to the property `oneOf[#/components/schemas/ServiceOrderField]/` of the `query` request parameter `group_by`
  - …1 more
- **2026-07-22** `8d79aa9841a2` — 3 info
  - added the new optional `query` request parameter `stale`
  - added the enum value `last_seen_at` to the property `oneOf[#/components/schemas/ServiceOrderField]/` of the `query` request parameter `group_by`
  - added the enum value `last_seen_at` to the property `oneOf[#/components/schemas/ServiceOrderField]/` of the `query` request parameter `order_by`
- **2026-06-20** `762f949af7a3` — 1 info
  - added the enum value `Integration` to the property `items/` of the `query` request parameter `exclude_categories`
- **2026-06-11** `aac398d6764d` — 1 info
  - added the new optional `query` request parameter `at`

[Full history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/v1/services/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-service-production.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/d061209476f3/schema)
