Introduction

Our SDKs provide a type-safe way to use our conversion services directly through installable packages. In essence, they’re lightweight wrappers around our REST API, but with type safety, auto-completion, and an enhanced developer experience (DX).

Available SDKs

We offer official SDKs for the following languages:

LanguagePackage
TypeScript/JavaScript@ip2geo/sdk
Rubyip2geo
Pythonip2geo-sdk
PHPip2geo-dev/sdk

Working from a terminal instead? The ip2geo CLI makes the same calls, and everything the dashboard does, from the command line.

Why Use the SDK Instead of the REST API?

  • Type Safety: Get full TypeScript/Ruby/Python support to catch issues early and reduce runtime errors.

  • Simplified Integration: Includes pre-built functions for requests, authentication, and response handling, no need to manually set up HTTP calls.

  • Faster Development: Focus on your app’s logic while the SDK handles the boilerplate.

  • Better Docs: Clear examples and typings make it easy to discover and use available methods.

  • Automatic Updates: The SDKs stay in sync with the API, giving you access to the latest endpoints and improvements.

The only reason not to use the SDK is if your environment doesn’t support npm, RubyGems, or PyPI, or if your use case requires direct REST API calls.

Installation

The TypeScript SDK works with all major JavaScript runtimes that support npm, including Node.js, Deno, Bun, and the browser (with public keys).

Bash
npm install @ip2geo/sdk@latest
Get Started

Convert IPs into accurate location data in milliseconds.

Sign up today and get 1,000 free monthly conversions, and discover why developers trust us for fast, reliable, and affordable IP conversions.