home
- userId
-
Joseph Steuber @joseph_steuber
- label
- home
- recipient
- Robin Predovic MD
- street1
- 509 Rebeka Plaza
- street2
- —
- city
- Naderstad
- region
- South Dakota
- postalCode
- 77787-1878
- countryAlpha2
- SG
- isDefault
- true
- createdAt
Overview
addresses / #305
home
#305
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/305" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/305" ); 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/305"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/305"
)
addresse = res.json() Response
{
"id": 305,
"userId": 221,
"label": "home",
"recipient": "Robin Predovic MD",
"street1": "509 Rebeka Plaza",
"street2": null,
"city": "Naderstad",
"region": "South Dakota",
"postalCode": "77787-1878",
"countryAlpha2": "SG",
"isDefault": true,
"createdAt": "2024-10-17T06:20:24.037Z"
}