home
- userId
-
Rubye Emmerich @rubye.emmerich
- label
- home
- recipient
- Mable Schaden
- street1
- 6596 Immanuel Roads
- street2
- —
- city
- Krisstad
- region
- Montana
- postalCode
- 19386
- countryAlpha2
- DK
- isDefault
- true
- createdAt
Overview
addresses / #312
home
#312
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/312" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/312" ); 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/312"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/312"
)
addresse = res.json() Response
{
"id": 312,
"userId": 225,
"label": "home",
"recipient": "Mable Schaden",
"street1": "6596 Immanuel Roads",
"street2": null,
"city": "Krisstad",
"region": "Montana",
"postalCode": "19386",
"countryAlpha2": "DK",
"isDefault": true,
"createdAt": "2024-12-04T02:43:26.958Z"
}