Available SDKs
We offer official SDKs for the following languages:| Language | Package |
|---|---|
| TypeScript/JavaScript | @ip2geo/sdk |
| Ruby | ip2geo |
Why Use the SDK Instead of the REST API?
- Type Safety: Get full TypeScript/Ruby 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 Documentation: 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.
Installation
- TypeScript
- Ruby
The TypeScript SDK works with all major JavaScript runtimes that support npm, including Node.js, Deno, and Bun.
- npm
- bun
- deno
- yarn
- pnpm