other
- userId
-
Nikolas Wolf @nikolas.wolf
- label
- other
- recipient
- Bennie O'Hara
- street1
- 558 Buckingham Road
- street2
- —
- city
- Fort Francisca
- region
- Vermont
- postalCode
- 70182
- countryAlpha2
- ES
- isDefault
- false
- createdAt
Overview
addresses / #217
other
#217
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/217" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/217" ); 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/217"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/217"
)
addresse = res.json() Response
{
"id": 217,
"userId": 158,
"label": "other",
"recipient": "Bennie O'Hara",
"street1": "558 Buckingham Road",
"street2": null,
"city": "Fort Francisca",
"region": "Vermont",
"postalCode": "70182",
"countryAlpha2": "ES",
"isDefault": false,
"createdAt": "2024-10-23T20:35:01.012Z"
}