結果を取得(処理された用語) | ドキュメント | IP Geolocation Bulk API | WhoisXML API

結果の取得(処理された用語)

POST https://ip-geolocation.whoisxmlapi.com/api/bgservice/request/completed

CURLリクエストのサンプル

curl https://ip-geolocation.whoisxmlapi.com/api/bgservice/request/completed -X POST -H "Content-Type: application/json"  -d '{"apiKey": "YOUR_API_KEY", "id": 622, "format": "json"}'

POSTリクエスト本文のサンプル

{
    "apiKey": "YOUR_API_KEY",
    "id": 596,
    "format": "csv"
}

入力パラメータ

apiKey

必須My productsページで個人用APIキーを取得してください。

id

必須。整数。

リクエストのID。

format

任意。文字列。

応答の形式を指定します。

利用可能な値:「xml」、「json」、「csv」。

初期値:「json」。

出力サンプル

{
  "response": [
    [
      {
        "ip": "8.8.8.8",
        "location": {
          "country": "US",
          "region": "California",
          "city": "Mountain View",
          "lat": 37.40599,
          "lng": -122.078514,
          "postalCode": "94043",
          "timezone": "-07:00"
        },
        "domains": [
          "0.cnxelg.top",
          "000180.top",
          "0002.by",
          "00049ok.com",
          "001998.com.he2.aqb.so"
        ],
        "as": {
          "asn": 15169,
          "name": "Google LLC",
          "route": "8.8.8.0/24",
          "domain": "https://about.google/intl/en/",
          "type": "Content"
        },
        "isp": "Google",
        "term": "8.8.8.8"
      }
    ],
    [
      {
        "ip": "2607:f8b0:4007:804::2005",
        "location": {
          "country": "US",
          "region": "California",
          "city": "Mountain View",
          "lat": 37.38605,
          "lng": -122.08385,
          "postalCode": "94041",
          "timezone": "-07:00"
        },
        "isp": "Google",
        "term": "gmail.com"
      },
      {
        "ip": "172.217.11.165",
        "location": {
          "country": "US",
          "region": "California",
          "city": "Mountain View",
          "lat": 37.40599,
          "lng": -122.078514,
          "postalCode": "94043",
          "timezone": "-07:00"
        },
        "domains": [
          "lax28s15-in-f5.1e100.net"
        ],
        "as": {
          "asn": 15169,
          "name": "Google LLC",
          "route": "172.217.0.0/16",
          "domain": "https://about.google/intl/en/",
          "type": "Content"
        },
        "isp": "Google",
        "term": "gmail.com"
      }
    ]
  ]
}

Code: 200 OK.
{
    "response": {
        "error": "Wrong request id"
    }
}

Code: 422 Unprocessable Entity.
response

応答オブジェクト。

元のリクエストにある各IPアドレスのジオロケーションが含まれます。詳しくはドキュメントをご覧ください。

これらの要求に対する回答は、直接ディスクに保存できます。

エラーの場合は、 「error」にその説明が含まれます。複数のエラーがある場合は、その説明が「errors」配列に返されます。