List TLDs
Returns a paginated list of TLDs in the order defined in the config file. By default, only enabled TLDs are returned.
Filters
- status:
enabled(default),disabled, orall - category: Comma-separated list of
gtld,ngtld,cctld,stld - exclude: Comma-separated TLD names to omit from results (e.g.,
com,net)
Categories
| Category | Description |
|---|---|
| gtld | Generic TLDs (.com, .net, .org) |
| ngtld | New Generic TLDs post-2012 (.app, .dev, .xyz) |
| cctld | Country Code TLDs (.io, .ai, .in) |
| stld | Sponsored TLDs (.edu, .gov) |
Query Parameters
- Type: stringstatus
Filter by status: enabled (default), disabled, all
- Type: stringcategory
Filter by category (comma-separated): gtld, ngtld, cctld, stld
- Type: stringexclude
Comma-separated TLD names to exclude (e.g., com,net)
- Type: integerlimit
Items per page (default 100, max 500)
- Type: stringcursor
Pagination cursor for next page
Responses
- application/json
Request Example for get/tlds
curl 'https://api.nametrust.com/tlds?status=&category=&exclude=&limit=1&cursor='
{
"object": "list",
"items": [
{
"object": "tld",
"name": "com",
"category": "gtld"
}
],
"pages": {
"object": "cursor",
"has_prev": true,
"direction": "next",
"cursor": "abc123",
"next_cursor": "def456",
"prev_cursor": "xyz789",
"page": 2,
"total_pages": 10,
"total_items": 100,
"limit": 20,
"has_next": true
}
}