work
- userId
-
Claudie Hagenes @claudie_hagenes
- label
- work
- recipient
- Silvia Hills
- street1
- 58516 Willms Mews
- street2
- —
- city
- South Scotty
- region
- New Mexico
- postalCode
- 63750
- countryAlpha2
- ET
- isDefault
- false
- createdAt
Overview
addresses / #319
work
#319
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/319" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/319" ); 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/319"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/319"
)
addresse = res.json() Response
{
"id": 319,
"userId": 232,
"label": "work",
"recipient": "Silvia Hills",
"street1": "58516 Willms Mews",
"street2": null,
"city": "South Scotty",
"region": "New Mexico",
"postalCode": "63750",
"countryAlpha2": "ET",
"isDefault": false,
"createdAt": "2024-08-25T23:13:54.897Z"
}