FREE Public IP Address API
Introduction
The Public IP Address API is a fast and simple way to determine the public IPv4 address of a customer accessing your services. It also offers proxy detection by examining the X-Forwarded-For (XFF) HTTP header field.
Get started
This API is part of the FREE API Package package and is available in free and paid plans. Please visit the FREE API Package package page for limits and pricing information.
Endpoints
IPv4 only API Endpoint
Use this endpoint to force API calls routed over the IPv4 network only
Dual-Stack API Endpoint
This endpoint has native IPv6 support and backs the API calls routed over both IPv4 and IPv6 networks
Request
Responses
Example query
https://api-bdc.net/data/client-ip
Example response
Schema
Returns the client’s IP address in a string format
ipNumeric object
Returns the IP address type. Possible values: "IPv4"
Indicates whether the request was detected as delivered via proxy
Returns the IP address of the proxy server (omitted if no proxy detected)