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

Registrar.AM

سرویس رسمی ثبت دامنه و اطلاعات .AM

مستندات API

اطلاعات WHOIS Registrar.AM را در برنامه‌های خود ادغام کنید.

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"