DNS Coffee Search API
The search API from DNS Coffee — 4 operation(s) for search.
The search API from DNS Coffee — 4 operation(s) for search.
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-search-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 Search API
version: 1.47.1
contact:
email: api@dns.coffee
name: DNS Coffee
description: 'Operations tagged search 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: Search
paths:
/api/v1/search/domains:
get:
description: 'Searches the full domains table for names containing the term as a literal substring, matching both the punycode form and, for IDN rows, the decoded unicode form. Unicode terms are matched as typed (lowercased, NFC) — do not punycode-encode a partial term yourself, that destroys the substring relationship.
Results default to active domains only; `archived=true` widens to everything, ordered newest first. At most 250 results are returned, ranked over at most 5000 candidate matches within a 10 second budget: the `candidate_cap_hit` and `timed_out` response flags report when either bound truncated the result, so absence of a match is only conclusive when both flags are false.
Usage class: `lookup`.'
operationId: search-domains
parameters:
- description: Substring to search for. At least 4 characters not counting dots, dashes, and underscores; matched literally (no wildcards).
explode: false
in: query
name: q
required: true
schema:
description: Substring to search for. At least 4 characters not counting dots, dashes, and underscores; matched literally (no wildcards).
examples:
- coffee
minLength: 1
type: string
- description: Include archived (no longer active) results, not just active ones.
explode: false
in: query
name: archived
schema:
description: Include archived (no longer active) results, not just active ones.
type: boolean
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DomainSearchList'
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: Substring domain search
tags:
- Search
x-quota-class: lookup
servers:
- url: https://api.dns.coffee
/api/v1/search/nameservers:
get:
description: 'Searches the nameservers table for names containing the term as a literal substring, mirroring the domain substring search but matching the punycode form only and ranking results most-used first by live domain count (`domains_count`, stale zones left out). The same 250-result / 5000-candidate / 10 second bounds apply, reported by `candidate_cap_hit` and `timed_out`.
Usage class: `lookup`.'
operationId: search-nameservers
parameters:
- description: Substring to search for. At least 4 characters not counting dots, dashes, and underscores; matched literally (no wildcards).
explode: false
in: query
name: q
required: true
schema:
description: Substring to search for. At least 4 characters not counting dots, dashes, and underscores; matched literally (no wildcards).
examples:
- coffee
minLength: 1
type: string
- description: Include archived (no longer active) results, not just active ones.
explode: false
in: query
name: archived
schema:
description: Include archived (no longer active) results, not just active ones.
type: boolean
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/NameServerSearchList'
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: Substring nameserver search
tags:
- Search
x-quota-class: lookup
servers:
- url: https://api.dns.coffee
/api/v1/search/prefixes/available/{prefix}:
get:
description: 'The domains `{prefix}.` that are NOT currently registered in any zone we index — the web prefix search''s "available" view. A `last_seen` date on a row means the name was registered once and has since lapsed. Availability here means absent from the zone files we index; always confirm with a registrar before relying on it.
Usage class: `lookup`.'
operationId: search-prefixes-available
parameters:
- description: Domain-name prefix (the label(s) left of the TLD), without a trailing dot.
in: path
name: prefix
required: true
schema:
description: Domain-name prefix (the label(s) left of the TLD), without a trailing dot.
examples:
- coffee
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PrefixList'
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: Zones where a prefix is available
tags:
- Search
x-quota-class: lookup
servers:
- url: https://api.dns.coffee
/api/v1/search/prefixes/taken/{prefix}:
get:
description: 'The domains `{prefix}.` that are currently registered (have a current nameserver record) in any zone we index — the web prefix search''s "active" view. Each row carries the domain''s first-seen date, bounded by its zone''s first import when the domain pre-dates our indexing.
Usage class: `lookup`.'
operationId: search-prefixes-taken
parameters:
- description: Domain-name prefix (the label(s) left of the TLD), without a trailing dot.
in: path
name: prefix
required: true
schema:
description: Domain-name prefix (the label(s) left of the TLD), without a trailing dot.
examples:
- coffee
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PrefixList'
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: Zones where a prefix is taken
tags:
- Search
x-quota-class: lookup
servers:
- url: https://api.dns.coffee
components:
schemas:
DomainSearchResult:
additionalProperties: false
properties:
active:
description: True when any of the domain's nameserver records is current.
type: boolean
domain:
description: The matched domain name.
type: string
first_seen:
description: Date the domain was first observed. Absent when it was already present when tracking of its zone began.
format: date-time
type: string
last_seen:
description: Date the domain was last observed. Absent while it is still active.
format: date-time
type: string
required:
- domain
- active
type: object
PrefixResult:
additionalProperties: false
properties:
domain:
description: The domain name (the prefix under one zone).
type: string
first_seen:
description: Date the domain was first observed. Absent when it was already present when tracking of its zone began.
format: date-time
type: string
last_seen:
description: Date the domain was last observed. On an available row, a set last_seen means the name was registered once and has since lapsed.
format: date-time
type: string
pre_indexing:
description: 'True when the domain was already present when its zone was first indexed: first_seen is then unknown and zone_first_import holds the earliest bound.'
type: boolean
zone:
description: The zone the domain belongs to.
type: string
zone_first_import:
description: 'The zone''s first import date, set only for pre_indexing rows: the domain is known to have existed before this date.'
format: date-time
type: string
required:
- domain
type: object
NameServerSearchList:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.dns.coffee/schemas/NameServerSearchList.json
format: uri
readOnly: true
type: string
candidate_cap_hit:
description: 'True when the candidate scan stopped early at its cap: the results are the most-used of the first matches found, not a complete answer.'
type: boolean
include_archived:
description: Whether archived (no longer active) nameservers were included.
type: boolean
nameservers:
description: The matching nameservers, most-used first.
items:
$ref: '#/components/schemas/NameServerSearchResult'
type:
- array
- 'null'
term:
description: The normalized term that was searched.
type: string
timed_out:
description: True when the search exceeded its time budget; no results are returned then. Absence of a match is only conclusive when both timed_out and candidate_cap_hit are false.
type: boolean
required:
- term
- include_archived
- candidate_cap_hit
- timed_out
- nameservers
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
PrefixList:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.dns.coffee/schemas/PrefixList.json
format: uri
readOnly: true
type: string
active:
description: Whether this is the taken (true) or available (false) view of the prefix.
type: boolean
domains:
description: The matching domains, one per zone.
items:
$ref: '#/components/schemas/PrefixResult'
type:
- array
- 'null'
prefix:
description: The searched prefix.
type: string
required:
- active
- prefix
- domains
type: object
DomainSearchList:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.dns.coffee/schemas/DomainSearchList.json
format: uri
readOnly: true
type: string
candidate_cap_hit:
description: 'True when the candidate scan stopped early at its cap: the results are the newest of the first matches found, not a complete answer.'
type: boolean
domains:
description: The matching domains, newest first.
items:
$ref: '#/components/schemas/DomainSearchResult'
type:
- array
- 'null'
include_archived:
description: Whether archived (no longer active) domains were included.
type: boolean
term:
description: The normalized term that was searched.
type: string
timed_out:
description: True when the search exceeded its time budget; no results are returned then. Absence of a match is only conclusive when both timed_out and candidate_cap_hit are false.
type: boolean
required:
- term
- include_archived
- candidate_cap_hit
- timed_out
- domains
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
NameServerSearchResult:
additionalProperties: false
properties:
active:
description: True when the nameserver is currently in use.
type: boolean
domains_count:
description: 'Number of domains using the nameserver, leaving out zones we have not received in over six months (stale on /zones): the live count. Lists are ranked by it, most-used first, unless their description says otherwise.'
format: int64
type: integer
first_seen:
description: Date the nameserver was first observed. Absent when it was already present when tracking of its zone began.
format: date-time
type: string
last_seen:
description: Date the nameserver was last observed. Absent while it is still active.
format: date-time
type: string
name:
description: The nameserver hostname.
type: string
stale_domains_count:
description: Number of domains using the nameserver in zones we have not received in over six months. They are left out of domains_count; domains_count + stale_domains_count is every current delegation.
format: int64
type: integer
required:
- name
- active
- domains_count
- stale_domains_count
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