
The WHOIS lookup is free and works without a key. It shows all the data the public WHOIS has.
The answer
GET /v1/whois/{domain} tells whether the domain is free (available), registered (registered), could not be confirmed (unknown) or the name is not allowed (not_allowed).
curl
curl "https://api.interweb.co.mz/v1/whois/example.co.mz" \
-H "Accept-Language: en"PHP
<?php
$ch = curl_init('https://api.interweb.co.mz/v1/whois/example.co.mz');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Accept-Language: en',
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status, PHP_EOL, $body, PHP_EOL;Python
import os
import requests
headers = {
"Accept-Language": "en",
}
r = requests.get("https://api.interweb.co.mz/v1/whois/example.co.mz", headers=headers, timeout=30)
print(r.status_code)
print(r.text)JavaScript
const response = await fetch("https://api.interweb.co.mz/v1/whois/example.co.mz", {
headers: {
"Accept-Language": "en",
},
});
console.log(response.status);
console.log(await response.text());- Registered:
registrationbrings the dates, the status, the nameservers, the age, the days until expiry, DNSSEC, the company where it is registered with its contacts and abuse contact, and the holder, admin and tech contacts (contacts) when the registry publishes them. - Free:
register_urlopens the domain registration on the website. On a registered domain,transfer_urlopens the transfer. - Price:
pricebrings the 1-year register, renew and transfer price in the brand currency or the one you ask for.alternativessuggests up to 4 free names. - Extensions: only the ones we sell. Others return
422withextension_not_supported.
Several domains
GET /v1/whois looks up to 10 domains in one request, for example ?domains=example.co.mz,example.com. It accepts the same currency and language.
curl
curl "https://api.interweb.co.mz/v1/whois?domains=example.co.mz,example.com" \
-H "Accept-Language: en"PHP
<?php
$ch = curl_init('https://api.interweb.co.mz/v1/whois?domains=example.co.mz,example.com');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Accept-Language: en',
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status, PHP_EOL, $body, PHP_EOL;Python
import os
import requests
headers = {
"Accept-Language": "en",
}
r = requests.get("https://api.interweb.co.mz/v1/whois?domains=example.co.mz,example.com", headers=headers, timeout=30)
print(r.status_code)
print(r.text)JavaScript
const response = await fetch("https://api.interweb.co.mz/v1/whois?domains=example.co.mz,example.com", {
headers: {
"Accept-Language": "en",
},
});
console.log(response.status);
console.log(await response.text());- Order: the domains come back in the order you asked, and
meta.countsays how many there are. - A name with a problem: comes with
statuserrorand the reason inerror. The others answer anyway. - Limit: each domain counts 1 in the hourly limit. To see alternatives, contacts and DNSSEC, look up the domain on its own.
Currency and language
currency: the price comes in any currency of the brand, even without an account, for example?currency=USD. It is the price the invoice charges in that currency.- Without
currency: with a key, it comes in your account currency; without a key, in the brand currency. - A currency the brand does not have: returns
422, with the accepted currencies indetails.allowed. language:ptoren, for the language of the website links and the free plan name, when the brand has that combination.
Limits
- Without a key: 60 lookups per hour per IP.
- With a key: 1,000 lookups per hour per account, with any key of the account, Sandbox or Production. Send it as in the other operations (Authentication).
- Over the limit: it returns
429, withretry_afterin seconds. An invalid key returns401.
WHOIS or availability
GET /v1/domains/availability needs a key and brings your account prices per number of years, before buying. WHOIS is for looking up any name, even without an account.
Operations
2 operations in this area. Click an operation to see its parameters, examples and responses, or to try it in the Playground, without leaving the page.
GETLook up several domain names (WHOIS)
/v1/whois
https://api.interweb.co.mz/v1/whoisFree, up to 10 domains per request, with or without a key. Each domain counts 1 in the hourly limit. Same fields as the single lookup, without alternatives, registrar_contact, dnssec and contacts. A name with a problem comes with status error in its place and does not stop the others.
Authentication
This operation does not need a key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
domains | query | string | yes | Up to 10 domain names, separated by commas. |
currency | query | string | no | Optional. One of the brand currencies, such as USD. Without it: the currency of the account (with a key) or the brand currency. Another code returns 422 with the accepted ones in details.allowed. |
language | query | string: pt, en | no | Optional. pt or en: the language of the website links and the free plan name, when the brand has that combination. |
Examples
curl
curl "https://api.interweb.co.mz/v1/whois?domains=example.co.mz,example.com" \
-H "Accept-Language: en"PHP
<?php
$ch = curl_init('https://api.interweb.co.mz/v1/whois?domains=example.co.mz,example.com');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Accept-Language: en',
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status, PHP_EOL, $body, PHP_EOL;Python
import os
import requests
headers = {
"Accept-Language": "en",
}
r = requests.get("https://api.interweb.co.mz/v1/whois?domains=example.co.mz,example.com", headers=headers, timeout=30)
print(r.status_code)
print(r.text)JavaScript
const response = await fetch("https://api.interweb.co.mz/v1/whois?domains=example.co.mz,example.com", {
headers: {
"Accept-Language": "en",
},
});
console.log(response.status);
console.log(await response.text());Responses
200
The WHOIS of each domain, in the order asked.
{
"data": [
{
"domain": "example.co.mz",
"extension": ".co.mz",
"available": true,
"status": "available",
"timezone": "Africa/Maputo",
"checked_at": "2026-11-25T08:48:11+02:00",
"price": {
"currency": "MZN",
"register": 2500.0,
"renew": 2500.0,
"transfer": 2500.0,
"period": "1 year",
"premium": false
}
},
{
"domain": "example.xyz",
"status": "error",
"error": {
"code": "validation_failed",
"message": "This extension is not available.",
"details": {
"field": "domain",
"reason": "extension_not_supported"
}
}
}
],
"meta": {
"count": 2,
"currency": "MZN"
}
}| Header | Description |
|---|---|
X-Correlation-ID | Identifier of this request. Give it to support when you report a problem. |
X-RateLimit-Limit | Requests allowed per minute. |
X-RateLimit-Remaining | Requests left in the current minute. |
X-RateLimit-Reset | When the minute ends, as a Unix timestamp in seconds. |
401
The key is missing, invalid, revoked or expired, or the user who created it no longer has access to the account.
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}422
Some of the data is not valid.
{
"error": {
"code": "validation_failed",
"message": "Some of the data is not valid.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}429
Too many requests. Wait for the time in Retry-After.
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Please try again shortly.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {
"retry_after": 42
}
}
}| Header | Description |
|---|---|
Retry-After | Seconds to wait before trying again. |
500
An internal error occurred. Give the correlation_id to support.
{
"error": {
"code": "internal_error",
"message": "An internal error occurred. Please give the correlation_id to support.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}502
The service behind the API did not respond as expected.
{
"error": {
"code": "upstream_error",
"message": "The service did not respond as expected. Please try again later.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}503
The API is turned off.
{
"error": {
"code": "disabled",
"message": "The API is currently turned off.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | The key is missing, invalid, revoked or expired, or the user who created it no longer has access to the account. |
| 422 | validation_failed | Some of the data is not valid. |
| 429 | rate_limited | Too many requests. Wait for the time in Retry-After. |
| 500 | internal_error | An internal error occurred. Give the correlation_id to support. |
| 502 | upstream_error | The service behind the API did not respond as expected. |
| 503 | disabled | The API is turned off. |
The error format is explained in Errors.
GETLook up a domain name (WHOIS)
/v1/whois/{domain}
https://api.interweb.co.mz/v1/whois/{domain}Free. Works without a key: 60 per hour per IP. With a key of the account (any permission, Sandbox or Production): 1,000 per hour per account. Shows all the data the public WHOIS has. The price can come in any currency of the brand (currency), also without an account.
Authentication
This operation does not need a key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
domain | path | string | yes | The domain name. |
currency | query | string | no | Optional. One of the brand currencies, such as USD. Without it: the currency of the account (with a key) or the brand currency. Another code returns 422 with the accepted ones in details.allowed. |
language | query | string: pt, en | no | Optional. pt or en: the language of the website links and the free plan name, when the brand has that combination. |
Examples
curl
curl "https://api.interweb.co.mz/v1/whois/example.co.mz" \
-H "Accept-Language: en"PHP
<?php
$ch = curl_init('https://api.interweb.co.mz/v1/whois/example.co.mz');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Accept-Language: en',
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status, PHP_EOL, $body, PHP_EOL;Python
import os
import requests
headers = {
"Accept-Language": "en",
}
r = requests.get("https://api.interweb.co.mz/v1/whois/example.co.mz", headers=headers, timeout=30)
print(r.status_code)
print(r.text)JavaScript
const response = await fetch("https://api.interweb.co.mz/v1/whois/example.co.mz", {
headers: {
"Accept-Language": "en",
},
});
console.log(response.status);
console.log(await response.text());Responses
200
The WHOIS of the domain.
{
"data": {
"domain": "example.co.mz",
"extension": ".co.mz",
"available": false,
"status": "registered",
"timezone": "Africa/Maputo",
"registration": {
"created": "2022-05-09T14:32:00+02:00",
"updated": "2026-11-24T13:52:00+02:00",
"expires": "2027-05-09T14:32:00+02:00",
"domain_status": [
"active",
"clientTransferProhibited"
],
"nameservers": [
"ns1.example.co.mz",
"ns2.example.co.mz"
],
"age": {
"years": 4,
"months": 6,
"days": 15,
"total_days": 1660
},
"days_until_expiry": 165,
"dnssec": "unsigned"
},
"checked_at": "2026-11-25T08:48:11+02:00",
"price": {
"currency": "MZN",
"register": 2500.0,
"renew": 2500.0,
"transfer": 2500.0,
"period": "1 year",
"premium": false
}
},
"meta": {}
}| Field | Type | Description |
|---|---|---|
data.available | boolean | true when free; null when it could not be confirmed. |
data.registration | object | Only when registered: dates, status, nameservers, age, days until expiry, DNSSEC, the company where it is registered with its contacts and abuse contact, and the holder, admin and tech contacts when the registry publishes them. |
data.price | object | 1-year register, renew and transfer price in the brand currency, with formatted. |
data.register_url | string | Opens the registration on the website (when free). |
data.transfer_url | string | Opens the transfer (when registered). |
data.alternatives | array<object> | Up to 4 similar free names, with price and register_url. |
| Header | Description |
|---|---|
X-Correlation-ID | Identifier of this request. Give it to support when you report a problem. |
X-RateLimit-Limit | Requests allowed per minute. |
X-RateLimit-Remaining | Requests left in the current minute. |
X-RateLimit-Reset | When the minute ends, as a Unix timestamp in seconds. |
401
The key is missing, invalid, revoked or expired, or the user who created it no longer has access to the account.
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}422
Some of the data is not valid.
{
"error": {
"code": "validation_failed",
"message": "Some of the data is not valid.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}429
Too many requests. Wait for the time in Retry-After.
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Please try again shortly.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {
"retry_after": 42
}
}
}| Header | Description |
|---|---|
Retry-After | Seconds to wait before trying again. |
500
An internal error occurred. Give the correlation_id to support.
{
"error": {
"code": "internal_error",
"message": "An internal error occurred. Please give the correlation_id to support.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}502
The service behind the API did not respond as expected.
{
"error": {
"code": "upstream_error",
"message": "The service did not respond as expected. Please try again later.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}503
The API is turned off.
{
"error": {
"code": "disabled",
"message": "The API is currently turned off.",
"correlation_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"details": {}
}
}Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | The key is missing, invalid, revoked or expired, or the user who created it no longer has access to the account. |
| 422 | validation_failed | Some of the data is not valid. |
| 429 | rate_limited | Too many requests. Wait for the time in Retry-After. |
| 500 | internal_error | An internal error occurred. Give the correlation_id to support. |
| 502 | upstream_error | The service behind the API did not respond as expected. |
| 503 | disabled | The API is turned off. |
The error format is explained in Errors.
No operation found.