example-data.com
Menu
Browse docs and collections

Overview

addresses / #24

other

userId
Guy Christiansen @guy.christiansen40
label
other
recipient
Pearl Cormier-Bednar DDS
street1
9752 Johnston Extensions
street2
city
West Alycia
region
Arkansas
postalCode
44737-0519
countryAlpha2
MY
isDefault
true
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/addresses/24" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/addresses/24"
);
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/24"
);
const address = (await res.json()) as Address;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/addresses/24"
)
addresse = res.json()

Response

{
  "id": 24,
  "userId": 21,
  "label": "other",
  "recipient": "Pearl Cormier-Bednar DDS",
  "street1": "9752 Johnston Extensions",
  "street2": null,
  "city": "West Alycia",
  "region": "Arkansas",
  "postalCode": "44737-0519",
  "countryAlpha2": "MY",
  "isDefault": true,
  "createdAt": "2025-11-03T15:06:30.455Z"
}