IP

Returns the requesting IP in multiple formats

This endpoint returns the requesters IP. You can specify a custom callback for the JSONP endpoint. You cannot lookup multiple IPs on this endpoint.

URIs

Type URI
Plain text https://get.geojs.io/v1/ip
JSON https://get.geojs.io/v1/ip.json
JSONP https://get.geojs.io/v1/ip.js

Query Parameters

Paramater Default Description Endpoint
callback geoip JSONP callback /v1/ip.js

Properties

Property Type Description Example
ip String Requested IP 8.8.8.8

Examples

Plain text

8.8.8.8

JSON

{
  "ip": "8.8.8.8"
}

JSONP

geoip({
  "ip": "202.168.51.151"
})