1
Sign Up
Create a free account so you can access the dashboard and start using DomScan.
Start FreeMake your first availability check in seconds. These examples call the /v1/status endpoint and return availability across multiple TLDs.
Create a free account so you can access the dashboard and start using DomScan.
Start FreeGenerate your first API key in the dashboard and start with 10,000 free credits every month.
DashboardUse the sample below to call the /v1/status endpoint and check availability across multiple TLDs.
Browse the full API catalog and jump into guides for availability, RDAP, health checks, and more.
Use the sample below to call the /v1/status endpoint and check availability across multiple TLDs.
curl -H "X-API-Key: your-api-key" "https://domscan.net/v1/status?name=launch&tlds=com,io,ai&prefer_cache=1"
npm install -g https://github.com/estevecastells/domscan-cli/releases/latest/download/domscan-cli.tgz
export DOMSCAN_API_KEY=dsk_your_key_here
domscan check-domain-availability --name launch --tlds com,io,ai --prefer-cache
const url = new URL('https://domscan.net/v1/status');
url.searchParams.set('name', 'launch');
url.searchParams.set('tlds', 'com,io,ai');
url.searchParams.set('prefer_cache', '1');
const response = await fetch(url, {
headers: { 'X-API-Key': process.env.DOMSCAN_API_KEY },
});
const data = await response.json();
console.log(data.results);
import os
import requests
params = {"name": "launch", "tlds": "com,io,ai", "prefer_cache": 1}
response = requests.get(
"https://domscan.net/v1/status",
params=params,
headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
timeout=15,
)
data = response.json()
print(data["results"])
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func domscanGet(url string) (*http.Response, error) {
request, err := http.NewRequest(http.MethodGet, url, nil)
if err != nil {
return nil, err
}
request.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))
return http.DefaultClient.Do(request)
}
func main() {
url := "https://domscan.net/v1/status?name=launch&tlds=com,io,ai&prefer_cache=1"
resp, err := domscanGet(url)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var payload map[string]any
json.NewDecoder(resp.Body).Decode(&payload)
fmt.Println(payload["results"])
}
require 'net/http'
require 'json'
uri = URI("https://domscan.net/v1/status?name=launch&tlds=com,io,ai&prefer_cache=1")
request = Net::HTTP::Get.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
data = JSON.parse(response.body)
puts data["results"]