← Back to Home

JSON Response

/json
Returns a sample JSON response with application/json content-type. Useful for testing JSON parsing.

Examples

curl
curl https://tcpdata.com/json
JavaScript (fetch)
fetch('https://tcpdata.com/json')
  .then(res => res.json())
  .then(data => console.log(data));
Python (requests)
import requests

response = requests.get('https://tcpdata.com/json')
print(response.json())