获取请求状态 |文档 | IP 地理定位批量API | WhoisXML API

获取请求状态

地址 https://ip-geolocation.whoisxmlapi.com/api/bgservice/request/status

CURL 请求示例

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

POST 请求正文示例

{
    "apiKey": "YOUR_API_KEY",
    "ids": [544, 595, 596],
    "format": "json"
}

输入参数

apiKey

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

ids

必填。Array。

必需的请求 ID。

format

选填。String。

用于指定响应格式。

允许值:“xml”、“json”、“csv”。

默认值:“json”。

示例输出

{
    "response": [
        {
            "id": 544,
            "date_start": "1528204702",
            "total_terms": 500,
            "invalid_terms": 0,
            "processed_terms": 500,
            "failed_terms": 0,
            "ready": 1
        },
        {
            "id": 595,
            "date_start": "1528377227",
            "total_terms": 20,
            "invalid_terms": 0,
            "processed_terms": 20,
            "failed_terms": 0,
            "ready": 1
        },
        {
            "id": 596,
            "date_start": "1528377253",
            "total_terms": 3,
            "invalid_terms": 0,
            "processed_terms": 3,
            "failed_terms": 0,
            "ready": 1
        }
    ]
}

Code: 200 OK.
response

响应对象。

包含一组用户请求的成功信息。如果“ids”数组仅包含不存在的 ID,则此数组可以为空。

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