tencent cloud

Feedback

DescribeIPRegion

Last updated: 2024-04-09 10:26:03

1. API Description

Domain name for API request: teo.tencentcloudapi.com.

This API is used to check if the IP is an EdgeOne IP.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeIPRegion.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
IPs.N Yes Array of String List of IPs to be queried, supporting IPV4 and IPV6. Up to 100 can be queried.

3. Output Parameters

Parameter Name Type Description
IPRegionInfo Array of IPRegionInfo List of IP attribution information.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Querying IP geographic location information

Input Example

POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeIPRegion
<Common request parameters>{
    "IPs": [
        "1.1.1.1",
        "2402:4e00:1403:eb00:0:9440:b55a:39a8"
    ]
}

Output Example

{
    "Response": {
        "RequestId": "bc0bb357-0b72-4abb-ae66-ffffb965aced",
        "IPRegionInfo": [
            {
                "IP": "120.226.17.168",
                "IsEdgeOneIP": "yes"
            },
            {
                "IP": "101.33.20.11",
                "IsEdgeOneIP": "yes"
            },
            {
                "IP": "120.222.238.33",
                "IsEdgeOneIP": "yes"
            },
            {
                "IP": "120.222.238.33",
                "IsEdgeOneIP": "yes"
            },
            {
                "IP": "120.226.17.167",
                "IsEdgeOneIP": "yes"
            },
            {
                "IP": "120.226.17.168",
                "IsEdgeOneIP": "yes"
            },
            {
                "IP": "43.130.34.95",
                "IsEdgeOneIP": "no"
            },
            {
                "IP": "43.128.224.98",
                "IsEdgeOneIP": "no"
            }
        ]
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError.ProxyServer An unknown error occurred in the backend server.