home
- userId
-
Camron O'Conner @camron.oconner54
- label
- home
- recipient
- Michelle Murray
- street1
- 9218 Elizabeth Streets
- street2
- —
- city
- South Arvilla
- region
- Illinois
- postalCode
- 09730
- countryAlpha2
- CA
- isDefault
- true
- createdAt
Overview
addresses / #123
home
#123
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/123" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/123" ); 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/123"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/123"
)
addresse = res.json() Response
{
"id": 123,
"userId": 94,
"label": "home",
"recipient": "Michelle Murray",
"street1": "9218 Elizabeth Streets",
"street2": null,
"city": "South Arvilla",
"region": "Illinois",
"postalCode": "09730",
"countryAlpha2": "CA",
"isDefault": true,
"createdAt": "2024-10-12T21:38:54.117Z"
}