IP Location.net API site

API V2

Response Formats

Control output with the optional format query parameter.

Available formats

JSON is the default. Supported optional body format values are json plain xml jsonp php csv serialized.

Default JSON

Requests return application/json unless a different format is requested.

JSONP callback

Use format=jsonp and callback=yourFunction for JSONP responses. Invalid callback names fall back to callback.