# Rules geoip state, province information?

**URL:** <https://community.auth0.com/t/rules-geoip-state-province-information/14348>\
**Category:** Get Help\
**Tags:** rules\
**Created:** [August 15, 2018, 6:30pm UTC](https://community.auth0.com/t/rules-geoip-state-province-information/14348 "2018-08-15T18:30:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lucas1/32/13029_2.png) [@lucas1](https://community.auth0.com/u/lucas1)\
**Post date:** [August 15, 2018, 6:30pm UTC](https://community.auth0.com/t/rules-geoip-state-province-information/14348/1 "2018-08-15T18:30:27Z")

</div>

We love the fact that you can access the `context` object within Auth0 Rules! We are currently looking at segmenting our users based on their locations. The context object gives us a lot of great information about where the user is located. We get their country code, city name, lat+long cords. etc.

Has anyone built a custom solution that hits an external API or service to grab the user’s province or state code? Does Auth0 have a best practice for this? Google offers a location api but it’s rates are a bit expensive. Looking to see if someone has solved this cheaply.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [August 29, 2018, 3:14pm UTC](https://community.auth0.com/t/rules-geoip-state-province-information/14348/2 "2018-08-29T15:14:33Z")

</div>

Hey there @lucas1! I don’t know of a custom solution that has been built that hits an external API or service to grab the user’s province or state code. Were you able to come up with a solution that fills that void? Also if this is something you would like to see in the future from Auth0 you can always do a feature request at [Auth0.com/feedback](https://auth0.com/feedback).

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 26, 2019, 9:39am UTC](https://community.auth0.com/t/rules-geoip-state-province-information/14348/3 "2019-07-26T09:39:49Z")

</div>


