- Takes: IP address
- Passive: the target is not contacted
Send the token and at least one of cells, wifi, gps or ip (with the ipf fallback enabled). Returns latitude, longitude, accuracy in metres and an address. Always set radio, because cid and lac mean different things per radio type. The docs list a us1 (Northern Virginia) and an eu1 (Germany) host.
Request body (JSON) · 14ShowHide
token
Your API token
id
Device ID on a per-device plan; alphanumeric, at most 20 characters
radio
Radio type: gsm, cdma, umts, lte, nbiot or nr
mcc
Mobile Country Code, 0 to 999
mnc
Mobile Network Code, 0 to 999 (System ID on CDMA, 1 to 32767)
cells
Cell objects visible to the device (for example lac and cid)
wifi
WiFi objects visible to the device (bssid, channel, frequency)
ip
IP address of the device, used with the ipf fallback
gps
GPS objects describing where the data was scanned
address
0 suppress, 1 address (default), 2 address components
accept-language
Preferred language order for address results
fallbacks
Fallback options: all, ipf (IP), lacf (LAC), scf (short CID)
bt
Border threshold: 0 strict, 1 medium (default), 2 low
metadata
1 returns a metadata object; default 0
Response fields · 10ShowHide
status
ok on success, error otherwise
message
Error message when status is error
balance
Approximate remaining balance on the token
lat
Latitude
lon
Longitude
accuracy
Horizontal radius in metres
address
Physical address of the location
address_detail
Address components (area, locality, district, county, city, state, country, country_code, postal_code)
aged
Shown when the location rests on one measurement, data older than 90 days or an LAC fallback
fallback
Shown when a fallback was used: ipf, lacf, scf, cidf or ncf
curl -X POST 'https://us1.unwiredlabs.com/v2/process?token=YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"token":"YOUR_API_KEY","radio":"gsm","mcc":310,"mnc":410,"cells":[{"lac":7033,"cid":17811}],"wifi":[{"bssid":"00:00:5e:00:53:01","channel":11,"frequency":2412}],"address":1}'{
"status": "ok",
"balance": 4500,
"lat": 51.5,
"lon": -0.12,
"accuracy": 50,
"address": "1 Example Street, Example City, Exampleland"
}