work
- userId
-
Raheem Kovacek @raheem_kovacek3
- label
- work
- recipient
- Ernesto Hirthe
- street1
- 81741 Jackson Street
- street2
- Suite 272
- city
- East Gerda
- region
- Arizona
- postalCode
- 69222-6916
- countryAlpha2
- IT
- isDefault
- true
- createdAt
Overview
addresses / #71
work
#71
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/71" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/71" ); 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/71"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/71"
)
addresse = res.json() Response
{
"id": 71,
"userId": 57,
"label": "work",
"recipient": "Ernesto Hirthe",
"street1": "81741 Jackson Street",
"street2": "Suite 272",
"city": "East Gerda",
"region": "Arizona",
"postalCode": "69222-6916",
"countryAlpha2": "IT",
"isDefault": true,
"createdAt": "2024-11-05T05:59:03.698Z"
}