GET /v1/data/ip2company to read a saved result and POST /v1/data/ip2company to request enrichment for one IP. Results include company and network details, classification, freshness, refresh state, and credit usage.
Use the Leadpipe domain
Your backend can callhttps://company.leadpipe.com with the same organization X-API-Key, access requirements, response payload, and shared IP2Company balance:
The examples and interactive endpoint references use these public Leadpipe URLs. The IP2Company OpenAPI specification describes the same three operations for SDKs and API clients. These aliases reach the same Leadpipe API and usage accounting as the canonical operations; switching the hostname does not create another allowance.
For Python
urllib, set a descriptive User-Agent, such as YourIntegration/1.0. The domain’s browser-integrity check can reject its stock user agent with Cloudflare error 1010 before the request reaches API authentication.
ISP-classified results are free and retain their available data. Completed company, unclassified-organization, and no-company results consume one IP2Company credit each. A populated company name alone does not determine billing: inspect data.classification and meta.creditsConsumed.
GET /v1/data/company is the legacy stored lookup. It uses different credits, response fields, and rate limits.Before you start
You need an active organization API key and IP2Company access enabled for your organization. Creating a key alone does not enable the product or assign credits. Manage keys in Settings > API Keys, keep them in your backend, and setLEADPIPE_API_KEY for these examples.
Replace the illustrative address 192.0.2.10 with the IP you want to look up. Supply one IPv4 or IPv6 address without a URL, port, CIDR suffix, or IPv6 zone identifier. IPv4-mapped IPv6 addresses are normalized to IPv4.
Read a saved result
Request enrichment
202 confirms accepted work without a saved result. Duplicate pending submissions for the same organization/IP reuse their credit reservation.
Interpret results and ISP data
These are selected fields from an ISP response, not the complete payload:
isInternetProvider and accessType describe the network separately from the company association. An explicit company match on an ISP connection is classified company and remains chargeable.
Associations are inferred: they do not prove IP ownership, visitor employment, or that a particular person visited your site. Missing/no-company results do not prove the IP is not used by a business. Strings can be empty and some attributes can be null; the source supplies no currency for annualSales.
Freshness and polling
stale: false means the saved result is within the source’s refresh window. stale: true means it is due for refresh. Reading it again does not extend that window, and fresh does not mean independently verified. stale is null without saved data. The response does not expose the exact enrichment timestamp, expiry date, or freshness duration.
POST can return HTTP 200 with saved data while an update is unfinished. Inspect refreshStatus as well as status and stale:
Honor the delay even with HTTP
200. A refresh is final when stale is false and refreshStatus is not_needed. Set your own overall polling deadline; pending work is not a negative match.
Track your company-lookup allowance
IP2Company has a dedicated organization-wide balance, separate from visitor identification, Company Visitors, legacy Company Credits, and intent audience slots. All organization API keys share it. Changing a reporting period or allowance does not erase consumed credits.
POST reserves one credit before new work. A fresh final ISP result releases the hold without spending it. Stale ISP data or pending/deferred work keeps the hold until final completion is read. Uncertain/rejected submissions retain reservations for retrying the same IP; no automatic expiry or cancellation is implied. Poll accepted work rather than treating a saved HTTP
200 response as a finished refresh.
Saved ISP results remain readable at zero available balance when access is enabled. At zero balance without an existing hold, POST can only read a saved ISP result; it starts no new enrichment or refresh. New work still requires a reservation, even if its eventual ISP result will be free. Other completed results are refused when credits are exhausted.
Read request outcomes and credits by API key without spending credits:
from and exclusive UTC to dates, a maximum 31-day range, and an optional apiKeyId. The default covers the last 30 UTC days including today. Historical charges remain recorded, including ISP charges before the exemption. The dashboard shows outcomes and the balance under Settings > API keys.
Handle errors and rate limits
The current IP2Company product has no additional application request-rate ceiling. Service admission, pending-enrichment limits, and provider capacity still apply; this does not guarantee an enrichment completion rate. The legacy endpoint’s 60-per-minute limit does not apply here.
Errors use
error.code, error.message, and diagnostic meta, rather than successful-response credit counters.
Endpoint references use the IP2Company OpenAPI specification, generated from the live customer contract for the public Leadpipe aliases. Use the legacy lookup guide only for GET /v1/data/company integrations.