IP Config Help

Back

IP Address Information

IP Information:


                        

API Options for IP Information

1. ipinfo.io

Endpoint: `https://ipinfo.io/{ip}?token={token}`

API Key: 需要注册并获取API Key

const response = await fetch(`https://ipinfo.io/${ip}?token=${apiKey}`);

2. ip-api.com

Endpoint: `http://ip-api.com/json/{ip}`

API Key: 不需要(免费版有请求限制)

const response = await fetch(`http://ip-api.com/json/${ip}`);

3. ipstack.com

Endpoint: `http://api.ipstack.com/{ip}?access_key={access_key}`

API Key: 需要注册并获取API Key

const response = await fetch(`http://api.ipstack.com/${ip}?access_key=${apiKey}`);

4. ipgeolocation.io

Endpoint: `https://api.ipgeolocation.io/ipgeo?apiKey={apiKey}&ip={ip}`

API Key: 需要注册并获取API Key

const response = await fetch(`https://api.ipgeolocation.io/ipgeo?apiKey=${apiKey}&ip=${ip}`);

5. freegeoip.app

Endpoint: `https://freegeoip.app/json/{ip}`

API Key: 不需要

const response = await fetch(`https://freegeoip.app/json/${ip}`);

6. ipdata.co

Endpoint: `https://api.ipdata.co/{ip}?api-key={apiKey}`

API Key: 需要注册并获取API Key

const response = await fetch(`https://api.ipdata.co/${ip}?api-key=${apiKey}`);

7. ipwhois.io

Endpoint: `https://ipwhois.app/json/{ip}`

API Key: 不需要(免费版有请求限制)

const response = await fetch(`https://ipwhois.app/json/${ip}`);

8. geoplugin.net

Endpoint: `http://www.geoplugin.net/json.gp?ip={ip}`

API Key: 不需要

const response = await fetch(`http://www.geoplugin.net/json.gp?ip=${ip}`);

9. Abstract API

Endpoint: `https://ipgeolocation.abstractapi.com/v1/?api_key={apiKey}&ip_address={ip}`

API Key: 需要注册并获取API Key

const response = await fetch(`https://ipgeolocation.abstractapi.com/v1/?api_key=${apiKey}&ip_address=${ip}`);

10. ipregistry.co

Endpoint: `https://api.ipregistry.co/{ip}?key={apiKey}`

API Key: 需要注册并获取API Key

const response = await fetch(`https://api.ipregistry.co/${ip}?key=${apiKey}`);