Tech Blog

How to define an API key to work only within a specific IP range in five easy steps

In the example below we will use to get our IP address.
We will use to convert the desired IP range to format CIDR (Classless Inter-Domain Routing).

Our IP address is

The CIDR format for range – (which includes our IP address) is


When creating a new API key or editing an existing API key we will add for the IP range


We will test this IP from the computer with IP address by doing a GET on a bibliographic record.  It works.


Now in the IP range of the same API key we will put which is the CIDR format for IP range – (which does not include our IP address) 


Now the API does not work and gives message “HTTP requests from IP address are not allowed”

Leave a Reply