{"id":13602485,"url":"https://github.com/risk3sixty/geoapi","last_synced_at":"2025-04-11T08:32:47.991Z","repository":{"id":44034153,"uuid":"225977028","full_name":"risk3sixty/geoapi","owner":"risk3sixty","description":"Lightweight API service to get geolocation data from IP addresses.","archived":false,"fork":false,"pushed_at":"2023-01-05T02:23:18.000Z","size":1262,"stargazers_count":711,"open_issues_count":16,"forks_count":39,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-07T05:39:31.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://geo.risk3sixty.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/risk3sixty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-04T23:39:48.000Z","updated_at":"2024-10-15T00:16:36.000Z","dependencies_parsed_at":"2023-02-03T06:01:12.494Z","dependency_job_id":null,"html_url":"https://github.com/risk3sixty/geoapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risk3sixty%2Fgeoapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risk3sixty%2Fgeoapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risk3sixty%2Fgeoapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risk3sixty%2Fgeoapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/risk3sixty","download_url":"https://codeload.github.com/risk3sixty/geoapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248361659,"owners_count":21090956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T18:01:24.982Z","updated_at":"2025-04-11T08:32:42.978Z","avatar_url":"https://github.com/risk3sixty.png","language":"JavaScript","readme":"# [risk3sixty](https://risk3sixty.com)\n\n## geoapi\n\nTiny API service to report geolocation data from IP addresses.\nThe underlying data is coming from [geoip-lite](https://www.npmjs.com/package/geoip-lite)\nso special thanks to the contributors of this package and\n[MaxMind](https://maxmind.com) for keeping up-to-date information\nin the geolocation DB!\n\n### Usage\n\nMake a GET request to the geoapi endpoint with `/me` or an IP\naddress (IPv4 or IPv6) located in the path of the URL, e.g.\n`https://geo.risk3sixty.com/8.8.8.8`. The server responds with JSON\nthat contains geolocation data present for the provided IP address,\nor your current IP address if `/me` was passed.\n\nAlso, [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)\nis enabled for browser usage.\n\n```sh\n# https://geo.risk3sixty.com/IPV4_OR_IPV6_IP_ADDRESS\n\n$ curl https://geo.risk3sixty.com/me\n{\"ip\":\"196.245.163.202\",\"range\":[3304431616,3304432639],\"country\":\"GB\",\"region\":\"ENG\",\"eu\":\"1\",\"timezone\":\"Europe/London\",\"city\":\"London\",\"ll\":[51.5064,-0.02],\"metro\":0,\"area\":50}\n\n$ curl https://geo.risk3sixty.com/128.61.0.0\n{\"ip\":\"128.61.0.0\",\"range\":[2151481344,2151546879],\"country\":\"US\",\"region\":\"GA\",\"eu\":\"0\",\"timezone\":\"America/New_York\",\"city\":\"Atlanta\",\"ll\":[33.7746,-84.3973],\"metro\":524,\"area\":5}\n\n$ curl https://geo.risk3sixty.com/2001:468:300:0:0:0:0:0\n{\"ip\":\"2001:468:300:0:0:0:0:0\",\"range\":\"\",\"country\":\"US\",\"region\":\"\",\"city\":\"\",\"ll\":[37.751,-97.822],\"metro\":0,\"area\":100,\"eu\":\"0\",\"timezone\":\"America/Chicago\"}\n```\n\n### Development\n\n```sh\n$ git clone https://github.com/risk3sixty/geoapi\n$ cd geoapi\n$ npm install\n\n# run tests\n$ npm test\n\n# build production files\n$ npm run build\n\n# start server\n$ npm start\n```\n\n### License\n\nMIT\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisk3sixty%2Fgeoapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frisk3sixty%2Fgeoapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisk3sixty%2Fgeoapi/lists"}