home
- userId
-
Anne Hamill @anne_hamill75
- label
- home
- recipient
- Grace Renner-Rempel
- street1
- 259 Hope Summit
- street2
- —
- city
- Raymondstad
- region
- Texas
- postalCode
- 70481-6315
- countryAlpha2
- SA
- isDefault
- false
- createdAt
Overview
addresses / #12
home
#12
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/12" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/12" ); 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/12"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/12"
)
addresse = res.json() Response
{
"id": 12,
"userId": 9,
"label": "home",
"recipient": "Grace Renner-Rempel",
"street1": "259 Hope Summit",
"street2": null,
"city": "Raymondstad",
"region": "Texas",
"postalCode": "70481-6315",
"countryAlpha2": "SA",
"isDefault": false,
"createdAt": "2025-03-28T02:09:26.072Z"
}