---
title: "Get the latest DNS record scan result for a DNS Zone"
method: GET
path: "/dnszone/{zoneId}/records/scan"
tags: ["DNS Zone"]
---

# Get the latest DNS record scan result for a DNS Zone

`GET /dnszone/{zoneId}/records/scan`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/dnszone/{zoneId}/records/scan`
- Auth: one of:
  - API key in header `AccessKey`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/dnszone/:zoneId/records/scan/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `zoneId` integer, required

## Response `200`

Latest DNS record scan job details

- DnsZoneRecordScanJobResponse
  - `JobId` string, guid
  - `ZoneId` integer, nullable
  - `Domain` string, nullable
  - `AccountId` string, nullable
  - `Status` 0 | 1 | 2 | 3: 0 = Pending 1 = In Progress 2 = Completed 3 = Failed
  - `CreatedAt` string, date-time
  - `CompletedAt` string, date-time, nullable
  - `Records` DnsZoneDiscoveredRecordModel[], nullable
    - `Name` string, nullable: Record name relative to the zone. '@' represents apex.
    - `Type` 0 | 1 | 2 | 3 | 4 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16: 0 = A 1 = AAAA 2 = CNAME 3 = TXT 4 = MX 8 = SRV 9 = CAA 10 = PTR 12 = NS 13 = SVCB 14 = HTTPS 15 = TLSA 16 = SOA
    - `Ttl` integer, nullable
    - `Value` string, nullable
    - `Priority` integer, nullable
    - `Weight` integer, nullable
    - `Port` integer, nullable
    - `IsProxied` boolean
  - `Error` string, nullable

## Other responses

- `401`: The request authorization failed
- `404`: No scan found or DNS Zone not found

## Changes

- **2026-11-12** `2b06f94dbfbf`: 2 breaking, 4 info
  - added `#/components/schemas/DnsZoneScanJobStatus` to the `Status` response property `oneOf` list for the response status `200`
  - the `Status` response's property type changed from `integer` to no type for status `200`
  - removed the `0.00` enum value from the `Status` response property for the response status `200`
  - removed the `1.00` enum value from the `Status` response property for the response status `200`
  - …2 more
- **2026-10-27** `2096a6606d8d`: 2 info
  - the security scope `ScopedApiKey` was added to the endpoint's security scheme `AccessKey`
  - the security scope `ScopedApiKey` was added to the endpoint's security scheme `bearer`

[Operation history](https://skmtc.dev/bunny/apis/bunny-net-api/changes/dnszone/:zoneId/records/scan/get.md)

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
