example-data.com
Menu
Browse docs and collections

Overview

addresses / #144

shipping

userId
Elva Roberts @elva.roberts48
label
shipping
recipient
Jesse Wunsch
street1
454 Hyatt Pike
street2
city
Port Hanktown
region
South Dakota
postalCode
94618
countryAlpha2
EG
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 144,
  "userId": 107,
  "label": "shipping",
  "recipient": "Jesse Wunsch",
  "street1": "454 Hyatt Pike",
  "street2": null,
  "city": "Port Hanktown",
  "region": "South Dakota",
  "postalCode": "94618",
  "countryAlpha2": "EG",
  "isDefault": false,
  "createdAt": "2025-06-25T17:30:41.762Z"
}