home
- userId
-
Lenny Howe @lenny.howe
- label
- home
- recipient
- Don Beier
- street1
- 7051 Yost Green
- street2
- Suite 389
- city
- Wisozkport
- region
- Michigan
- postalCode
- 83758-8548
- countryAlpha2
- IT
- isDefault
- true
- createdAt
Overview
addresses / #46
home
#46
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/46" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/46" ); 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/46"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/46"
)
addresse = res.json() Response
{
"id": 46,
"userId": 37,
"label": "home",
"recipient": "Don Beier",
"street1": "7051 Yost Green",
"street2": "Suite 389",
"city": "Wisozkport",
"region": "Michigan",
"postalCode": "83758-8548",
"countryAlpha2": "IT",
"isDefault": true,
"createdAt": "2024-10-23T23:33:17.239Z"
}