home
- userId
-
Charlene Roberts @charlene_roberts
- label
- home
- recipient
- Mr. Herbert Upton Jr.
- street1
- 44246 Howard Dam
- street2
- Apt. 297
- city
- New Estelle
- region
- North Dakota
- postalCode
- 19027
- countryAlpha2
- ES
- isDefault
- false
- createdAt
Overview
addresses / #3
home
#3
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/3" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/3" ); 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/3"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/3"
)
addresse = res.json() Response
{
"id": 3,
"userId": 1,
"label": "home",
"recipient": "Mr. Herbert Upton Jr.",
"street1": "44246 Howard Dam",
"street2": "Apt. 297",
"city": "New Estelle",
"region": "North Dakota",
"postalCode": "19027",
"countryAlpha2": "ES",
"isDefault": false,
"createdAt": "2025-09-19T02:05:30.584Z"
}