To access our API and take advantage of all the available methods, you will need to authenticate your requests using your unique API Key. This key is a secure authentication mechanism that ensures only authorized users can access the API.

To obtain your API Key, simply navigate to your account dashboard. Once you have your API Key, you can begin authenticating your requests.

To authenticate your requests, append the key parameter to the request URL, along with your API Key. Here is an example of how to do this:

Add your API Key to the key parameter just like this:

https://greipapi.com/GeoIP?key=1234567890

Or, you can use the API Key as a Bearer Token as follows:

cURL
curl --request GET \
  --url https://greipapi.com/GeoIP \
  --header 'Authorization: Bearer <api-key>'

Securing your API Key

For more information about how to secure your API Key, please refer to Protecting your API Key