work
- userId
-
Monte Botsford @monte_botsford
- label
- work
- recipient
- Darlene Kuphal
- street1
- 269 Riverside Drive
- street2
- —
- city
- South Marquise
- region
- New York
- postalCode
- 85460
- countryAlpha2
- JP
- isDefault
- false
- createdAt
Overview
addresses / #304
work
#304
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/304" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/304" ); 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/304"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/304"
)
addresse = res.json() Response
{
"id": 304,
"userId": 220,
"label": "work",
"recipient": "Darlene Kuphal",
"street1": "269 Riverside Drive",
"street2": null,
"city": "South Marquise",
"region": "New York",
"postalCode": "85460",
"countryAlpha2": "JP",
"isDefault": false,
"createdAt": "2024-10-02T02:28:50.322Z"
}