home
- userId
-
Velma Jerde @velma.jerde56
- label
- home
- recipient
- Sandy Barrows
- street1
- 6851 Elliott Club
- street2
- Suite 871
- city
- Anastasiachester
- region
- New Mexico
- postalCode
- 50633-3182
- countryAlpha2
- CO
- isDefault
- true
- createdAt
Overview
addresses / #122
home
#122
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/122" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/122" ); 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/122"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/122"
)
addresse = res.json() Response
{
"id": 122,
"userId": 93,
"label": "home",
"recipient": "Sandy Barrows",
"street1": "6851 Elliott Club",
"street2": "Suite 871",
"city": "Anastasiachester",
"region": "New Mexico",
"postalCode": "50633-3182",
"countryAlpha2": "CO",
"isDefault": true,
"createdAt": "2024-10-03T02:33:30.817Z"
}