# List domain endings

> The top level domains manitu registers under - for checking a name before an order.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: stable
- MCP tool: `manitu_public_domain_tld_list` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/public/domain/tld/list`
- Page: /reference/public/domain/tld/list/

## MCP tool

`manitu_public_domain_tld_list`

### Description for the model

Lists the top level domains (.de, .com, ...) manitu registers domains under, with what the name before them may be (sld_regex) and, for a country's TLD, the country (country_name). Without prices - [`manitu_public_domain_tld_get`](/reference/public/domain/tld/get.md) has them for one TLD. The same for everyone, about no account. Read-only.

### Arguments

Takes no arguments.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_public_domain_tld_list",
    "arguments": {}
  }
}
```

## REST

`POST https://api.manitu.de/v1/public/domain/tld/list`

### Description

Lists the top level domains (.de, .com, ...) manitu registers domains under, with what the name before them may be (sld_regex) and, for a country's TLD, the country (country_name) - the same for everyone, about no account. Without prices: those of one TLD are [`POST /v1/public/domain/tld/get`](/reference/public/domain/tld/get.md). Changes nothing.

### Authentication

None - this operation needs no credential.

### Request body

JSON; unknown fields are refused.

No fields - send {} or no body.

### Response

In `data`; the rest of the body as on every call.

- `tld_list` (array of object, required)
  - `tld_list[].tld` (string, required) - The TLD without dot, with international characters, e.g. de, com, köln.
  - `tld_list[].tld_ascii` (string, required) - The same in ASCII, e.g. xn--kln-sna.
  - `tld_list[].group` (string, required) - cctld: of a country; gtld: generic. (one of `"cctld"`, `"gtld"`)
  - `tld_list[].country_code` (string | null, required) - ISO 3166-1 alpha-2 of the country, for a ccTLD.
  - `tld_list[].country_name` (object | null, required) - The country of a ccTLD; null for a generic TLD.
    - `tld_list[].country_name.de` (string, required) - In German, e.g. Deutschland.
    - `tld_list[].country_name.en` (string, required) - In English, e.g. Germany.
    - `tld_list[].country_name.native` (string | null, required) - In the country's own language and script, e.g. Deutschland, Österreich, 日本 - null where it is not known.
  - `tld_list[].sld_regex` (string, required) - What the name before the TLD may be - a PCRE with delimiters, on the lower case name.

### Statuses

- `200` Success.
- `400` The input is wrong, or the request itself (INVALID_INPUT). Each entry names its field and its reason - correct the input and call again.
- `429` Too many calls. The Retry-After header says when to try again.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST \
  'https://api.manitu.de/v1/public/domain/tld/list' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

## Example result

```json
{
  "tld_list": [
    {
      "tld": "string",
      "tld_ascii": "string",
      "group": "cctld",
      "country_code": "string",
      "country_name": {
        "de": "string",
        "en": "string",
        "native": "string"
      },
      "sld_regex": "string"
    }
  ]
}
```
