example-data.com
Menu
Browse docs and collections

Overview

addresses / #214

home

userId
Sandrine Osinski @sandrine.osinski
label
home
recipient
Harold Bahringer DVM
street1
871 Blair Union
street2
city
Geraldbury
region
Nevada
postalCode
05920
countryAlpha2
CO
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 214,
  "userId": 157,
  "label": "home",
  "recipient": "Harold Bahringer DVM",
  "street1": "871 Blair Union",
  "street2": null,
  "city": "Geraldbury",
  "region": "Nevada",
  "postalCode": "05920",
  "countryAlpha2": "CO",
  "isDefault": false,
  "createdAt": "2025-06-03T01:08:26.011Z"
}