Origin Lookup

This endpoint returns details for the calling address. It allows you to look up your own β€”or a visitor to your site IP address details without knowing the IP address in advance:

Code Snippet

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://ipforensics.net/api/v1/origin?apikey=IPF-36ae36a6-4a32-4fae-a422-e45e70b0a515-X',
  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=...

Returns response object and a metadata of the request

Query Parameters

Name
Type
Description

apikey*

String

Your public key

Last updated

Was this helpful?