home
- userId
-
Fritz Skiles @fritz_skiles
- label
- home
- recipient
- Renee Satterfield
- street1
- 305 Stamm Unions
- street2
- —
- city
- Lake Merlefield
- region
- Michigan
- postalCode
- 32788-1772
- countryAlpha2
- AT
- isDefault
- true
- createdAt
Overview
addresses / #192
home
#192
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/192" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/192" ); 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/192"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/192"
)
addresse = res.json() Response
{
"id": 192,
"userId": 144,
"label": "home",
"recipient": "Renee Satterfield",
"street1": "305 Stamm Unions",
"street2": null,
"city": "Lake Merlefield",
"region": "Michigan",
"postalCode": "32788-1772",
"countryAlpha2": "AT",
"isDefault": true,
"createdAt": "2024-09-15T10:44:49.577Z"
}