screen size not supported

cURL JSON API examples (GET, POST, headers, debugging)

Last updated 2026-05-20

When to use this

Use this when you are exploring an API from the terminal, scripting a smoke test, or pasting commands into a runbook. Every example below works against the live JsonExamples API.

Example JSON

Reference JSON payload returned by /users/1 (used in every snippet below).
{
  "id": 1,
  "firstName": "Emily",
  "lastName": "Johnson",
  "email": "emily.johnson@x.example",
  "username": "emilys",
  "image": "https://jsonexamples.com/image/200?text=User+1",
  "address": {
    "address": "626 Main Street",
    "city": "Phoenix",
    "state": "OK",
    "postalCode": "29920",
    "country": "United States"
  }
}

Request examples

curl -s https://jsonexamples.com/users/1 | jq .

Try the live endpoint

Click below to call /users/1 from your browser.

// click the button to populate this block

Common variations

Following redirects + retry
{
  "snippet": "curl --retry 3 --retry-delay 2 -L https://jsonexamples.com/users/1"
}