Single Lookup

This is the primary IpForensics endpoint. It is used to look up any given IPv4 or IPv6 addresses. To call this endpoint, simply attach an IP address to the API's base URL (HTTP GET method):

Code Snippet

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://ipforensics.net/api/v1/single?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X&ip_address=102.219.153.59',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Sample Response

Endpoint

Returns information about the current Ip address

GET https://ipforensics.net/api/v1/single?apikey=...&ip_address=...

Returns response object and a metadata of the request

Query Parameters

Name
Type
Description

apikey*

String

Your public key

ip_address*

String

Your private key

Last updated

Was this helpful?