# Porkbun Porkbun DNS API

**Canonical:** https://apis.io/apis/porkbun-com/porkbun-com-porkbun-dns-api/  
**Provider:** Porkbun — https://apis.io/providers/porkbun-com/  
**Base URL:** https://api.porkbun.com/api/json/v3  
**Documentation:** https://porkbun.com/api/json/v3/documentation

Porkbun Porkbun DNS API is one of 19 APIs that [Porkbun](https://apis.io/providers/porkbun-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Porkbun DNS. The published artifact set on APIs.io includes an OpenAPI specification.

Create, read, update and delete DNS records in **Porkbun's** nameservers, including DNSSEC. These endpoints manage the zone Porkbun serves. If a domain has been moved to a customer's own Cloudflare account (see the **Cloudflare** section), Cloudflare's nameservers answer for it instead — writes here still succeed and are kept in step in case the move is rolled back, but they do not change what resolves, and every response says so in `warnings`. Manage those domains with `/cloudflare/getRecords`, `/cloudflare/createRecord`, `/cloudflare/editRecord` and `/cloudflare/deleteRecord`. The same is true, more bluntly, of a domain delegated to any other DNS provider: we hold a zone for every domain in the account, so a write always succeeds locally. Whenever the nameservers answering for the domain are not ours, the write response carries a `warnings` string saying so and naming them. Check `warnings` on every write; `GET /dns/preflight/{domain}` reports the same thing (`nameservers-ours`) before you start.

## Operations (15)

| Method | Path | Summary |
|---|---|---|
| POST | `/dns/retrieve/{domain}` | Retrieve all DNS records |
| GET | `/dns/retrieve/{domain}` | Retrieve all DNS records |
| POST | `/dns/retrieve/{domain}/{id}` | Retrieve DNS record by ID |
| GET | `/dns/retrieve/{domain}/{id}` | Retrieve DNS record by ID |
| POST | `/dns/retrieveByNameType/{domain}/{type}/{subdomain}` | Retrieve DNS records by name and type |
| GET | `/dns/retrieveByNameType/{domain}/{type}/{subdomain}` | Retrieve DNS records by name and type |
| POST | `/dns/create/{domain}` | Create DNS record |
| POST | `/dns/edit/{domain}/{id}` | Edit DNS record by ID |
| POST | `/dns/editByNameType/{domain}/{type}/{subdomain}` | Edit DNS records by name and type |
| POST | `/dns/delete/{domain}/{id}` | Delete DNS record by ID |
| POST | `/dns/deleteByNameType/{domain}/{type}/{subdomain}` | Delete DNS records by name and type |
| POST | `/dns/getDnssecRecords/{domain}` | Get DNSSEC records |
| GET | `/dns/getDnssecRecords/{domain}` | Get DNSSEC records |
| POST | `/dns/createDnssecRecord/{domain}` | Create DNSSEC record |
| POST | `/dns/deleteDnssecRecord/{domain}/{keytag}` | Delete DNSSEC record |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/porkbun-com/openapi/porkbun-com-porkbun-dns-api-openapi.yml

## Other Porkbun APIs (12)

- [Porkbun Account API](https://apis.io/apis/porkbun-com/porkbun-com-account-api/)
- [Porkbun Aftermarket API](https://apis.io/apis/porkbun-com/porkbun-com-aftermarket-api/)
- [Porkbun Agent Naming (ANS) API](https://apis.io/apis/porkbun-com/porkbun-com-agent-naming-ans-api/)
- [Porkbun API Key Management API](https://apis.io/apis/porkbun-com/porkbun-com-api-key-management-api/)
- [Porkbun Closeouts API](https://apis.io/apis/porkbun-com/porkbun-com-closeouts-api/)
- [Porkbun Cloudflare API](https://apis.io/apis/porkbun-com/porkbun-com-cloudflare-api/)
- [Porkbun DNS API](https://apis.io/apis/porkbun-com/porkbun-com-dns-api/)
- [Porkbun Domain API](https://apis.io/apis/porkbun-com/porkbun-com-domain-api/)
- [Porkbun Email API](https://apis.io/apis/porkbun-com/porkbun-com-email-api/)
- [Porkbun Hosting API](https://apis.io/apis/porkbun-com/porkbun-com-hosting-api/)
- [Porkbun Link in Bio API](https://apis.io/apis/porkbun-com/porkbun-com-link-in-bio-api/)
- [Porkbun Marketplace API](https://apis.io/apis/porkbun-com/porkbun-com-marketplace-api/)

## Tags

Porkbun DNS

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/porkbun-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/porkbun-com/porkbun-com-porkbun-dns-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/porkbun-com/.
