example-data.com
Menu
Browse docs and collections

Overview

addresses / #220

work

userId
Brock Hackett @brock.hackett
label
work
recipient
Wilbur Kohler
street1
956 Prospect Street
street2
Apt. 150
city
North Susan
region
Maine
postalCode
82053
countryAlpha2
ZA
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 220,
  "userId": 161,
  "label": "work",
  "recipient": "Wilbur Kohler",
  "street1": "956 Prospect Street",
  "street2": "Apt. 150",
  "city": "North Susan",
  "region": "Maine",
  "postalCode": "82053",
  "countryAlpha2": "ZA",
  "isDefault": true,
  "createdAt": "2025-11-03T00:48:44.768Z"
}