# IP地址查詢
>[danger] 免費接口,每日100次免費調用
## 接口調用([調用須知](http://www.hmoore.net/chimney/cn-api/2491302))
>[info] 獲取指定IP地址信息
## 請求地址
~~~
GET https://api.cnbook.top/website/ip/info
~~~
## 請求參數
| 名稱 | 必填 | 類型 | 說明 |
| --- | --- | --- | --- |
| ip | 是 | string | ip地址 |
## 返回結果說明
| 名稱 | 類型 | 類型 | 說明 |
| --- | --- | --- | --- |
| ip | string | 38.94.109.7 | ip地址 |
| continent | string | 北美洲 | 大陸 |
| continent_en | string | North America | 大陸英文名稱 |
| continent_code | string | NA | 大陸代碼 |
| country | string | 美國 | 國家 |
| country_en | string | United States | 國家英文名稱 |
| country_code | string | US | 國家代碼 |
| province | string | 華盛頓州 | 省級行政區 |
| province_en | string | Washington | 省級行英文名稱 |
| province_code | string | WA | 省級行政區代碼 |
| city | string | Seattle | 城市 |
| city_en | string | Seattle | 城市英文名稱 |
| postal_code | string | 98121 | 郵政編碼 |
| longitude | string | -122.3447 | 經度 |
| latitude | string | 47.614400000000003 | 緯度 |
| time_zone | string | America/Los_Angeles | 時區 |
| network | string | 38.94.108.0/23 | 子網掩碼 |
| isp | string | Cogent Communications | 網絡運營商 |
#### 返回示例
~~~
{
"code": 0,
"message": "success",
"data": {
"ip": "38.94.109.7",
"continent": "北美洲",
"continent_en": "North America",
"continent_code": "NA",
"country": "美國",
"country_en": "United States",
"country_code": "US",
"province": "華盛頓州",
"province_en": "Washington",
"province_code": "WA",
"city": "Seattle",
"city_en": "Seattle",
"postal_code": "98121",
"longitude": -122.3447,
"latitude": 47.614400000000003,
"time_zone": "America/Los_Angeles",
"network": "38.94.108.0/23",
"isp": "Cogent Communications"
},
"trace": 1634143388
}
~~~