ip.la
域名年龄: 19年10个月12天HTTP/1.1 302 Found 目标网址:https://www.ip.la/ Strict-Transport-Security: max-age=63072000; includeSubdomains; preload 动作:Origin 访问时间:2019年10月02日 03:14:00 文件大小:0 HTTP/1.1 200 OK 类型:text/html; charset=utf-8 Strict-Transport-Security: max-age=63072000; includeSubdomains; preload 动作:Origin 访问时间:2019年10月02日 03:14:00 Transfer-Encoding: chunked 网站编码:utf-8
IP.laA Simple Public IP Address And IP Geolocation APICurrent IP: 2001:41d0:8:d3d8::1 [France France ]Why use?Do you need to get the public IP address or IP Geolocation programmatically? Do you have the requirements to obtain the servers’ public IP address? Do you need to get the location of your servers? Whatever the reason,sometimes a public IP address and IP Geolocation API are useful.You should use IP.la because:You can initiate requests without any limit.You can get the english or chinese location data.Does not record the visitor information.Lastly, IP.la is sponsored by IPIP.NET and will exist in long-term stability, please feel free to use it.API UsageUsing IP.la is ridiculously simple. You have two options. Address location support English and Chinese.You can get your public IP directly (in plain text), you can get yourpublic IP in JSON format.-API URITypeSample Output (IPv4)Sample Output (IPv6)get IPhttps://api.ip.latext8.8.8.82001:4860:4860::8888get XFF(X-Forwarded-For)https://api.ip.la/xfftext8.8.8.82001:4860:4860::8888get IP Location(English)https://api.ip.la/en?jsonjson{"ip":"172.104.94.100","location":{"country_code":"JP","country_name":"Japan","province":"Tokyo","city":"Shinagawa","latitude":"35.6130514","longitude":"139.7344198"}}{"ip": "2001:19f0:7001:5607:5400:1ff:fec7:13a9","location": {"city": "Tokyo","country_code": "JP","country_name": "Japan","latitude": "35.709026","longitude": "139.731993","province": "Tokyo"}}get IP Location(Chinese Simplified)https://api.ip.la/cn?jsonjson{"ip":"172.104.94.100","location":{"country_code":"JP","country_name":"日本","province":"东京都","city":"品川区","latitude":"35.6130514","longitude":"139.7344198"}}{"ip": "2001:19f0:7001:5607:5400:1ff:fec7:13a9","location": {"city": "东京","country_code": "JP","country_name": "日本","latitude": "35.709026","longitude": "139.731993","province": "东京都"}}Gets the information for the request.-API URITypeSample Outputget Request Headerhttps://api.ip.la/headertextGET /header HTTP/1.1Host: api.ip.laAccept: */*User-Agent: curl/7.54.0ExamplesThis section contains some common usage patterns from a variety of programming languages.Email me!Bash#!/bin/baship=$(curl -s https://api.ip.la)echo "My public IP address is: $ip"Python# This example requires the requests library be installed. You can learn more# about the Requests library here: http://docs.python-requests.org/en/latest/from requests import getip = get('https://api.ip.la').textprint('My public IP address is: {}'.format(ip))Rubyrequire "net/http"ip = Net::HTTP.get(URI("https://api.ip.la"))puts "My public IP Address is: " + ip PHP <?php $ip = file_get_contents('https://api.ip.la'); echo "My public IP address is: " . $ip; ?> Java try (java.util.Scanner s = new java.util.Scanner(new java.net.URL("https://api.ip.la").openStream(), "UTF-8").useDelimiter("\\A")) { System.out.println("My current IP address is " + s.next()); } catch (java.io.IOException e) { e.printStackTrace(); } Perl use strict; use warnings; use LWP:
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-08-13 13:27, Process in 0.0100 second.