example-data.com
Menu
Browse docs and collections

Overview

addresses / #84

work

userId
Tiara Wilderman @tiara_wilderman
label
work
recipient
Josh Durgan
street1
96608 Kian Hill
street2
city
Lake Mike
region
Montana
postalCode
88814-2226
countryAlpha2
KE
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 84,
  "userId": 66,
  "label": "work",
  "recipient": "Josh Durgan",
  "street1": "96608 Kian Hill",
  "street2": null,
  "city": "Lake Mike",
  "region": "Montana",
  "postalCode": "88814-2226",
  "countryAlpha2": "KE",
  "isDefault": false,
  "createdAt": "2025-04-24T20:29:35.210Z"
}