---
title: "Export scan log of given scan id"
method: GET
path: "/v1/scans/{scan_id}/scan_log/export"
tags: ["scan_log"]
---

# Export scan log of given scan id

`GET /v1/scans/{scan_id}/scan_log/export`

## Query parameters

- `rescan_count` integer
- `host` string
- `template` string
- `matched` string
- `time` string, date-time
- `search` string
- `error` string
- `format` 'raw' | 'json' | 'csv'
- `async` boolean
- `alert_email` string
- `severity` 'error' | 'info' | 'all_logs'

## Headers

- `X-Team-Id` string

## Response `200`

OK

- object
  - `url` string, required

## Other responses

- `201` — Created
- `400` — Example response
- `401` — Example response
- `500` — Example response
- `default` — Example response

## Changes

- **2025-08-13** `c41cd7ae7718` — 1 info
  - endpoint added
- **2023-12-05** `5c3748c387f7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/scans/:scan_id/scan_log/export/get.md)

---

[API](https://skmtc.dev/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.dev/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/revisions/220f0adf9efd/schema)
