work
- userId
-
Lawrence Rogahn @lawrence_rogahn33
- label
- work
- recipient
- Hubert Balistreri
- street1
- 725 King Parks
- street2
- —
- city
- Goodwinfield
- region
- Washington
- postalCode
- 00874-8194
- countryAlpha2
- MY
- isDefault
- false
- createdAt
Overview
addresses / #340
work
#340
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/340" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/340" ); 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/340"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/340"
)
addresse = res.json() Response
{
"id": 340,
"userId": 245,
"label": "work",
"recipient": "Hubert Balistreri",
"street1": "725 King Parks",
"street2": null,
"city": "Goodwinfield",
"region": "Washington",
"postalCode": "00874-8194",
"countryAlpha2": "MY",
"isDefault": false,
"createdAt": "2024-12-19T00:45:33.016Z"
}