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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors