DNS Coffee Records API
The records API from DNS Coffee — 1 operation(s) for records.
The records API from DNS Coffee — 1 operation(s) for records.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/dns-coffee:dns-coffee-records-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Dns Coffee Records API
version: 1.47.1
contact:
email: api@dns.coffee
name: DNS Coffee
description: 'Operations tagged records across 2 of this provider''s published API definitions: dns-coffee-openapi.json, dns-coffee-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.dns.coffee
security:
- api_key: []
tags:
- name: Records
paths:
/api/v1/records/stats:
get:
description: 'An overview of the catch-all zone-file records (record types with no dedicated endpoint, such as TXT, MX, SRV, CAA and CNAME; DS records are tracked separately, on the DNSSEC endpoints): the total number of active records, the breakdown by RR type, the top SRV service labels, and the zones with the most records (up to `limit`, default 25), each with its `last_import` date and a `stale` flag. A record is active when it is present in its zone''s most recent import, so a zone that has not been imported for a long time keeps its last import''s records counted as active; `stale` marks zones not imported for more than six months. Zone files that publish only delegations and the zone''s own SOA and DNSSEC records have no catch-all records, so they never appear in the ranking; raise `limit` to list every zone that has any. This aggregates roughly 410K active rows and takes a few seconds.
Usage class: `lookup`.'
operationId: records-stats
parameters:
- description: Maximum number of zones to return in the by-zone ranking. Only zones that have catch-all records are ranked.
explode: false
in: query
name: limit
schema:
default: 25
description: Maximum number of zones to return in the by-zone ranking. Only zones that have catch-all records are ranked.
examples:
- 25
format: int64
maximum: 1000
minimum: 1
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/RecordsOverview'
description: OK
'429':
content:
application/json:
schema:
properties:
error:
properties:
detail:
description: Human-readable explanation of the error.
type: string
status:
description: HTTP status code, 429.
type: integer
title:
description: Short summary of the error.
type: string
type: object
type: object
description: 'Too Many Requests: the account''s rate limit (or, without a key, the client address''s) is exceeded, or the account''s allowance for this operation''s usage class is used up until the window resets. Retry after the number of seconds in `Retry-After`; `detail` says which limit applied.'
headers:
RateLimit-Policy:
description: The plan's rate limit, as `"rate";q=<requests>;w=60` (requests per 60 seconds). Sent on authenticated requests.
schema:
type: string
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Limit:
description: Requests that can be sent back-to-back from idle (the burst), not the per-minute rate.
schema:
type: integer
X-RateLimit-Remaining:
description: Requests that can be sent back-to-back now.
schema:
type: integer
X-RateLimit-Reset:
description: Seconds until the full burst is available again.
schema:
type: integer
default:
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Error
summary: Catch-all record statistics
tags:
- Records
x-quota-class: lookup
servers:
- url: https://api.dns.coffee
components:
schemas:
RecordZoneCount:
additionalProperties: false
properties:
count:
description: Number of active records in the zone.
format: int64
type: integer
last_import:
description: Date of the zone's most recent import. Its records are counted as active as of this date.
format: date-time
type:
- string
- 'null'
stale:
description: True when we have not received a zone file for the zone in over six months (the stale flag on /zones), so its records may no longer match the zone as currently published.
type: boolean
zone:
description: Zone name.
type: string
required:
- zone
- count
- last_import
- stale
type: object
ErrorDetail:
additionalProperties: false
properties:
location:
description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
type: string
message:
description: Error message text
type: string
value:
description: The value at the given location
type: object
ErrorModel:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.dns.coffee/schemas/ErrorModel.json
format: uri
readOnly: true
type: string
detail:
description: A human-readable explanation specific to this occurrence of the problem.
examples:
- Property foo is required but is missing.
type: string
errors:
description: Optional list of individual error details
items:
$ref: '#/components/schemas/ErrorDetail'
type:
- array
- 'null'
instance:
description: A URI reference that identifies the specific occurrence of the problem.
examples:
- https://example.com/error-log/abc123
format: uri
type: string
status:
description: HTTP status code
examples:
- 400
format: int64
type: integer
title:
description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
examples:
- Bad Request
type: string
type:
default: about:blank
description: A URI reference to human-readable documentation for the error.
examples:
- https://example.com/errors/example
format: uri
type: string
type: object
SRVServiceCount:
additionalProperties: false
properties:
count:
description: Number of active SRV records for the service.
format: int64
type: integer
service:
description: The SRV service label (the leading _service._proto component of the owner name).
type: string
required:
- service
- count
type: object
RecordTypeCount:
additionalProperties: false
properties:
count:
description: Number of active records of this type.
format: int64
type: integer
type:
description: Numeric RR type.
format: int64
type: integer
type_name:
description: RR type mnemonic, or the RFC 3597 TYPE<n> form.
type: string
required:
- type
- type_name
- count
type: object
RecordsOverview:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.dns.coffee/schemas/RecordsOverview.json
format: uri
readOnly: true
type: string
srv_services:
description: Top SRV service labels, largest first.
items:
$ref: '#/components/schemas/SRVServiceCount'
type:
- array
- 'null'
total:
description: Total number of active catch-all records (the sum of the type breakdown).
format: int64
type: integer
types:
description: Record-type breakdown, largest first.
items:
$ref: '#/components/schemas/RecordTypeCount'
type:
- array
- 'null'
zones:
description: Zones with the most records, largest first.
items:
$ref: '#/components/schemas/RecordZoneCount'
type:
- array
- 'null'
required:
- total
- types
- srv_services
- zones
type: object
securitySchemes:
api_key:
description: API key issued by DNS Coffee.
in: header
name: X-API-Key
type: apiKey
x-refined-from:
- dns-coffee-openapi.json
- dns-coffee-openapi.yml