Plain text is returned by default. Use ?json for compact JSON or ?pretty for formatted JSON. Flags are enabled by their presence, regardless of value. ?pretty takes priority over ?json.
JSON nesting defaults to 64 object or array levels. For deeper local tests, set JSON_MAX_DEPTH between 1 and 512. The 100 KiB body limit still applies.
The client connection address. This example uses a documentation IP. If the address family does not match the endpoint, the response is unknown in text and null in JSON.
Example · text/plain
192.0.2.1
Example · application/json
{"ip":"192.0.2.1"}
Schema · object
Field
Type
Description
iprequired
string | null
IP address; null if the address family does not match.
Example · application/json
{"ip": "192.0.2.1"}
Schema · object
Field
Type
Description
iprequired
string | null
IP address; null if the address family does not match.
The client connection address. This example uses a documentation IP. If the address family does not match the endpoint, the response is unknown in text and null in JSON.
Example · text/plain
2001:db8::1
Example · application/json
{"ip":"2001:db8::1"}
Schema · object
Field
Type
Description
iprequired
string | null
IP address; null if the address family does not match.
Example · application/json
{"ip": "2001:db8::1"}
Schema · object
Field
Type
Description
iprequired
string | null
IP address; null if the address family does not match.