ipinfo core
ipinfo plus
ipinfo max
Returns a specific field from IP information about the current IP.
Returns a specific field from IP information about the current IP. Available fields depend on the plan associated with your API token — see the field parameter for the full set across Core, Plus, and Max.
get/lookup/me/{field}
Request
- Base URLhttps://api.ipinfo.io
- Auth
- HTTP basic
- or HTTP bearer
- or API key in query parameter token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
field'ip' | 'hostname' | 'geo' | 'geo/city' | 'geo/region' | 'geo/region_code' | 'geo/country' | 'geo/country_code' | 'geo/continent' | 'geo/continent_code' | 'geo/latitude' | 'geo/longitude' | 'geo/timezone' | 'geo/postal_code' | 'geo/dma_code' | 'geo/geoname_id' | 'geo/radius' | 'geo/last_changed' | 'as' | 'as/asn' | 'as/name' | 'as/domain' | 'as/type' | 'as/last_changed' | 'mobile' | 'mobile/name' | 'mobile/mcc' | 'mobile/mnc' | 'anonymous' | 'anonymous/name' | 'anonymous/last_seen' | 'anonymous/percent_days_seen' | 'anonymous/is_proxy' | 'anonymous/is_relay' | 'anonymous/is_tor' | 'anonymous/is_vpn' | 'anonymous/is_res_proxy' | 'is_anonymous' | 'is_anycast' | 'is_hosting' | 'is_mobile' | 'is_satellite' required
A specific field from the /lookup response, or a nested geo/as/mobile/anonymous field. The available fields depend on your token's plan:
- Core: ip, hostname, geo, geo/city, geo/region, geo/region_code, geo/country, geo/country_code, geo/continent, geo/continent_code, geo/latitude, geo/longitude, geo/timezone, geo/postal_code, as, as/asn, as/name, as/domain, as/type, is_anonymous, is_anycast, is_hosting, is_mobile, is_satellite
- Plus/Max additionally: geo/dma_code, geo/geoname_id, geo/radius, geo/last_changed, as/last_changed, mobile, mobile/name, mobile/mcc, mobile/mnc, anonymous, anonymous/name, anonymous/is_proxy, anonymous/is_relay, anonymous/is_tor, anonymous/is_vpn
- Max only: anonymous/last_seen, anonymous/percent_days_seen, anonymous/is_res_proxy
Response
A specific field value from the /lookup response.
object required
Example response
{
"city": "Mountain View",
"region": "California"
}Changes
No recorded changes to this operation across all 1 revision of this API.