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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-cgao-msft
Community Support
Community Support

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 @v-cgao-msft , i checked out the link but the API looks to have changes since then. Thanks anyway

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors