Forum Discussion
mass ip geolocation
I have a blog post coming out later today (Australian time) where I explain how to use a different IP Address Lookup with a way to limit how quickly it will query the API.
You can find it here: https://www.fourmoo.com/blog
Hi GilbertQ,
Thanks for the wonderful post. The problem I am facing when trying to implement is, access restriction when trying to use freegioip.net. When I further researched I found that their address has been changed to ipstack.com
How should we design for this particular website? they changed the plan and not sure how to do that.
Thanks,
Indhu
- GilbertQ8 years agoSuper User
Hi indhu
It appears that they have got a free option which has got 10 000 lookups.
Otherwise you would have to pay for a lookup service?
- indhu8 years agoHelper III
GilbertQ 10,000 looks up is fine. I replaced your following code to this,
let Source = (#"IP Address" as text) => let Source = Json.Document(Web.Contents("https://ipstack.com/json/" & #"IP Address")), #"Converted to Table" = Record.ToTable(Source), #"Transposed Table" = Table.Transpose(#"Converted to Table"), #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table") in #"Promoted Headers" in SourceReplacing the source name to new web address. I am getting this error,
DataSource.Error: Web.Contents failed to get contents from 'https://ipstack.com/json/203.56.182.115' (404): Not Found Details: DataSourceKind=Web DataSourcePath=https://ipstack.com/json/203.56.182.115 Url=https://ipstack.com/json/203.56.182.115Can you please point me out what I am missing?
I also tried another site, https://www.ipinfodb.com/api Following your post and replaced the M query as follows,
let Source = (#"IP Address" as text) => let Source = Json.Document(Web.Contents("http://api.ipinfodb.com/v3/ip-city/?key=<APIkey>" & #"IP Address")), #"Converted to Table" = Record.ToTable(Source), #"Transposed Table" = Table.Transpose(#"Converted to Table"), #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table") in #"Promoted Headers" in SourceAnd getting this error,
An error occurred in the ‘fn_GetIPAddressDetails’ query. DataFormat.Error: We found extra characters at the end of JSON input. Details: Value= Position=0I badly need this to work :( Please help
Thanks,
indhu
- GilbertQ8 years agoSuper UserHi there
As per there documentation you will have to sign up and get an API Access key.
Then when you query as part of the query string you would need to put in the API Key in order for it to work