如何获取特定IP的地址详细信息(如城市,州等)?

时间:2022-12-26 06:09:14

Working on a mashup where I need an API which gives me address details if I pass IP of that particular location. Can anyone help me to get an API? I've heard about iploc but its no longer available.

在mashup上工作,我需要一个API,如果我通过该特定位置的IP,我会提供地址详细信息。任何人都可以帮助我获得API吗?我听说过iploc但它不再可用了。

4 个解决方案

#1


I have used this once, but only getting the State of a given IP. Have a look:

我曾经使用过这个,但只获得了给定IP的状态。看一看:

Target Your Visitors Using GeoIP and .NET

使用GeoIP和.NET定位您的访客

#2


GeoIP

Warning: ISP and proxy is not equivalent to the peer so such service is always not so corerct.

警告:ISP和代理不等同于对等体,因此这种服务始终不是那么的核心。

#3


Go here: MaxMind: http://www.maxmind.com/app/ip-location

转到此处:MaxMind:http://www.maxmind.com/app/ip-location

It has IP conversion into: country, city, ISP version. Paid database, or free (lite) versions are available.

它有IP转换为:国家,城市,ISP版本。付费数据库或免费(精简版)版本可用。

Their API is too stong. They allow to download a compressed binary file, and give PHP or other language APIs to access that database file to decode your IP into details. Interesting...

他们的API太强大了。它们允许下载压缩的二进制文件,并提供PHP或其他语言API来访问该数据库文件,以将您的IP解码为详细信息。有趣...

#4


IP2Location is pretty popular:

IP2Location很受欢迎:

http://www.ip2location.com/

#1


I have used this once, but only getting the State of a given IP. Have a look:

我曾经使用过这个,但只获得了给定IP的状态。看一看:

Target Your Visitors Using GeoIP and .NET

使用GeoIP和.NET定位您的访客

#2


GeoIP

Warning: ISP and proxy is not equivalent to the peer so such service is always not so corerct.

警告:ISP和代理不等同于对等体,因此这种服务始终不是那么的核心。

#3


Go here: MaxMind: http://www.maxmind.com/app/ip-location

转到此处:MaxMind:http://www.maxmind.com/app/ip-location

It has IP conversion into: country, city, ISP version. Paid database, or free (lite) versions are available.

它有IP转换为:国家,城市,ISP版本。付费数据库或免费(精简版)版本可用。

Their API is too stong. They allow to download a compressed binary file, and give PHP or other language APIs to access that database file to decode your IP into details. Interesting...

他们的API太强大了。它们允许下载压缩的二进制文件,并提供PHP或其他语言API来访问该数据库文件,以将您的IP解码为详细信息。有趣...

#4


IP2Location is pretty popular:

IP2Location很受欢迎:

http://www.ip2location.com/