Client libraries

Find source code and setup instructions for your language client.

Choose your language

Install a client, make one lookup and read the response fields.

TypeScript / JavaScript

enrichip

Runtime checked
Requirements
ES modules · checked on Node 26
Package version
1.0.1

Install

Terminal
npm install [email protected]

Look up one IP

node lookup.mjs
lookup.mjs
import { queryIP } from "enrichip";

const info = await queryIP("1.1.1.1");
console.log(JSON.stringify(info, null, 2));

Client behavior

  • This example uses the published npm package. Its IP argument accepts a string, including compressed IPv6; repository HEAD has a stricter validator.
  • The client does not expose a per-request timeout. Use the HTTP examples when you need direct control of request settings.

Before you integrate

Single-IP requests
Use one address per lookup. Some clients still expose bulk methods; the API rejects bulk requests. Read the bulk policy
Own-IP responses
The root endpoint returns the connecting process’s public IP as text by default. For a full own-IP JSON response, use the HTTP examples
Verification scope
Runtime checked means the displayed package or source revision was executed for single-IP lookups. Source examples have been reviewed against the code, but have not been executed. A source revision can differ from a published package.
Prefer native HTTP?Copy a request with a timeout and HTTP error handling.

Full-list access.

For pricing or full-list access, email [email protected].

Selected list
Selected records
Records in this list