Retrieve detailed geolocation information for a visitor’s or user’s IP address
Changed onThis API allows you to retrieve detailed geolocation information for a visitor’s or user’s IP address.
By using the IP Geolocation method, you can access data such as the user’s country, city, ISP, and more, enabling you to personalize user experiences, enhance security, and make data-driven decisions based on geographic insights.
Request
- Base URLhttps://v2.greipapi.com
- URLhttps://v2.greipapi.com/geo/ip
- AuthHTTP bearer
Query parameters
The params command selects optional response modules. Basic ip and geo fields are always included.
Recognized module names: security, currency, timezone, location, and/or device.
Unrecognized tokens are accepted but do not add modules.
Sample value: security,timezone,currency.
The lang command is used to get a response in a specific language.
The callback command can help you make the response as a JSONP format.
Expected values: any name that can be used as a function name in Javascript, e.g: myFunctionName.
The format command is used to get a response in a specific format.
The mode command is used to in the development stage to simulate the integration process before releasing it to the production environment.
Expected values: live, or test.
Optional amount string used by usage and rate-limit gates.
The user_id query parameter identifies requests from specific users for monitoring in the Events page. See the user identifier options page for details.
Response
OK
Example response
{
"success": true,
"data": {
"asn": {
"number": "AS15169",
"cidr": "8.8.8.0/24"
}
},
"execution_ms": 42
}Changes
- info
api tag
Geoadded - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the new optional
queryrequest parameteramount - info
added the media type
application/jsonfor the response with the status
- info