home
- userId
-
Tabitha McKenzie @tabitha_mckenzie
- label
- home
- recipient
- Russell Dare
- street1
- 8430 Albion Street
- street2
- —
- city
- Salem
- region
- Alabama
- postalCode
- 62501-1812
- countryAlpha2
- VN
- isDefault
- false
- createdAt
Overview
addresses / #130
home
#130
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/130" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/130" ); 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/130"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/130"
)
addresse = res.json() Response
{
"id": 130,
"userId": 98,
"label": "home",
"recipient": "Russell Dare",
"street1": "8430 Albion Street",
"street2": null,
"city": "Salem",
"region": "Alabama",
"postalCode": "62501-1812",
"countryAlpha2": "VN",
"isDefault": false,
"createdAt": "2024-09-19T20:36:59.863Z"
}