home
- userId
-
Conrad Connelly @conrad.connelly22
- label
- home
- recipient
- Jimmy Larkin
- street1
- 48095 Buckingham Road
- street2
- Apt. 685
- city
- New Amiehaven
- region
- Indiana
- postalCode
- 55487-6982
- countryAlpha2
- CA
- isDefault
- true
- createdAt
Overview
addresses / #36
home
#36
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/36" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/36" ); 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/36"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/36"
)
addresse = res.json() Response
{
"id": 36,
"userId": 30,
"label": "home",
"recipient": "Jimmy Larkin",
"street1": "48095 Buckingham Road",
"street2": "Apt. 685",
"city": "New Amiehaven",
"region": "Indiana",
"postalCode": "55487-6982",
"countryAlpha2": "CA",
"isDefault": true,
"createdAt": "2024-07-21T23:16:39.564Z"
}