IP 지리적 위치 - JSON 엔드포인트

API 기본 경로는

https://api.i.pn/json/{query}

{query} 단일 IPv4 주소일 수 있습니다. 쿼리를 제공하지 않으면 현재 IP 주소가 사용됩니다.

매개변수

쿼리 매개변수(예: 사용자 정의 필드)는 GET 요청 매개변수로 추가됩니다. 예를 들어:

https://api.i.pn/json/216.73.216.238?fields=61439

필드
필드응답 필드는 선택 사항

API 키가 필요하지 않습니다.

빠른 테스트

이 쿼리를 편집하고 옵션을 실험할 수 있습니다

GET
응답

반환된 데이터

API는 다음 필드와 값을 반환할 수 있습니다

모든 반환된 필드가 필요하지 않은 경우 GET 매개변수 fields를 사용하여 반환할 데이터를 지정하십시오. 필드를 쉼표로 구분하십시오 (fields=status,query,country,city) 또는 생성된 숫자 값을 사용하십시오 (대역폭 절약을 위해)

name
description
example
type
query
IP used for the query
173.194.67.94
string
status
success or fail
success
string
type
IP type
4
int
country
Country name
United States
string
countryCode
Two-letter country code ISO 3166-1 alpha-2
US
string
countryTier
Country tier
1
int
regionName
Region/state
California
string
city
City
Mountain View
string
cityId
City ID
2973783
int
stateId
State ID
11071622
int
asn
Autonomous system number
15169
int
isTransparent
Transparent proxy
true
bool
as
AS number and organization, separated by space (RIR). Empty for IP blocks not being announced in BGP tables.
AS15169 Google Inc.
string
mobile
Mobile (cellular) connection
true
bool
proxy
Proxy, VPN or Tor exit address
true
bool
hosting
Hosting, colocated or data center
true
bool
blacklists
Blacklists
[]
array
continent
Continent name
North America
string
continentCode
Two-letter continent code
NA
string
region
Region/state short code (FIPS or ISO)
CA or 10
string
asName
AS name (RIR). Empty for IP blocks not being announced in BGP tables.
GOOGLE
string
zip
Zip code
94043
string
lat
Latitude
37.4192
float
lon
Longitude
-122.0574
float
timezone
Timezone (tz)
America/Los_Angeles
string
offset
Timezone UTC DST offset in seconds
-25200
int
currency
National currency
USD
string
isp
ISP name
Google
string
org
Organization name
Google
string
reverse
Reverse DNS of the IP (can delay response)
wi-in-f94.1e100.net
string
district
District (subdivision of city)
Old Farm District
string
생성된 필드
query,status,country
생성된 숫자
11