Get your public IP address in JSON, XML, YAML, or plain text — ready for scripts and API integration.
Selected: JSON
Different applications and workflows require IP address data in different formats. Our IP Formatter tool lets you retrieve your public IP address in the format that best fits your use case — whether you are building a monitoring dashboard, writing a deployment script, or integrating IP detection into a web application.
The most widely used format for web APIs and JavaScript applications. JSON is lightweight, human-readable, and natively supported by every modern programming language. Ideal for REST API integrations, frontend applications, and data pipelines.
A structured markup format widely used in enterprise environments, SOAP web services, and legacy system integrations. XML provides strict schema validation and is supported by tools like XSLT for data transformation.
A human-friendly data serialisation format popular in DevOps tooling, Kubernetes configurations, Ansible playbooks, and CI/CD pipelines. YAML's clean syntax makes it easy to embed IP data into configuration files.
The simplest format — just the raw IP string with no wrapper. Perfect for shell scripts, command-line tools, and automation workflows where you need to pipe the result directly into another command.
Our raw endpoint returns your IP as plain text, making it incredibly easy to integrate into scripts and applications. Here are some common examples used by developers and system administrators:
curl -s https://tracethatip.com/rawReturns your public IP as plain text — perfect for piping into other commands.
MY_IP=$(curl -s https://tracethatip.com/raw) && echo "My IP: $MY_IP"Store your IP in a variable for use in firewall rules, DNS updates, or deployment scripts.
TraceThatIP is built with developers in mind. Our tools are designed to integrate seamlessly into your existing workflow, whether you are building a SaaS application, managing infrastructure, or conducting security research.