1010varun / geoip

Service to get Location from ipv4 and ipv6

Home Page:https://geoip.samagra.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Service to get Location from ipv4 and ipv6

https://geoip.samagra.io


Languages

Language:JavaScript 71.8%Language:HTML 16.1%Language:CSS 10.8%Language:Dockerfile 1.4%