๐ IP ์ง๋ฆฌ์ ์์น
์๋ํฌ์ธํธโ
https://api.verifik.co/v2/ip-lookup
IPv4/IPv6 ์ฃผ์์ ์ง๋ฆฌ์ ์์น๋ฅผ ์กฐํํ์ฌ ๊ตญ๊ฐ, ์ง์ญ, ๋์, ISP/ASN, ์ขํ, ์๊ฐ๋๋ฅผ ๋ฐํํฉ๋๋ค. ์ฌ๊ธฐ ํ์ง, ์ ๊ทผ ์ ์ด, ์ํ ์ ์์ ์ฌ์ฉํ์ธ์.
ํค๋โ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
๋งค๊ฐ๋ณ์โ
| Name | Type | Required | Description |
|---|---|---|---|
ip | string | Yes | IPv4 ๋๋ IPv6 ์ฃผ์. |
์์ฒญโ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/ip-lookup", {
params: { ip: "8.8.8.8" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/ip-lookup"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"ip": "8.8.8.8"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
์๋ตโ
- 200
- 404
{
"data": {
"country": "United States",
"countryCode": "US",
"city": "Mountain View",
"isp": "Google LLC"
},
"signature": { "message": "Certified by Verifik.co" }
}
{ "code": "NotFound", "message": "Record not found." }
์ฐธ๊ณ โ
- Sandbox:
8.8.8.8;192.168.100.1โ192.168.100.10;192.168.100.99โ 404.