Skip to main content

Code Examples

Choose your preferred language and run the example:

curl -x gateway.aluvia.io:8080 \
-U YOUR_USERNAME:YOUR_PASSWORD \
https://ipconfig.io/json

Example Output:

{
"ip": "172.33.58.28",
"ip_decimal": 2889363294,
"country": "United States",
"country_iso": "US",
"country_eu": false,
"region_name": "California",
"region_code": "CA",
"metro_code": 807,
"zip_code": "94112",
"city": "San Francisco",
"latitude": 37.7201,
"longitude": -122.4414,
"time_zone": "America/Los_Angeles",
"asn": "AS21928",
"asn_org": "T-MOBILE-AS21928",
"user_agent": {
"product": "curl",
"version": "8.5.0",
"raw_value": "curl/8.5.0"
}
}

✅ If you see a US mobile carrier (T-Mobile, AT&T, or Verizon) in asn_org, it worked!