Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
adam_macs
Helper I
Helper I

IP Address Geolocation Mapping

Hi, i have a field of IP Addresses in my dataset which i would like to convert to country. I have tried using the API from https://ipstack.com/ however i seem to be getting an error that my API key is not valid (which i know it is). Any ideas on what i am doing wrong?

 

(#"IP Address" as text) => 
let
Source = Json.Document(Web.Contents("http://api.ipstack.com/" & #"IP Address" & "?access_key= MY KEY
&format=1")),
#"Converted to Table" = Record.ToTable(Source),
#"Transposed Table" = Table.Transpose(#"Converted to Table"),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table")
in
#"Promoted Headers"

 

adam_macs_0-1666790432624.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @adam_macs ,

See the following thread to if helps.

Solved: IP address mapping

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

thanks @Anonymous , i checked out the link but the API looks to have changes since then. Thanks anyway

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors