Getting Started
JustAPIDX provides an API to get Geolocation, Language, Currency, Timezone, Carrier, ASN details, threat intelligence & more
Make sure to sign up for a Free API key
here
to test these examples.
Example Request
curl "https://justapidx.com/api/data?APIKey=test&dataType=geolocation,carrier,asn,languages,currency,timezone,threat,useragent"
Sample Response
{
IPAddress: "207.244.85.51",
geolocation_data: {
city: "Washington",
region: "district of columbia",
region_code: "DC",
country: "United States",
country_code: "US",
continent: "North America",
continent_code: "NA",
postal: "20011",
is_european_union: false,
latitude: 38.9522,
longitude: -77.0253,
dialing_code: "1",
emoji_flag: "🇺🇸",
emoji_unicode: "U+1F1FA U+1F1F8"
},
asn_data: {
as_number: 30633,
as_name: "LEASEWEB-USA-WDC",
route: "207.244.64.0/18",
isp: "LeaseWeb USA Inc.",
domain: "leaseweb.com",
usage_type: "DCH"
},
carrier_data: {
carrier_name: "NA",
mcc: " NA",
mnc: "NA"
},
languages_data: [
{
name: "English",
native: "English"
}
],
currency_data: {
currency_name: "US Dollar",
currency_code: "USD",
currency_symbol: "$"
},
timezone_data: {
time_zone_name: "America/New_York",
time_zone_abbr: "EST",
time_zone_offset: "-0500",
time_zone_is_dst: false,
time_zone_current_time: "2021-01-29T08:13:54-05:00"
}
}
Examples
Replace 'test' with your API Keyvar request = new XMLHttpRequest();
request.open('GET', 'https://justapidx.com/api/data?APIKey=test&dataType=geolocation,carrier,asn,languages,currency,timezone,threat,useragent');
request.setRequestHeader('Accept', 'application/json');
request.onreadystatechange = function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
};
request.send();
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "https://justapidx.com/api/data?APIKey=test&dataType=geolocation,carrier,asn,languages,currency,timezone,threat,useragent")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
require 'uri'
require 'net/http'
url = URI("https://justapidx.com/api/data?APIKey=test&dataType=geolocation,carrier,asn,languages,currency,timezone,threat,useragent")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
All calls must be made to the https endpoint. No requests will be served over unsecured HTTP.