IP geo-fencing

Whether an IP address is inside the expected country and state.

What you can do with it

  1. Make sure customers sign up from India, or from the states you serve.

  2. Block a service in regions where you cannot operate.

How it works

IP geo-fencing

POST /v1/risk/geo-fence

What you send

  • iprequiredIPv4 or IPv6 address to locate.
  • countryrequiredCountry you expect, as a two-letter ISO code such as IN. Case is ignored.
  • stateState you expect, as a code of 1 to 3 letters or digits such as MH. Case is ignored.

What you get back

  • valid_userTrue when the address is inside the country, and state if given, you expected.
  • ipThe address that was checked.
  • countryCountry the address is in.
  • country_codeTwo-letter country code.
  • stateState the address is in.
  • state_codeState code.
  • cityCity.
  • zip_codePincode.

and 5 more

Full API reference

Start using IP geo-fencing

Add money to your wallet, subscribe to IP geo-fencing and we switch it on for your account. You call it with your own key.