通过这个API,您将能够知道访问者的IP,以便获取更多关于流量来源的信息。同时,您可以检查您所偏好的域名的IP和位置,如果这些信息可用。
根据您使用的端点,您将自动收到访问者的IP。其他端点会请求您之前收集的特定IP地址,并提供关于位置、连接类型等的详细信息。这也适用于域名端点。
这个API的目的是让您更好地了解您网站流量的来源。您可以通过将这个API添加到您的代码中,动态地知道用户的位置,并随后存储这些信息,以便您可以对流量进行细分并做出相关决策。
此外,如果您想深入了解某个域名的信息,您可以检查IP的位置。
除了每月API调用的限制,所有计划都一样。
通过此端点,您将能够检索来自网站访客的IP信息
您将收到国家、城市、州、省、当地货币、纬度和经度、公司详细信息、ISP查询、语言、邮政编码、国家拨号代码、时区、当前时间、日落和日出时间、月落和月升时间
只需在您的代码中调用此端点,您就可以获取所有数据
示例JSON输出响应:
{
"continent": "北美",
"country": "美国",
"zipCode": "20149",
"accuracyRadius": 50,
"flag": "https://ipworld.info/static/flags/us.png",
"city": "阿什本",
"timezone": "美国/纽约",
"latitude": 39.0481,
"countryGeoNameId": 6252001,
"gmt": "(GMT-10:00) 夏威夷时间",
"network": "34.224.0.0/12",
"currencyName": "美元",
"countryNativeName": "美国",
"stateGeoNameId": 6254928,
"phoneCode": "+1",
"state": "弗吉尼亚",
"continentCode": "NA",
"longitude": -77.4728,
"currencyNamePlural": "美元",
"cityGeoNameId": 4744870,
"languages": "en",
"numOfCities": 19562,
"org": "AMAZON-AES",
"ip": "34.224.100.105",
"currencySymbol": "$",
"currencySymbolNative": "$",
"isEU": "否",
"countryTLD": ".us",
"countryCapital": "华盛顿",
"metroCode": 511,
"continentGeoNameId": 6255149,
"stateCode": "VA",
"countryISO2": "US",
"numOfStates": 66,
"countryISO3": "USA",
"currencyCode": "USD",
"asNo": 14618,
"status": 200
}网站访客IP检测器 - 端点功能
| 对象 | 描述 |
|---|
{"continent":"North America","country":"United States","zipCode":"20149","accuracyRadius":50,"flag":"https://ipworld.info/static/flags/us.png","city":"Ashburn","timezone":"America/New_York","latitude":39.0481,"countryGeoNameId":6252001,"gmt":"(GMT-10:00) Hawaii Time","network":"34.224.0.0/12","currencyName":"US Dollar","countryNativeName":"United States","stateGeoNameId":6254928,"phoneCode":"+1","state":"Virginia","continentCode":"NA","longitude":-77.4728,"currencyNamePlural":"US dollars","cityGeoNameId":4744870,"languages":"en","numOfCities":19562,"org":"AMAZON-AES","ip":"34.224.100.105","currencySymbol":"$","currencySymbolNative":"$","isEU":"No","countryTLD":".us","countryCapital":"Washington","metroCode":511,"continentGeoNameId":6255149,"stateCode":"VA","countryISO2":"US","numOfStates":66,"countryISO3":"USA","currencyCode":"USD","asNo":14618,"status":200}
curl --location --request GET 'https://zylalabs.com/api/34/know+ip+or+domain+location+api/102/site+visitor+ip+detector' --header 'Authorization: Bearer YOUR_API_KEY'
如果您已经有一份用户IP列表,并想知道他们的位置,这个接口将为您提供帮助。
只需传递IPv4或IPv6地址,您将收到城市的纬度、经度、邮政编码、州/省、国家、国家代码、国家旗帜、货币、拨号代码、时区、国家内部城市和州/省的总数、大洲代码、大洲名称以及许多其他详细信息,均以JSON格式提供。
示例JSON输出响应:
{
"continent": "欧洲",
"country": "爱尔兰",
"zipCode": null,
"accuracyRadius": 200,
"flag": "https://ipworld.info/static/flags/ie.png",
"city": null,
"timezone": "欧洲/都柏林",
"latitude": 53.3472,
"countryGeoNameId": 2963597,
"gmt": "(GMT+00:00) 都柏林",
"network": "185.60.216.0/22",
"currencyName": "欧元",
"countryNativeName": "Éire",
"stateGeoNameId": null,
"phoneCode": "+353",
"state": null,
"continentCode": "EU",
"longitude": -6.2439,
"currencyNamePlural": "欧元",
"cityGeoNameId": null,
"languages": "ga,en",
"numOfCities": 372,
"org": "FACEBOOK",
"ip": "185.60.216.0",
"currencySymbol": "€",
"currencySymbolNative": "€",
"isEU": "是",
"countryTLD": ".ie",
"countryCapital": "都柏林",
"metroCode": null,
"continentGeoNameId": 6255148,
"stateCode": null,
"countryISO2": "IE",
"numOfStates": 29,
"countryISO3": "IRL",
"currencyCode": "EUR",
"asNo": 32934,
"status": 200
}
通过IPv4/IPv6进行IP定位 - 端点功能
| 对象 | 描述 |
|---|---|
ip |
[必需] You can pass any IPv4 or IPv6 address here. |
{"continent":"North America","country":"United States","zipCode":"20149","accuracyRadius":50,"flag":"https://ipworld.info/static/flags/us.png","city":"Ashburn","timezone":"America/New_York","latitude":39.0481,"countryGeoNameId":6252001,"gmt":"(GMT-10:00) Hawaii Time","network":"34.224.0.0/12","currencyName":"US Dollar","countryNativeName":"United States","stateGeoNameId":6254928,"phoneCode":"+1","state":"Virginia","continentCode":"NA","longitude":-77.4728,"currencyNamePlural":"US dollars","cityGeoNameId":4744870,"languages":"en","numOfCities":19562,"org":"AMAZON-AES","ip":"34.224.100.105","currencySymbol":"$","currencySymbolNative":"$","isEU":"No","countryTLD":".us","countryCapital":"Washington","metroCode":511,"continentGeoNameId":6255149,"stateCode":"VA","countryISO2":"US","numOfStates":66,"countryISO3":"USA","currencyCode":"USD","asNo":14618,"status":200}
curl --location --request GET 'https://zylalabs.com/api/34/know+ip+or+domain+location+api/103/ip+location+by+ipv4-ipv6' --header 'Authorization: Bearer YOUR_API_KEY'
通过这个端点,您将能够检查任何您想要检查的域名的IP位置。与其他端点一样,您将收到城市的纬度、经度、邮政编码、州/省、国家、国家代码、国旗、货币和拨号代码、时区、国内城市和州/省的总数、大洲代码、大洲名称以及更多以JSON格式提供的详细信息。
示例JSON输出响应:
{
"continent": "北美",
"country": "美国",
"zipCode": "20149",
"accuracyRadius": 1000,
"flag": "https://ipworld.info/static/flags/us.png",
"city": "阿什本",
"timezone": "美国/纽约",
"latitude": 39.0481,
"countryGeoNameId": 6252001,
"gmt": "(GMT-10:00) 夏威夷时间",
"network": "54.239.16.0/20",
"currencyName": "美元",
"countryNativeName": "美国",
"stateGeoNameId": 6254928,
"phoneCode": "+1",
"state": "弗吉尼亚",
"continentCode": "NA",
"longitude": -77.4728,
"currencyNamePlural": "美元",
"cityGeoNameId": 4744870,
"languages": "en",
"numOfCities": 19562,
"org": "AMAZON-02",
"ip": "amazon.com",
"currencySymbol": "$",
"currencySymbolNative": "$",
"isEU": "否",
"countryTLD": ".us",
"countryCapital": "华盛顿",
"metroCode": 511,
"continentGeoNameId": 6255149,
"stateCode": "VA",
"countryISO2": "US",
"numOfStates": 66,
"countryISO3": "USA",
"currencyCode": "USD",
"asNo": 16509,
"status": 200
}域名 IP 位置 - 端点功能
| 对象 | 描述 |
|---|---|
ip |
[必需] You can insert any domain here. Do not worry about formating, you can pass the domain without protocol HTTPS or HTTP. |
{"continent":"North America","country":"United States","zipCode":null,"accuracyRadius":1000,"flag":"https://ipworld.info/static/flags/us.png","city":null,"timezone":"America/Chicago","latitude":37.751,"countryGeoNameId":6252001,"gmt":"(GMT-10:00) Hawaii Time","network":"157.240.192.0/18","currencyName":"US Dollar","countryNativeName":"United States","stateGeoNameId":null,"phoneCode":"+1","state":null,"continentCode":"NA","longitude":-97.822,"currencyNamePlural":"US dollars","cityGeoNameId":null,"languages":"en","numOfCities":19562,"org":"FACEBOOK","ip":"facebook.com","currencySymbol":"$","currencySymbolNative":"$","isEU":"No","countryTLD":".us","countryCapital":"Washington","metroCode":null,"continentGeoNameId":6255149,"stateCode":null,"countryISO2":"US","numOfStates":66,"countryISO3":"USA","currencyCode":"USD","asNo":32934,"status":200}
curl --location --request GET 'https://zylalabs.com/api/34/know+ip+or+domain+location+api/104/domain+name+ip+location' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
每个端点根据IP地址或域名返回详细的地理位置数据。这包括国家、城市、州、纬度、经度、时区、货币和ISP细节等信息
关键字段包括“大陆”“国家”“城市”“纬度”“经度”“时区”“货币名称”和“组织”这些字段提供了关于被查询的IP或域名的位置和特征的重要信息
响应数据采用JSON格式结构化,键值对表示各种属性。例如,响应可能包括“city”: “Ashburn”和“country”: “United States”,使得程序解析和使用变得简单
每个端点提供的信息包括地理位置(城市、州、国家)、时区、货币细节和ISP信息。域名端点还返回查询域名的IP的类似数据
数据准确性通过定期从可靠来源进行更新来保持,包括IP注册和地理位置数据库。这确保了信息反映当前的IP分配和地理数据
典型的使用案例包括分析网站流量来源 根据位置个性化用户体验 和进行市场研究 企业可以按位置对用户进行细分以有效定制营销策略
用户可以通过指定他们希望查询的IP地址或域名来自定义请求。对于访客IP检测器,不需要参数,而其他端点则需要特定的IP或域名作为输入
标准数据模式包括响应中一致的字段,例如有效IP的“国家”和“城市”。对于域名,期望类似的字段,但如果域名的位置无法解析,某些字段可能返回空值
服务级别:
100%
响应时间:
863ms
服务级别:
100%
响应时间:
396ms
服务级别:
100%
响应时间:
362ms
服务级别:
100%
响应时间:
1,029ms
服务级别:
100%
响应时间:
266ms
服务级别:
100%
响应时间:
1,078ms
服务级别:
100%
响应时间:
274ms
服务级别:
100%
响应时间:
1,267ms
服务级别:
100%
响应时间:
1,424ms
服务级别:
100%
响应时间:
814ms