获取结果(处理过的条款)|文档 | IP 地理定位批量API | WhoisXML API

结果(已处理)。

地址 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

必填。在“我的产品”页面获取您的个人 API KEY。

ID

必填。整数。

请求的 ID。

format

选填。String。

用于指定响应格式。

允许值:“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 地址的一组地理位置。请参阅文档以获取更多信息。

对这些请求的回复可以直接保存到磁盘。

如果出现错误,它会在“错误”字段中包含其描述。如果有多个错误,它们的描述将返回到“错误”数组中。