Download OpenAPI specification:Download
このAPIはBearer認証で保護されています。予めトークンを発行しAuthorizationヘッダーに付与してAPIを利用いたします。
Authorization: Bearer <token>
エンドポイント:https://api.value-domain.com/v1/
HTTPプロトコルのGET,POST,PUT,DELETEメソッドでレスポンスを送信します。
GET /domains
アカウントで管理しているドメインの情報一覧取得
limit | integer 取得件数 |
page | integer ページ番号 |
order | string 並び順 |
Success
Bad Request
Unauthorized
Forbidden
Not found
Internal Server Error
Service Unavailable
Gateway Time-out
API本番用
$apikey = 'Your APIKEY'; $url = "https://api.value-domain.com/v1"; $path = "/domains"; $method = "GET"; $postfields = array(); $post_query = json_encode($postfields); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url . $path); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); if ($method!=='GET') { curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);//FIXME use http version 1.1 } curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 120); $headers = array(); $headers[] = "Content-Type: application/json"; if ($method!=='GET') { $headers[] = 'Content-Length: ' . strlen($post_query); } $headers[] = 'Authorization: Bearer ' . $apikey; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'Connection Error: ' . curl_errno($ch) . ' - ' . curl_error($ch);exit; } $info = curl_getinfo($ch); curl_close($ch);
{- "paging": {
- "max": 0,
- "limit": 0,
- "page": 0
}, - "results": [
- {
- "domainid": 9999998,
- "domainname": "example.com",
- "registrar": "GMO",
- "expirationdate": "2024-04-01",
- "autorenew": 1,
- "autorenew_all": 10,
- "autorenew_domain": 10
}, - {
- "domainid": 9999999,
- "domainname": "example2.com",
- "registrar": "GMO",
- "expirationdate": "2024-05-01",
- "autorenew": 1,
- "autorenew_all": 10,
- "autorenew_domain": 10
}
], - "request_id": "20190502412345678"
}
POST /domains
ドメイン名を登録し、ネームサーバと担当者情報の割り当てを行う
ドメイン情報
registrar | string Default: "GMO" レジストラ |
sld required | string セカンドレベルドメイン |
tld required | string トップレベルドメイン |
years | integer Default: 1 登録年数 |
ns required | array ネームサーバー名 |
whois_proxy | integer Default: 0 Whois代行設定 |
contact required | object 登録者情報(アルファベット) |
Success
Bad Request
Unauthorized
Forbidden
Not found
Internal Server Error
Service Unavailable
Gateway Time-out
API本番用
{- "registrar": "GMO",
- "sld": "string",
- "tld": "string",
- "years": 1,
- "ns": [
- "ns1.value-domain.com",
- "ns2.value-domain.com",
- "ns3.value-domain.com"
], - "whois_proxy": 1,
- "contact": {
- "registrant": {
- "firstname": "Taro",
- "lastname": "Yamada",
- "organization": "personal",
- "country": "JP",
- "postalcode": "530-0011",
- "state": "Osaka",
- "city": "Osaka-shi Kita-ku",
- "address1": "3-1 Ofuka-cho nomo",
- "address2": "Grand Front Osaka Tower B 23F",
- "email": "yamada@example.com",
- "phone": "+81.612345678",
- "fax": "+81.612345678"
}, - "admin": {
- "firstname": "Taro",
- "lastname": "Yamada",
- "organization": "personal",
- "country": "JP",
- "postalcode": "530-0011",
- "state": "Osaka",
- "city": "Osaka-shi Kita-ku",
- "address1": "3-1 Ofuka-cho nomo",
- "address2": "Grand Front Osaka Tower B 23F",
- "email": "yamada@example.com",
- "phone": "+81.612345678",
- "fax": "+81.612345678"
}, - "tech": {
- "firstname": "Taro",
- "lastname": "Yamada",
- "organization": "personal",
- "country": "JP",
- "postalcode": "530-0011",
- "state": "Osaka",
- "city": "Osaka-shi Kita-ku",
- "address1": "3-1 Ofuka-cho nomo",
- "address2": "Grand Front Osaka Tower B 23F",
- "email": "yamada@example.com",
- "phone": "+81.612345678",
- "fax": "+81.612345678"
}, - "billing": {
- "firstname": "Taro",
- "lastname": "Yamada",
- "organization": "personal",
- "country": "JP",
- "postalcode": "530-0011",
- "state": "Osaka",
- "city": "Osaka-shi Kita-ku",
- "address1": "3-1 Ofuka-cho nomo",
- "address2": "Grand Front Osaka Tower B 23F",
- "email": "yamada@example.com",
- "phone": "+81.612345678",
- "fax": "+81.612345678"
}
}
}
{- "results": {
- "domainid": 9999999,
- "domainname": "example.com",
- "sld": "example",
- "tld": "com"
}, - "request_id": "20190502412345678"
}
GET /domains/{domain}
アカウントで管理しているドメインの情報取得
※ domainは「登録済みドメインの一覧取得API」から取得します
domainId と domainNameのどちらでも可
domain required | string 「登録済みドメインの一覧の取得」APIから取得 |
Success
Bad Request
Unauthorized
Forbidden
Not found
Internal Server Error
Service Unavailable
Gateway Time-out
API本番用
{- "results": {
- "domainid": 9999999,
- "domainname": "example.com",
- "registrar": "GMO",
- "expirationdate": "2024-04-01",
- "status": "TRANSFER_LOCK",
- "transfer_lock": 0,
- "autorenew": 1,
- "autorenew_all": 10,
- "autorenew_domain": 10,
- "ns": [
- "ns1.value-domain.com",
- "ns2.value-domain.com",
- "ns3.value-domain.com"
], - "whoisproxy": "1",
- "contact": {
- "registrant": {
- "firstname": "Taro",
- "lastname": "Yamada",
- "organization": "personal",
- "country": "JP",
- "postalcode": "530-0011",
- "state": "Osaka",
- "city": "Osaka-shi Kita-ku",
- "address1": "3-1 Ofuka-cho nomo",
- "address2": "Grand Front Osaka Tower B 23F",
- "email": "yamada@example.com",
- "phone": "+81.612345678",
- "fax": "+81.612345678"
}, - "admin": {
- "firstname": "Taro",
- "lastname": "Yamada",
- "organization": "personal",
- "country": "JP",
- "postalcode": "530-0011",
- "state": "Osaka",
- "city": "Osaka-shi Kita-ku",
- "address1": "3-1 Ofuka-cho nomo",
- "address2": "Grand Front Osaka Tower B 23F",
- "email": "yamada@example.com",
- "phone": "+81.612345678",
- "fax": "+81.612345678"
}, - "tech": {
- "firstname": "Taro",
- "lastname": "Yamada",
- "organization": "personal",
- "country": "JP",
- "postalcode": "530-0011",
- "state": "Osaka",
- "city": "Osaka-shi Kita-ku",
- "address1": "3-1 Ofuka-cho nomo",
- "address2": "Grand Front Osaka Tower B 23F",
- "email": "yamada@example.com",
- "phone": "+81.612345678",
- "fax": "+81.612345678"
}, - "billing": {
- "firstname": "Taro",