Porkbun
App · 15 actions
Manage domain lookups and DNS records, and inspect nameservers, forwarding and transfers in Porkbun.
Actions
| Action | What it does |
|---|---|
| Check domain availability | Check registration availability and pricing for a domain. |
| Create DNS record | Add a record to a managed domain’s DNS zone. |
| Delete DNS record | Remove a DNS record from a domain. |
| Find DNS records | Find DNS records by type and subdomain. |
| Get DNS record | Read a single DNS record by ID. |
| Get domain | Read details about a domain in your account. |
| Get transfer status | Check the transfer status for a domain. |
| List DNS records | Read records in the domain’s DNS zone. |
| List domain pricing | Look up current domain registration, renewal and transfer pricing. |
| List domains | Read up to 1,000 account domains from the supplied offset. |
| List glue records | Read registered glue records for a domain. |
| List nameservers | Read the nameservers for a domain. |
| List transfers | Read active domain transfers. |
| List URL forwards | Read forwarding rules for a domain. |
| Update DNS record | Set a DNS record’s name, type, content, TTL and priority. |
Check domain availability
Check registration availability and pricing for a domain.
Inputs
- Domain
domaintextRequired - 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
- Domain
domaintextRequired - Domain.
- Name
nametext - Subdomain for the record (e.g. 'www', '*' for wildcard, blank for root). Do not include the domain name itself.
- Type
typetextRequired - DNS record typeOne of:
A,AAAA,MX,CNAME,ALIAS,TXT,NS,SRV,TLSA,CAA, and 6 more. - Content
contenttextRequired - The record value
- Ttl
ttlnumber - Time to live in seconds. Minimum is determined by account settings (typically 600). Defaults to the account minimum if omitted or 0.
- Prio
prionumber - 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
- Domain
domaintextRequired - Domain.
- Id
idtextRequired - 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
- Domain
domaintextRequired - Domain.
- Type
typetextRequired - DNS record type (A, AAAA, CNAME, MX, TXT, etc.)One of:
A,AAAA,ALIAS,CAA,CNAME,HTTPS,MX,NS,SRV,SSHFP, and 3 more. - Subdomain
subdomaintextRequired - 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
- Domain
domaintextRequired - Domain.
- Id
idtextRequired - 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
- Domain
domaintextRequired - Fully qualified domain name in the authenticated account.
- Include labels
include_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
- Domain
domaintextRequired - 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
- Domain
domaintextRequired - 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
- Tld
tldtext - 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
- Start
startnumber - Zero-based offset for pagination. Returns up to 1000 domains per call.
- Include labels
include_labelstext - Return label metadata for each domain. Defaults to no.One of:
yes,no. - Name contains
name_containstext - Substring match against the full domain name. Case-insensitive.
- Expiring within days
expiring_within_daysnumber - Filter to domains expiring within this many days.
- Added after
added_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 before
added_beforedate and time - Only domains added to this account at Porkbun before this date or date-time, UTC.
- Expires after
expires_afterdate and time - Only domains expiring at or after this date or date-time, UTC.
- Expires before
expires_beforedate and time - Only domains expiring before this date or date-time, UTC.
- Auto renew
auto_renewtext - Filter to domains with auto-renew on or off.One of:
yes,no. - Api access
api_accesstext - Filter to domains opted in to API access.One of:
yes,no. - Sort name
sort_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 direction
sort_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
- Domain
domaintextRequired - Domain.
Outputs
dataobject- The response from Porkbun.
Example output
{
"data": {
"glue": [],
"hosts": [],
"status": "example"
}
}List nameservers
Read the nameservers for a domain.
Inputs
- Domain
domaintextRequired - 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
- Domain
domaintextRequired - 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
- Domain
domaintextRequired - Domain.
- Id
idtextRequired - Numeric DNS record ID
- Name
nametext - Subdomain for the record. Do not include the domain name itself.
- Type
typetextRequired - DNS record typeOne of:
A,AAAA,MX,CNAME,ALIAS,TXT,NS,SRV,TLSA,CAA, and 6 more. - Content
contenttextRequired - The record value
- Ttl
ttlnumber - Time to live in seconds (optional)
- Prio
prionumber - Priority for MX/SRV records (optional)
Outputs
dataobject- The response from Porkbun.
Example output
{
"data": {
"code": "example",
"message": "example",
"status": "SUCCESS",
"warnings": []
}
}