home
- userId
-
Aylin Sanford @aylin.sanford
- label
- home
- recipient
- Troy Hudson PhD
- street1
- 3696 Manor Close
- street2
- —
- city
- Bobbyburgh
- region
- Alaska
- postalCode
- 66576
- countryAlpha2
- ES
- isDefault
- true
- createdAt
Overview
addresses / #235
home
#235
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/235" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/235" ); 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/235"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/235"
)
addresse = res.json() Response
{
"id": 235,
"userId": 173,
"label": "home",
"recipient": "Troy Hudson PhD",
"street1": "3696 Manor Close",
"street2": null,
"city": "Bobbyburgh",
"region": "Alaska",
"postalCode": "66576",
"countryAlpha2": "ES",
"isDefault": true,
"createdAt": "2025-05-04T01:19:03.227Z"
}