TLD bug

Public API

Suffix query and export API, RESTful + JSON / CSV. Every account is automatically assigned one AK; queries and exports must be verified via X-API-Key.
REST
API style
JSON responses · UTF-8
1 AK
Auto-assigned per account
Verified via X-API-Key header
CSV/JSON
Export formats
All matching results · AK required

My AK

Sign in to get an AK automatically assigned; no manual application is needed.

Sign in to get an AK

Send the AK via the X-API-Key header; no SK, signature or encrypted wrapper is required. Keep it safe and never share it or put it in public pages or code repositories. Signing out does not revoke the AK.

Endpoints

From /api/site/openapi
Loading real data…

Online trial · GET /api/v1/tlds

Shares the same comparison conditions as the pages; the year count decides total-cost fields, and exports use the same conditions. Requests and exports both require a valid AK; a missing or wrong AK returns 401.

Conditions
Suffix type
Payments
A valid published snapshot and an API key is required.
Conditions are global: years set the total-cost column; privacy, transfer and ICANN apply to the suffix; payments, language and currency apply to the quoted registrar.
GET /api/v1/tlds?locale=enX-API-Key: [PRIVATE INPUT]

Defaults to 100 rows per page; fields, sorting, missing states, snapshots and bundled service order match the public pages. No fake responses are constructed on the client.

curl

curl "$TLDBUG_ORIGIN/api/v1/tlds?years=3&currency=USD&pageSize=100" \
  -H "X-API-Key: $TLDBUG_API_KEY"

Keep the AK in a local environment variable; never write it into the URL.

JavaScript · server side

const response = await fetch(
  `${process.env.TLDBUG_ORIGIN}/api/v1/tlds?years=3&currency=USD`,
  { headers: { 'X-API-Key': process.env.TLDBUG_API_KEY } }
);
const { data, meta } = await response.json();

FAQ

Does the API cost money?

Query and export endpoints are available now, and every request must verify an AK; each account is automatically assigned one, with no manual creation. Quotas and rate limits follow what the server returns and are never invented when absent.

How do I use and protect my AK?

After signing in, read and copy your account AK privately. Send it via the X-API-Key header; no SK, signature or encrypted wrapper is required. Never put the AK in URLs, public pages or code repositories. If leaked, disable and reset it; signing out does not revoke it automatically.

Which query parameters are supported?

They match the site filters: years (1/2/3/5/10-year cost), currency, locale, privacy, transfer, icann, payments, types, search, page, pageSize, sort, direction, plus viewId / releaseId for a fixed snapshot; see the OpenAPI contract for the full list.

What is the export scope?

The online trial and exports use the same conditions; exports include every matching result rather than the current page. CSV ships with a UTF-8 BOM and JSON carries structured fields; exports require a valid AK and a fixed published snapshot.

How often is data updated?

Only published price snapshots are used, and responses carry releaseId / generation for checking the basis; unpublished data or missing FX rates return explicit warnings instead of guessing prices.