Skip to main content
GET
/
domains
List domains
curl --request GET \
  --url https://rdp.sh/api/v1/domains \
  --header 'Authorization: <api-key>'
import requests

url = "https://rdp.sh/api/v1/domains"

headers = {"Authorization": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<api-key>'}};

fetch('https://rdp.sh/api/v1/domains', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://rdp.sh/api/v1/domains",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://rdp.sh/api/v1/domains"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://rdp.sh/api/v1/domains")
  .header("Authorization", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://rdp.sh/api/v1/domains")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'

response = http.request(request)
puts response.read_body
[
  {
    "id": 123,
    "domain_name": "<string>",
    "status": "<string>",
    "provider": "<string>",
    "auto_renew": true,
    "whois_privacy": true,
    "lock_status": true,
    "use_rdp_nameservers": true,
    "nameservers": [
      "<string>"
    ],
    "registration_date": "<string>",
    "expiry_date": "<string>",
    "days_until_expiry": 123,
    "is_expiring_soon": true,
    "dns_records_count": 123,
    "created_at": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Response

200 - application/json

The authenticated user's domains.

id
integer
Example:

1

domain_name
string
Example:

"example.com"

status
string

Domain lifecycle status.

Examples:

"active"

"suspended"

"transferring"

"expired"

provider
string

Registrar backing the domain.

Examples:

"internetbs"

"netim"

auto_renew
boolean
whois_privacy
boolean
lock_status
boolean

Whether the registrar transfer lock is enabled.

use_rdp_nameservers
boolean

Whether the domain uses RDP.sh-managed nameservers.

nameservers
string[]
Examples:

"ns1.rdp.sh"

"ns2.rdp.rs"

registration_date
string | null
Example:

"2025-01-01T00:00:00.000000Z"

expiry_date
string | null
Example:

"2027-01-01T00:00:00.000000Z"

days_until_expiry
integer | null
Example:

180

is_expiring_soon
boolean

True when the domain expires within 30 days.

dns_records_count
integer
Example:

2

created_at
string
Example:

"2025-01-01T00:00:00.000000Z"