Skip to content

Commit

Permalink
Changed from freeipapi to ipapi.co
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerTech312 committed Apr 24, 2024
1 parent 89ba99c commit 7866b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function isValidDomain(domain) {
}

function ipLookup(ip) {
fetch(`https://freeipapi.com/api/json/${ip}`)
fetch(`https://ipapi.co/${ip}/json/`)
.then(response => {
if (!response.ok) {
throw new Error('IP lookup failed');
Expand All @@ -43,7 +43,7 @@ function ipLookup(ip) {
<p><strong>City:</strong> ${data.city}</p>
<p><strong>Region:</strong> ${data.region}</p>
<p><strong>Country:</strong> ${data.country_name}</p>
<p><strong>ISP:</strong> ${data.isp}</p>
<p><strong>ISP:</strong> ${data.org}</p>
<iframe
width="600"
height="450"
Expand Down

0 comments on commit 7866b17

Please sign in to comment.