home
- userId
-
Jennifer Stoltenberg @jennifer_stoltenberg
- label
- home
- recipient
- Sophie Roberts
- street1
- 703 Daphney Flats
- street2
- Apt. 952
- city
- West Judge
- region
- California
- postalCode
- 95900-5544
- countryAlpha2
- MA
- isDefault
- false
- createdAt
Overview
addresses / #31
home
#31
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/31" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/31" ); 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/31"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/31"
)
addresse = res.json() Response
{
"id": 31,
"userId": 25,
"label": "home",
"recipient": "Sophie Roberts",
"street1": "703 Daphney Flats",
"street2": "Apt. 952",
"city": "West Judge",
"region": "California",
"postalCode": "95900-5544",
"countryAlpha2": "MA",
"isDefault": false,
"createdAt": "2025-06-25T16:08:06.537Z"
}