home
- userId
-
Sammy Schmidt @sammy.schmidt
- label
- home
- recipient
- Marcella Graham
- street1
- 719 Golden Lakes
- street2
- —
- city
- South Bend
- region
- Ohio
- postalCode
- 36780-0872
- countryAlpha2
- AE
- isDefault
- false
- createdAt
Overview
addresses / #252
home
#252
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/252" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/252" ); 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/252"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/252"
)
addresse = res.json() Response
{
"id": 252,
"userId": 186,
"label": "home",
"recipient": "Marcella Graham",
"street1": "719 Golden Lakes",
"street2": null,
"city": "South Bend",
"region": "Ohio",
"postalCode": "36780-0872",
"countryAlpha2": "AE",
"isDefault": false,
"createdAt": "2024-08-02T09:03:08.355Z"
}