English Русский Հայերեն Español Français Deutsch 中文 Қазақша Українська ქართული हिन्दी فارسی

Registrar.AM

.AM 域名注册与信息官方服务

API 文档

将 Registrar.AM WHOIS 数据集成到您自己的应用程序中。

1. HTTP JSON API

用于接收结构化数据的简单 HTTP GET 请求。

GET https://whois.registrar.am/api.php?domain={domain}

参数

参数类型描述
domainstring输入 .am 域名 (例如 google.am)

响应示例

{
  "domain": "GOOGLE.AM",
  "status": "success",
  "registrar": "INTMEN LLC",
  "expiry_date": "2026-12-31",
  "nameservers": [
    "ns1.google.com",
    "ns2.google.com"
  ],
  "raw_data": "..."
}

2. 标准 WHOIS (43 端口)

我们的服务器支持标准的 RFC 3912 WHOIS 协议。

# Querying via command line
whois -h whois.registrar.am google.am

3. 代码示例

PHP

$json = file_get_contents("https://whois.registrar.am/api.php?domain=google.am");
$data = json_decode($json, true);
echo $data['registrar'];

Python (Requests)

import requests
response = requests.get("https://whois.registrar.am/api.php?domain=google.am")
print(response.json()['registrar'])

cURL

curl "https://whois.registrar.am/api.php?domain=google.am"