Porkbun

App · 15 actions

Manage domain lookups and DNS records, and inspect nameservers, forwarding and transfers in Porkbun.

Actions

ActionWhat it does
Check domain availabilityCheck registration availability and pricing for a domain.
Create DNS recordAdd a record to a managed domain’s DNS zone.
Delete DNS recordRemove a DNS record from a domain.
Find DNS recordsFind DNS records by type and subdomain.
Get DNS recordRead a single DNS record by ID.
Get domainRead details about a domain in your account.
Get transfer statusCheck the transfer status for a domain.
List DNS recordsRead records in the domain’s DNS zone.
List domain pricingLook up current domain registration, renewal and transfer pricing.
List domainsRead up to 1,000 account domains from the supplied offset.
List glue recordsRead registered glue records for a domain.
List nameserversRead the nameservers for a domain.
List transfersRead active domain transfers.
List URL forwardsRead forwarding rules for a domain.
Update DNS recordSet a DNS record’s name, type, content, TTL and priority.

Check domain availability

Check registration availability and pricing for a domain.

Inputs

DomaindomaintextRequired
Domain.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "limits": {
      "TTL": 1,
      "limit": 1,
      "naturalLanguage": "example",
      "used": 1
    },
    "response": {
      "additional": {
        "renewal": {
          "price": "example",
          "regularPrice": "example",
          "type": "example"
        },
        "transfer": {
          "price": "example",
          "regularPrice": "example",
          "type": "example"
        }
      },
      "aftermarketSearch": "example",
      "avail": "yes",
      "firstYearPromo": "yes",
      "idnLanguages": [],
      "inYourAccount": false,
      "minDuration": 1,
      "note": "example",
      "premium": "yes",
      "price": "example",
      "regularPrice": "example",
      "type": "example"
    },
    "status": "example",
    "ttlRemaining": 1
  }
}

Create DNS record

Add a record to a managed domain’s DNS zone.

Inputs

DomaindomaintextRequired
Domain.
Namenametext
Subdomain for the record (e.g. 'www', '*' for wildcard, blank for root). Do not include the domain name itself.
TypetypetextRequired
DNS record typeOne of: A, AAAA, MX, CNAME, ALIAS, TXT, NS, SRV, TLSA, CAA, and 6 more.
ContentcontenttextRequired
The record value
Ttlttlnumber
Time to live in seconds. Minimum is determined by account settings (typically 600). Defaults to the account minimum if omitted or 0.
Prioprionumber
Priority for MX and SRV records. Defaults to 0 if omitted.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "id": 1,
    "status": "example",
    "warnings": []
  }
}

Delete DNS record

Remove a DNS record from a domain.

Inputs

DomaindomaintextRequired
Domain.
IdidtextRequired
Numeric DNS record ID

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "code": "example",
    "message": "example",
    "status": "SUCCESS",
    "warnings": []
  }
}

Find DNS records

Find DNS records by type and subdomain.

Inputs

DomaindomaintextRequired
Domain.
TypetypetextRequired
DNS record type (A, AAAA, CNAME, MX, TXT, etc.)One of: A, AAAA, ALIAS, CAA, CNAME, HTTPS, MX, NS, SRV, SSHFP, and 3 more.
SubdomainsubdomaintextRequired
Subdomain portion only. Omit or leave empty for root domain records.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "cloudflare": "enabled",
    "records": [],
    "status": "example"
  }
}

Get DNS record

Read a single DNS record by ID.

Inputs

DomaindomaintextRequired
Domain.
IdidtextRequired
Numeric DNS record ID

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "cloudflare": "enabled",
    "records": [],
    "status": "example"
  }
}

Get domain

Read details about a domain in your account.

Inputs

DomaindomaintextRequired
Fully qualified domain name in the authenticated account.
Include labelsinclude_labelstext
Return label metadata. Defaults to no.One of: yes, no.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "domain": {
      "apiAccess": 1,
      "autoRenew": 1,
      "createDate": "example",
      "domain": "example",
      "expireDate": "example",
      "notLocal": 1,
      "securityLock": 1,
      "status": "example",
      "tld": "example",
      "whoisPrivacy": 1
    },
    "status": "example"
  }
}

Get transfer status

Check the transfer status for a domain.

Inputs

DomaindomaintextRequired
The domain name (e.g. `example.com`).

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "status": "SUCCESS",
    "transfer": {
      "domain": "example",
      "orderId": 1,
      "status": "NEW",
      "statusDescription": "example",
      "transferDate": "example"
    }
  }
}

List DNS records

Read records in the domain’s DNS zone.

Inputs

DomaindomaintextRequired
Domain.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "cloudflare": "enabled",
    "records": [],
    "status": "example"
  }
}

List domain pricing

Look up current domain registration, renewal and transfer pricing.

Inputs

Tldtldtext
One TLD to price, e.g. `io`.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "pricing": {},
    "status": "example",
    "unsupported": []
  }
}

List domains

Read up to 1,000 account domains from the supplied offset.

Inputs

Startstartnumber
Zero-based offset for pagination. Returns up to 1000 domains per call.
Include labelsinclude_labelstext
Return label metadata for each domain. Defaults to no.One of: yes, no.
Name containsname_containstext
Substring match against the full domain name. Case-insensitive.
Expiring within daysexpiring_within_daysnumber
Filter to domains expiring within this many days.
Added afteradded_afterdate and time
Only domains added to this account at Porkbun (registered or transferred in) at or after this date or date-time, UTC. Compare `addedDate` in the response. To sync only new domains, pass the newest `addedDate` you have seen.
Added beforeadded_beforedate and time
Only domains added to this account at Porkbun before this date or date-time, UTC.
Expires afterexpires_afterdate and time
Only domains expiring at or after this date or date-time, UTC.
Expires beforeexpires_beforedate and time
Only domains expiring before this date or date-time, UTC.
Auto renewauto_renewtext
Filter to domains with auto-renew on or off.One of: yes, no.
Api accessapi_accesstext
Filter to domains opted in to API access.One of: yes, no.
Sort namesort_nametext
Field to sort by. Default: `expire_date` ascending. `added_date` sorts by `addedDate`.One of: domain, tld, create_date (Create date), added_date (Added date), expire_date (Expire date).
Sort directionsort_directiontext
Sort direction. Default: asc.One of: asc, desc.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "count": 1,
    "domains": [],
    "status": "example"
  }
}

List glue records

Read registered glue records for a domain.

Inputs

DomaindomaintextRequired
Domain.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "glue": [],
    "hosts": [],
    "status": "example"
  }
}

List nameservers

Read the nameservers for a domain.

Inputs

DomaindomaintextRequired
Domain.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "ns": [],
    "status": "example"
  }
}

List transfers

Read active domain transfers.

Inputs

None.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "status": "SUCCESS",
    "transfers": []
  }
}

List URL forwards

Read forwarding rules for a domain.

Inputs

DomaindomaintextRequired
Domain.

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "forwards": [],
    "status": "example"
  }
}

Update DNS record

Set a DNS record’s name, type, content, TTL and priority.

Inputs

DomaindomaintextRequired
Domain.
IdidtextRequired
Numeric DNS record ID
Namenametext
Subdomain for the record. Do not include the domain name itself.
TypetypetextRequired
DNS record typeOne of: A, AAAA, MX, CNAME, ALIAS, TXT, NS, SRV, TLSA, CAA, and 6 more.
ContentcontenttextRequired
The record value
Ttlttlnumber
Time to live in seconds (optional)
Prioprionumber
Priority for MX/SRV records (optional)

Outputs

dataobject
The response from Porkbun.
Example output
{
  "data": {
    "code": "example",
    "message": "example",
    "status": "SUCCESS",
    "warnings": []
  }
}

On this page