About API Response Formatter
Many APIs return JSON on a single line to save bytes, which is hard to read. Enter the address of a public JSON endpoint and this tool fetches it from the NHP Learning server and prints the response body with indentation, so you can see the structure at once.
If the endpoint does not return valid JSON, the tool tells you the status code and suggests the REST API GET Tester to see the raw body. Only GET requests are made, private and local network addresses are blocked, and requests are rate-limited. To format JSON you already have, use the JSON Formatter instead.
How to use API Response Formatter
- Enter the full URL of a public JSON API.
- Click Run Tool. The server fetches the data.
- Read or copy the formatted JSON.
Example
Input
https://jsonplaceholder.typicode.com/todos/1
Common uses
- Exploring a new public API to learn the shape of its data.
- Checking what an endpoint returns before you write code against it.
- Copying a readable sample response into documentation.
Privacy and safety
Only the web address you enter is sent to the NHP Learning server, which fetches it for you. Private and local network addresses are blocked and requests are rate limited.
Frequently asked questions
How is this different from the JSON Formatter?
The JSON Formatter formats text you paste. This tool fetches the data from a URL first, so you do not have to copy the response yourself.
Why do I get a "not valid JSON" message?
The endpoint might return HTML, XML, plain text or an error page. Use the REST API GET Tester to see the status code and the raw body.
Does it support APIs that need a key?
No, requests are anonymous. For protected endpoints, run the request yourself and paste the response into the JSON Formatter.