IP API not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

IP API not working

Ive made a code to fetch a users location and I need help My code: https://code.sololearn.com/WmWhuR37qnkC/?ref=app Screenshot of the dashboard: https://linkpicture.com/q/API-docs.png API:https://rapidapi.com/fcambus/api/telize

22nd Sep 2020, 1:37 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
8 Answers
+ 5
P.M. i just found out that the API was paid. I found a free one: ipgeolocationapi.com/ I want to find out country and region, but I don’t know how to use it. PLease help.
23rd Sep 2020, 1:06 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
+ 4
P.M. i get: “message: you are not subscribed to this API”
23rd Sep 2020, 12:23 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
+ 4
Galaxy-Coding (CodeWarrior) ok i'll try it and will let you know if i can help you
23rd Sep 2020, 1:58 PM
Bot
Bot - avatar
+ 4
you're welcome😁 i dont know about getJSON maybe i have to learn more about jquery🤔
23rd Sep 2020, 2:53 PM
Bot
Bot - avatar
+ 3
maybe it means your header parameters are not correct or something like that
23rd Sep 2020, 12:29 PM
Bot
Bot - avatar
+ 3
P.M. thank you SO much. I really apreciate your help! by the way, I updated my code, but it still won’t work using Jquery getJSON
23rd Sep 2020, 2:01 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar
0
Well... I don't really understand the Geolocation API that much but I found this article on w3school: https://www.w3schools.com/html/html5_geolocation.asp Also, I think you're supposed to use navigator.geolocation.getCurrentPosition() (According to w3school and solo-learn)
23rd Sep 2020, 2:41 AM
:DD
:DD - avatar