项目作者: jolav

项目描述 :
Free API that retrieves geolocation information from any IPv4, IPv6 or hostname.
高级语言: JavaScript
项目地址: git://github.com/jolav/geoip-xyz.git
创建时间: 2018-11-27T10:21:07Z
项目社区:https://github.com/jolav/geoip-xyz

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Maintained no


THE PROJECT CONTINUES MERGED INTO CODETABS


IP GEOLOCATION " class="reference-link">logo IP GEOLOCATION

version 0.1.4

  • Free service that provides a public secure API (CORS enabled) to retrieve geolocation from any IP or hostname.
  • 10 request per second. Once reached subsequent requests will result in error 429 until your quota is cleared.
  • This API requires no key or signup.
  • JSON and XML supported
  • IPv4 and IPv6 supported
  • CORS support out of the box makes this perfect to your front end apps or webs

Examples

https://api.codetabs.com/v1/geolocation/json
https://api.codetabs.com/v1/geolocation/json?q=codetabs.com
https://api.codetabs.com/v1/geolocation/xml?q=8.8.8.8
4006:803::200e">https://api.codetabs.com/v1/geolocation/xml?q=2a00:1450:4006:803::200e

Response JSON :

  1. {
  2. "ip": "172.168.90.240",
  3. "country_code": "FR",
  4. "country_name": "France",
  5. "region_code": "IDF",
  6. "region_name": "Ile-de-France",
  7. "city": "Paris",
  8. "zip_code": "75001",
  9. "time_zone": "Europe/Paris",
  10. "latitude": 48.8628,
  11. "longitude": 2.3292
  12. }

Acknowledgment

  • This site includes GeoLite2 data created by MaxMind, available from maxmind.com