API Examples
Example code for various languages.
You might also like to check out our
SDKs
cURL Examples
Select an API:
curl https://neutrinoapi.net/ip-info \
--header "User-ID: <your-user-id>" \
--header "API-Key: <your-api-key>" \
--data-urlencode "ip=1.1.1.1" \
--data-urlencode "reverse-lookup=false"
{
city: "San Jose",
continent-code: "NA",
country: "United States of America",
country-code: "US",
country-code3: "USA",
currency-code: "USD",
host-domain: "",
hostname: "",
ip: "1.1.1.1",
is-bogon: false,
is-v4-mapped: false,
is-v6: false,
latitude: 37.33939,
longitude: -121.89496,
region: "California",
region-code: "CA",
timezone: {
abbr: "PDT",
date: "2024-08-19",
id: "America/Los_Angeles",
name: "Pacific Daylight Time",
offset: "-07:00",
time: "19:08:16.76236"
},
valid: true
}