work
- userId
-
Hilda Crooks @hilda_crooks61
- label
- work
- recipient
- Shaun Goyette
- street1
- 40314 Irma Groves
- street2
- —
- city
- Erikatown
- region
- Colorado
- postalCode
- 50417-5783
- countryAlpha2
- NL
- isDefault
- false
- createdAt
Overview
addresses / #255
work
#255
Request
curl example
curl -sS \ "https://example-data.com/api/v1/addresses/255" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/addresses/255" ); 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/255"
);
const address = (await res.json()) as Address; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/addresses/255"
)
addresse = res.json() Response
{
"id": 255,
"userId": 187,
"label": "work",
"recipient": "Shaun Goyette",
"street1": "40314 Irma Groves",
"street2": null,
"city": "Erikatown",
"region": "Colorado",
"postalCode": "50417-5783",
"countryAlpha2": "NL",
"isDefault": false,
"createdAt": "2024-11-07T21:33:03.686Z"
}