How to Geolocate an IP Address in Power Automate

Cloudmersive
3 min readJan 3, 2025

--

If you’re pulling public IP address information from a web form (or any other location) into Power Automate, you might’ve wondered if there’s a way to parse location info from that string.

Good news: there is!

You can easily retrieve structured geolocation information from any public IP address with the Cloudmersive Data Validation connector.

Carrying out a Basic Geolocation Test in Power Automate

To test this connector out, we’ll create a manually triggered instant cloud flow and use our own public IP address as an example (alternatively, we can use any public IP address availble to us).

To find the Cloudmersive Data Validation connector, we’ll add a new action and type “Cloudmersive” into the connector search bar. This brings up a list of several Cloudmersive connector options. The Data Validation connector has a blue-gray logo.

To find the IP address geolocation API we want, we’ll click “See more” to view the full actions list. The Geolocate an IP address action will be right at the top.

After we select this action, we’ll need to create and authorize our connection. We can use this action (or any other Cloudmersive connector action) for free up to 800 API calls/month with a free API key, and we can get one by creating a free account on the Cloudmersive website.

Once we’ve created our connection, we’ll paste our public IPv4 address in the IP address to geolocate parameter.

Now we’ll save and run our flow exactly as it is currently.

When we open the Geolocate an IP address action, we’ll find as much structured location info about our IPv4 as is publicly available. That includes exact latitude and longitude values which we can use with any map service API.

We can, of course, use this information in myriad other ways. The geolocation info we get is seamlessly parsed into dynamic content in our flow.

To finish up my example flow, I’ve chosen to use dynamic geolocation response content to send an email to myself about my own location.

That’s all there is to it! Now you can easily geolocate IP addresses in any Power Automate flow.

--

--

Cloudmersive
Cloudmersive

Written by Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Responses (1)