API Basics
Data Tools
WWW
★  Browser Bot
★  HTML Clean
★  HTML Extract
★  URL Info
Telephony
Geolocation
Security and Networking
E-commerce
Imaging

Examples

Minimal snippets for various languages. You might also like to check out our SDKs

C#
Go
PHP

PHP Example


<?php
 
function curl_post_request($url, $data) 
{
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $content = curl_exec($ch);
    curl_close($ch);
    return $content;
}
 
$postData = array(
    "user-id" => "YOUR_USER_ID",
    "api-key" => "YOUR_API_KEY",
    "ip" => "162.209.104.195"
);
 
$json = curl_post_request("https://neutrinoapi.net/ip-info", $postData); 
$result = json_decode($json, true);
 
echo $result['country']."\n";
echo $result['country-code']."\n";
echo $result['region']."\n";
echo $result['city']."\n";
?>