---
title: How to Export Your Domain's DNS Records from Vercel
description: Learn how to utilize our API to export your domain's DNS records from Vercel.
url: /kb/guide/export-domain-dns-records-via-api
canonical_url: "https://vercel.com/kb/guide/export-domain-dns-records-via-api"
published: 2025-11-03
last_updated: 2026-01-21
authors: Anders Morley-Hagström
related: []
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---
<!-- docsgraph:related -->
## Related pages

> **For AI agents:** Follow these links to understand how this page connects to the rest of the Vercel ecosystem. For the full cross-link map (inbound, outbound, prerequisites, and semantic neighbors), see the .graph.md link below.

- [Managing DNS Records](https://vercel.com/docs/domains/managing-dns-records?from=related) — Learn how to add, verify, and remove DNS records for your domains on Vercel with this guide.
- [Working with DNS](https://vercel.com/docs/domains/working-with-dns?from=related) — Learn how DNS works in order to properly configure your domain.
- [Domains](https://vercel.com/docs/domains?from=related) — Learn the fundamentals of how domains, DNS, and nameservers work on Vercel.
- [vercel dns](https://vercel.com/docs/cli/dns?from=related) — Learn how to manage your DNS records for your domains using the vercel dns CLI command.
- [List existing DNS records](https://vercel.com/docs/rest-api/dns/list-existing-dns-records?from=related)
- [How can I do a "Zero Downtime" DNS migration to Vercel?](https://vercel.com/kb/guide/zero-downtime-migration-for-dns?from=related) — Information about how to migrate your DNS records to Vercel without downtime.
- [How do I add a domain using the Vercel API?](https://vercel.com/kb/guide/how-do-i-add-a-domain-using-the-vercel-api?from=related) — Information on adding a domain using the Vercel API.
- [How can I manage my Vercel DNS records?](https://vercel.com/kb/guide/how-to-manage-vercel-dns-records?from=related) — Add, edit, and delete Vercel DNS records from the dashboard, CLI, or REST API, and fix the Invalid Configuration error o
- [How do I transfer my domain to Vercel?](https://vercel.com/kb/guide/how-do-i-transfer-my-domain-to-vercel?from=related) — Information on how to transfer a domain to Vercel.
- [How can I migrate a site to Vercel without downtime?](https://vercel.com/kb/guide/zero-downtime-migration?from=related) — Information about how to assign a Vercel deployment to a domain without downtime.

Full cross-link map for this page: [/kb/guide/export-domain-dns-records-via-api.graph.md](/kb/guide/export-domain-dns-records-via-api.graph.md)
<!-- /docsgraph:related -->


If you need to export your DNS records while using Vercel as your DNS provider, you can do this easily through our API. This might be useful if you want to move to another DNS provider or have a backup of your DNS records.

### Step 1: Locate Your Team ID

To begin, you will need your Team ID. You can find this by navigating to **Settings** > **General** and then find the module **Team ID**. Make sure to note down the ID for later.

### Step 2: Generate an API Token

Next, you will need an API token to access the API. Follow this guide to learn how to generate a token: [How to Use a Vercel API Access Token.](https://vercel.com/guides/how-do-i-use-a-vercel-api-access-token) Remember that the API token is only visible once, so also note this down.

### Step 3: Fetch DNS Records

Once you have your API token, you can retrieve your DNS records by using the [list existing DNS records API endpoint](https://docs.vercel.com/docs/rest-api/reference/endpoints/dns/list-existing-dns-records). Here's an example `curl` command:

```bash
curl -X \
 GET "https://api.vercel.com/v4/domains/<your-domain>/records?teamId=<your-team-id>&limit=100" -H \
 "Authorization: Bearer <vercel-auth-token>"
```

- Replace `<your-domain>` with the domain name you want to export records for.
  
- Replace `<your-team-id>` with your complete Team ID (including the `team_` prefix).
  
- Replace `<vercel-auth-token>` with the API token you generated.
  

This will return the DNS records for the specified domain. Please note that the maximum number of records returned is 100. If your domain has more than 100 records, see the [API pagination documentation](https://docs.vercel.com/docs/rest-api/reference/welcome#pagination) on how to retrieve all records.