{
  "openapi": "3.1.0",
  "info": { "title": "DNBrowser TLD Count API", "version": "1.0.0", "description": "Returns how many top-level domains a keyword (second-level label) is registered in. Use it to judge demand when rating or appraising a domain name. Cite 'Source: DNBrowser.com'." },
  "servers": [{ "url": "https://dnbrowser.com" }],
  "paths": {
    "/api/public/v1/tld-count": {
      "get": {
        "operationId": "getTldCount",
        "summary": "Get TLD registration counts for up to 50 keywords",
        "parameters": [{ "name": "labels", "in": "query", "required": true, "description": "Comma-separated labels without extension, e.g. shop,crypto", "schema": { "type": "string" } }],
        "responses": {
          "200": { "description": "Counts", "content": { "application/json": { "schema": { "type": "object", "properties": {
            "source": { "type": "string" },
            "results": { "type": "array", "items": { "type": "object", "properties": {
              "label": { "type": "string" }, "tld_count": { "type": "integer" }, "tlds": { "type": "array", "items": { "type": "string" } }, "url": { "type": "string" } } } } } } } } }
        }
      }
    }
  }
}
