IP μ§λ¦¬μ μμΉ - JSON μλν¬μΈνΈ
API κΈ°λ³Έ κ²½λ‘λ
https://i.pn/json/{query}
{query} λ¨μΌ IPv4 μ£ΌμμΌ μ μμ΅λλ€. 쿼리λ₯Ό μ 곡νμ§ μμΌλ©΄ νμ¬ IP μ£Όμκ° μ¬μ©λ©λλ€.
λ§€κ°λ³μ
쿼리 λ§€κ°λ³μ(μ: μ¬μ©μ μ μ νλ)λ GET μμ² λ§€κ°λ³μλ‘ μΆκ°λ©λλ€. μλ₯Ό λ€μ΄:
https://i.pn/json/216.73.216.109?fields=61439
| νλ | μλ΅ νλλ μ ν μ¬ν |
API ν€κ° νμνμ§ μμ΅λλ€.
λΉ λ₯Έ ν μ€νΈ
μ΄ μΏΌλ¦¬λ₯Ό νΈμ§νκ³ μ΅μ μ μ€νν μ μμ΅λλ€
GET
μλ΅
λ°νλ λ°μ΄ν°
APIλ λ€μ νλμ κ°μ λ°νν μ μμ΅λλ€
λͺ¨λ λ°νλ νλκ° νμνμ§ μμ κ²½μ° GET λ§€κ°λ³μ fieldsλ₯Ό μ¬μ©νμ¬ λ°νν λ°μ΄ν°λ₯Ό μ§μ νμμμ€. νλλ₯Ό μΌνλ‘ κ΅¬λΆνμμμ€ (fields=status,query,country,city) λλ μμ±λ μ«μ κ°μ μ¬μ©νμμμ€ (λμν μ μ½μ μν΄)
name | description | example | type | |
|---|---|---|---|---|
query | IP used for the query | 202.202.202.202 | string | |
status | success or fail | success | string | |
type | Residential(1), mobile(3) or hosting(4) | 1 | int | |
country | Country name | United States | string | |
countryCode | Two-letter country code | US | string | |
countryTier | Country tier | 1 | string | |
regionName | Region/state | California | string | |
city | City | Los Angeles | string | |
cityId | City id | 123 | int | |
stateId | State id | 123 | int | |
asn | AS number (RIR) | 15169 | int | |
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 | IP found in blacklists | ["spam","abuse"] | string[] | |
continent | Continent name | North America | string | |
continentCode | Two-letter continent code | NA | string | |
region | Region/state short code (FIPS or ISO) | CA | string | |
asName | AS name (RIR). Empty for IP blocks not being announced in BGP tables. | GOOGLE | string | |
zip | Zip code | 12345 | string | |
lat | Latitude | 27.123 | float | |
lon | Longitude | -27.123 | float | |
timezone | Timezone (tz) | America/Los_Angeles | string | |
offset | Timezone UTC DST offset in seconds | 2000 | 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) | ip-01.rip.net | string | |
district | District (subdivision of city) | Farm District | string |