1 year ago

#381954

test-img

Pro Eng

How to receive the users data from ipregistry api

I'm using https://ipregistry.co api , its an ip address api that collects the ip's from users who entered a website.

Now I have already integrated it into my website, and its working properly and everything is good but the problem is i dont know where im going to receive the data.

By the way I'm using html and javascript.

<script> src="https://unpkg.com/@ipregistry/client/dist/browser/index.js">
</script>

<script>
    const client = new ipregistry.IpregistryClient('THE_KEY');
    client.lookup('73.2.2.2').then(response => {
        console.log(response.data);
    }).catch(error => {
        console.err(error);
    });
</script>

scscs

javascript

html

api

ip-address

0 Answers

Your Answer

Accepted video resources