home
- userId
-
Tiara Wilderman @tiara_wilderman
- label
- home
- recipient
- Herman Quigley
- street1
- 870 Johnston Plains
- street2
- Apt. 388
- city
- Fort Quentin
- region
- Wyoming
- postalCode
- 83314-2189
- countryAlpha2
- CO
- isDefault
- true
- createdAt
Overview
addresses / #82
home
#82
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/82" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/82" ); 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/82"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/82"
)
addresse = res.json() Response
{
"id": 82,
"userId": 66,
"label": "home",
"recipient": "Herman Quigley",
"street1": "870 Johnston Plains",
"street2": "Apt. 388",
"city": "Fort Quentin",
"region": "Wyoming",
"postalCode": "83314-2189",
"countryAlpha2": "CO",
"isDefault": true,
"createdAt": "2024-09-26T23:47:51.843Z"
}