example-data.com
Menu
Browse docs and collections

Overview

addresses / #237

shipping

userId
Gerald Lind @gerald_lind57
label
shipping
recipient
Andrew Bahringer
street1
58996 Boyle Fields
street2
city
Pasadena
region
Georgia
postalCode
69124-0020
countryAlpha2
KR
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 237,
  "userId": 179,
  "label": "shipping",
  "recipient": "Andrew Bahringer",
  "street1": "58996 Boyle Fields",
  "street2": null,
  "city": "Pasadena",
  "region": "Georgia",
  "postalCode": "69124-0020",
  "countryAlpha2": "KR",
  "isDefault": true,
  "createdAt": "2025-05-23T21:15:19.138Z"
}