# Show domain ending with prices

> One top level domain with minimum term and prices - for end customers and resellers.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: beta
- MCP tool: `manitu_domain_tld_get` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/domain/tld/get`
- Page: /reference/domain/tld/get/

## MCP tool

`manitu_domain_tld_get`

### Description for the model

Tells for one top level domain (.de, .com, ...) what a domain under it costs at manitu and its minimum term. Two prices, in cent, net, EUR: enduser - with a web hosting package, where web, mail and support come from manitu; reseller - domain and DNS only, for customers who run their own servers, practically without support. Which one applies depends on what the domain is ordered with - name both when unsure. Read-only; nothing is ordered.

### Arguments

- `tld` (string, required) - The TLD, e.g. de, .com or köln. (minLength `1`; maxLength `63`)

### Example

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

## REST

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

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `tld` (string, required) - The TLD, e.g. de, .com or köln. (minLength `1`; maxLength `63`)

### Response

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

- `tld` (string, required) - The TLD without dot, with international characters, e.g. de, com, köln.
- `tld_ascii` (string, required) - The same in ASCII, e.g. xn--kln-sna.
- `group` (string, required) - cctld: of a country; gtld: generic. (one of `"cctld"`, `"gtld"`)
- `country_code` (string | null, required) - ISO 3166-1 alpha-2 of the country, for a ccTLD.
- `sld_regex` (string, required) - What the name before the TLD may be - a PCRE with delimiters, on the lower case name.
- `country_name_de` (string | null, required) - The country, in German, for a ccTLD.
- `contract_term` (object, required) - The minimum term of a registration.
  - `contract_term.type` (string | null, required) - The unit of the minimum term. (one of `"month"`, `"year"`, `null`)
  - `contract_term.length` (integer | null, required) - How many units the minimum term is.
- `price` (object, required) - In cent, net, EUR. Which applies depends on what the domain is ordered with.
  - `price.enduser` (object, required) - With a web hosting package (web, mail and support at manitu).
    - `price.enduser.setup_cent` (integer | null, required) - Once, for the registration - null: none.
    - `price.enduser.maintenance_cent` (integer | null, required) - Per period.
    - `price.enduser.period_type` (string | null, required) - The unit of the period. (one of `"month"`, `"year"`, `null`)
    - `price.enduser.period_length` (integer | null, required) - How many units one period is.
  - `price.reseller` (object, required) - Domain and DNS only, for customers of servers - practically no support.
    - `price.reseller.setup_cent` (integer | null, required) - Once, for the registration - null: none.
    - `price.reseller.maintenance_cent` (integer | null, required) - Per period.
    - `price.reseller.period_type` (string | null, required) - The unit of the period. (one of `"month"`, `"year"`, `null`)
    - `price.reseller.period_length` (integer | null, required) - How many units one period is.

### Statuses

- `200` Success.
- `400` The request does not match the declared input schema.
- `401` No credential was presented, or it was not recognised.
- `403` The credential is not permitted to use this operation.
- `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/domain/tld/get' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"tld":"string"}'
```

## Example result

```json
{
  "tld": "string",
  "tld_ascii": "string",
  "group": "cctld",
  "country_code": "string",
  "sld_regex": "string",
  "country_name_de": "string",
  "contract_term": {
    "type": "month",
    "length": 1
  },
  "price": {
    "enduser": {
      "setup_cent": 1190,
      "maintenance_cent": 1190,
      "period_type": "month",
      "period_length": 1
    },
    "reseller": {
      "setup_cent": 1190,
      "maintenance_cent": 1190,
      "period_type": "month",
      "period_length": 1
    }
  }
}
```
