Get Started

    API Endpoint

        https://api.nqduv.dev/
                

API CHECK IP

Tất cả api mình đều chuyển đổi để sử dụng qua phương thức GET cho thuận tiện thay vì phải POST data lên và kết quả trả về sẽ dưới định dạng json.

Tất cả API đều do mình tự mò và tự viết nên có gì thắc mắc liên hệ qua [email protected].

Methods And Parameters


# Here is a curl example
curl 'https://api.nqduv.dev/checkip.php?ip=me' \
-H 'authority: api.nqduv.dev' \
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
  --compressed 
                

Send a request to receive data to
https://api.nqduv.dev/checkip.php Request Method: GET



Result example :

{
  "ip": "24.48.0.1",
  "status": "success",
  "country": "Canada",
  "region": "Quebec",
  "city": "Montreal",
  "timezone": "America/Toronto",
  "isp": "Le Groupe Videotron Ltee",
  "org": "Videotron Ltee",
  "as": "AS5769 Videotron Telecom Ltee"
}
                

QUERY PARAMETERS

Field Type Description
ip String ?ip=me or ?ip=ip cần check
country String Country name
region String Region/state
isp String ISP name
org String Organization name
as string AS number and organization, separated by space (RIR). Empty for IP blocks not being announced in BGP tables.
city string City

Errors

The Westeros API uses the following error codes:

Status Meaning
error Invaild data.
fail Unable to get ip data