하나의 IP 조회 (IPv4/IPv6, 배치) 로 지리적 개인화 추가

작성자

카테고리:

← 피드로
DEV Community · Daniel Igel · 2026-06-13 개발(SW)

Daniel Igel

Geo-personalization — currency, language, “stores near you” — usually means shipping a 60 MB GeoIP database and keeping it updated, or paying per-seat for an SDK. For most apps you just need country + city from an IP.

One GET does it, IPv4 and IPv6:

curl --request GET 
  --url 'https://ip-geolocation-api20.p.rapidapi.com/api/v1/geo?ip=8.8.8.8' 
  --header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' 
  --header 'x-rapidapi-host: ip-geolocation-api20.p.rapidapi.com'

Enter fullscreen mode Exit fullscreen mode

Returns country, region, city, lat/lon, timezone. There’s /api/v1/geo/me to resolve the caller’s own IP (handy for edge functions) and /api/v1/geo/batch for bulk enrichment of logs or signups.

Free tier on RapidAPI: https://rapidapi.com/danieligel/api/ip-geolocation-api20

I built this so I didn’t have to bundle MaxMind into every small project. What do you use IP geo for — personalization, fraud, analytics?

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다