{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/porkbun-com/json-schema/porkbun-com-check-domain-response-schema.json",
  "title": "CheckDomainResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/porkbun-com-openapi.json#/components/schemas/CheckDomainResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "response": {
      "type": "object",
      "properties": {
        "avail": {
          "type": "string",
          "enum": [
            "yes",
            "no"
          ],
          "description": "Whether the domain is available for registration"
        },
        "type": {
          "type": "string",
          "description": "The price type (always 'registration' for the primary price)"
        },
        "price": {
          "type": "string",
          "description": "Registration price per year in USD"
        },
        "firstYearPromo": {
          "type": "string",
          "enum": [
            "yes",
            "no"
          ],
          "description": "Whether the returned price is a first-year promotional price"
        },
        "regularPrice": {
          "type": "string",
          "description": "Standard (non-promo) registration price in USD"
        },
        "premium": {
          "type": "string",
          "enum": [
            "yes",
            "no"
          ],
          "description": "Whether this is a premium domain"
        },
        "minDuration": {
          "type": "integer",
          "description": "Minimum registration duration in years required by the registry"
        },
        "idnLanguages": {
          "type": "array",
          "description": "Present for an internationalized domain name whose registry needs its language: the accepted languages. Send one as `idnLanguage` to /domain/create",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "code": {
                "type": "string"
              }
            }
          }
        },
        "inYourAccount": {
          "type": "boolean",
          "description": "Present and true when the domain is already in the caller's account. `price` is still the registration price; renewal is `additional.renewal.price`"
        },
        "aftermarketSearch": {
          "type": "string",
          "description": "Present when the domain is registered to someone else: the `/aftermarket/search` path that shows whether it is for sale, at what price, and where to buy it."
        },
        "note": {
          "type": "string",
          "description": "Present with inYourAccount (which price applies to renewing) or with aftermarketSearch (the name may be for sale)"
        },
        "additional": {
          "type": "object",
          "description": "Renewal and transfer pricing for this domain",
          "properties": {
            "renewal": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "price": {
                  "type": "string"
                },
                "regularPrice": {
                  "type": "string"
                }
              }
            },
            "transfer": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "price": {
                  "type": "string"
                },
                "regularPrice": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "limits": {
      "type": "object",
      "description": "Current rate limit usage for this account",
      "properties": {
        "TTL": {
          "type": "integer",
          "description": "Rate limit window in seconds"
        },
        "limit": {
          "type": "integer",
          "description": "Maximum checks allowed in the window"
        },
        "used": {
          "type": "integer",
          "description": "Number of checks used so far in the current window"
        },
        "naturalLanguage": {
          "type": "string",
          "description": "Human-readable rate limit summary"
        }
      }
    },
    "ttlRemaining": {
      "type": "integer",
      "description": "Seconds remaining until the rate limit window resets"
    }
  },
  "required": [
    "status",
    "response"
  ]
}