/geoip

Service to get Location from ipv4 and ipv6

Primary LanguageJavaScript

GeoIP-Service

Examples on how to do IP to Location Details

Example

See code example in the server folder.

Setup Server

Make sure you have bun installed.

curl -fsSL https://bun.sh/install | bash

Install/Build

bun install

Start Server

cd server
bun app.js

API

Works with both ipv4 and ipv6.

curl https://geoip.samagra.io/city/128.101.101.101
curl https://geoip.samagra.io/georev?lat=28.7041&lon=77.1025

Notes

DB will remain updated automatically. Please create a ticket if you see some issues.

Contribution Guide

  1. Please consider issues up from grabs.
  2. It will only be assigned with a PR.