home
- userId
-
Charlene Roberts @charlene_roberts
- label
- home
- recipient
- Craig Sauer
- street1
- 8897 Smith Estate
- street2
- —
- city
- Elisabethberg
- region
- California
- postalCode
- 07860-1214
- countryAlpha2
- NL
- isDefault
- true
- createdAt
Overview
addresses / #1
home
#1
Request
curl example
curl -sS \
"https://example-data.com/api/v1/addresses/1" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/addresses/1"
);
const address = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/addresses.d.ts https://example-data.com/types/addresses.d.ts
import type { Address } from "./types/addresses";
const res = await fetch(
"https://example-data.com/api/v1/addresses/1"
);
const address = (await res.json()) as Address;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/1"
)
addresse = res.json()
Response
{
"id": 1,
"userId": 1,
"label": "home",
"recipient": "Craig Sauer",
"street1": "8897 Smith Estate",
"street2": null,
"city": "Elisabethberg",
"region": "California",
"postalCode": "07860-1214",
"countryAlpha2": "NL",
"isDefault": true,
"createdAt": "2026-03-01T07:54:12.590Z"
}