geoip microservice
Romina Killpack 57be04a1a8
add icon files
1 year ago
bin build libmaxminddb 1 year ago
share add icon files 1 year ago
src reorganization 1 year ago
.dockerignore build libmaxminddb 1 year ago
.gitignore Update .gitignore, src/tests.py 2 years ago
.travis.yml Update .travis.yml 2 years ago
Dockerfile build libmaxminddb 1 year ago
LICENSE Update LICENSE 2 years ago
Makefile build libmaxminddb 1 year ago
README.md reorganization 1 year ago

README.md

geoip(1) -- a simple rest endpoint for crude geopositioning

docker pull quay.io/xj90/geoip

docker run geoip [ --link redis ] [ free | commercial <license_key> ]

[/]

[GET]

  • response 200 (application/json)

    {
        "ok": true, 
        "res": {
            "accuracy_radius": null, 
            "autonomous_system_number": null, 
            "autonomous_system_organization": null, 
            "average_income": null, 
            "city": {
                "name": "Guangzhou"
            }, 
            "continent": {
                "abbr": "AS", 
                "name": "Asia"
            }, 
            "country": {
                "abbr": "CN", 
                "name": "China"
            }, 
            "domain": null, 
            "ip_address": "113.106.129.229", 
            "is_anonymous_proxy": false, 
            "is_satellite_provider": false, 
            "isp": null, 
            "latitude": 23.1167, 
            "locale": null, 
            "longitude": 113.25, 
            "metro_code": null, 
            "organization": null, 
            "population_density": null, 
            "postal_code": null, 
            "postal_confidence": null, 
            "subdivision": {
                "abbr": "44", 
                "name": "Guangdong"
            }, 
            "subdivisions": [
                {
                    "abbr": "44", 
                    "name": "Guangdong"
                }
            ], 
            "time_zone": "Asia/Shanghai", 
            "user_type": null
        }
    }
    

ip address [/{ip_address}]

location data [GET]

  • parameters

    • ip_address (string) - both ipv4 and ipv6 addresses are supported
  • response 200 (application/json)

    [ ][]