Request IP2Company enrichment
curl --request POST \
--url https://company.leadpipe.com/v1/lookup \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"ip": "192.0.2.10"
}
'import requests
url = "https://company.leadpipe.com/v1/lookup"
payload = { "ip": "192.0.2.10" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ip: '192.0.2.10'})
};
fetch('https://company.leadpipe.com/v1/lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://company.leadpipe.com/v1/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ip' => '192.0.2.10'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://company.leadpipe.com/v1/lookup"
payload := strings.NewReader("{\n \"ip\": \"192.0.2.10\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://company.leadpipe.com/v1/lookup")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ip\": \"192.0.2.10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://company.leadpipe.com/v1/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ip\": \"192.0.2.10\"\n}"
response = http.request(request)
puts response.read_body{
"ip": "192.0.2.10",
"status": "missing",
"data": null,
"stale": null,
"pollAfterSeconds": null,
"refreshStatus": null,
"meta": {
"enabled": true,
"limit": 10000,
"used": 0,
"reserved": 1,
"remaining": 9999,
"periodStart": "2026-11-12T00:00:00.000Z",
"creditsConsumed": 0
}
}{
"ip": "192.0.2.10",
"status": "pending",
"data": null,
"stale": null,
"pollAfterSeconds": 15,
"refreshStatus": null,
"meta": {
"enabled": true,
"limit": 10000,
"used": 0,
"reserved": 1,
"remaining": 9999,
"periodStart": "2026-11-12T00:00:00.000Z",
"creditsConsumed": 0
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Invalid request"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Missing X-API-Key header"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "IP2Company API access is disabled"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Use GET or POST for IP2Company lookups"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "IP2Company credit allowance exhausted"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "IP2Company temporarily unavailable"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}Company lookup
Request IP2Company enrichment
Return saved data or request enrichment for one IP. New work requires a temporary credit reservation; final ISP-classified results consume zero credits.
POST
/
v1
/
lookup
Request IP2Company enrichment
curl --request POST \
--url https://company.leadpipe.com/v1/lookup \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"ip": "192.0.2.10"
}
'import requests
url = "https://company.leadpipe.com/v1/lookup"
payload = { "ip": "192.0.2.10" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ip: '192.0.2.10'})
};
fetch('https://company.leadpipe.com/v1/lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://company.leadpipe.com/v1/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ip' => '192.0.2.10'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://company.leadpipe.com/v1/lookup"
payload := strings.NewReader("{\n \"ip\": \"192.0.2.10\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://company.leadpipe.com/v1/lookup")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ip\": \"192.0.2.10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://company.leadpipe.com/v1/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ip\": \"192.0.2.10\"\n}"
response = http.request(request)
puts response.read_body{
"ip": "192.0.2.10",
"status": "missing",
"data": null,
"stale": null,
"pollAfterSeconds": null,
"refreshStatus": null,
"meta": {
"enabled": true,
"limit": 10000,
"used": 0,
"reserved": 1,
"remaining": 9999,
"periodStart": "2026-11-12T00:00:00.000Z",
"creditsConsumed": 0
}
}{
"ip": "192.0.2.10",
"status": "pending",
"data": null,
"stale": null,
"pollAfterSeconds": 15,
"refreshStatus": null,
"meta": {
"enabled": true,
"limit": 10000,
"used": 0,
"reserved": 1,
"remaining": 9999,
"periodStart": "2026-11-12T00:00:00.000Z",
"creditsConsumed": 0
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Invalid request"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Missing X-API-Key header"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "IP2Company API access is disabled"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "Use GET or POST for IP2Company lookups"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "IP2Company credit allowance exhausted"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}{
"error": {
"code": "HTTP_ERROR",
"message": "IP2Company temporarily unavailable"
},
"meta": {
"timestamp": "2026-11-12T00:00:00.000Z",
"request_id": "11111111-1111-4111-8111-111111111111"
}
}See IP2Company enrichment and polling. A saved HTTP 200 response can include unfinished work; inspect refreshStatus and honor the polling delay.
Authorizations
Body
application/json
Response
Saved or missing lookup with current credit balance; ISP data is free and may include a pending refresh.
Refresh state for saved data, including HTTP 200 responses. pending confirms accepted unfinished work; deferred requires retrying POST after pollAfterSeconds; not_requested means this read started no refresh; not_needed means no refresh is required. Null without saved data. stale independently describes the saved result age.
Available options:
not_needed, not_requested, pending, deferred, null Was this page helpful?