example-data.com
Menu
Browse docs and collections

Overview

addresses / #109

billing

userId
Stephan Heller @stephan.heller
label
billing
recipient
Ray Johns
street1
4065 Finn Centers
street2
city
East Octaviaview
region
Louisiana
postalCode
83531-0018
countryAlpha2
NZ
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 109,
  "userId": 82,
  "label": "billing",
  "recipient": "Ray Johns",
  "street1": "4065 Finn Centers",
  "street2": null,
  "city": "East Octaviaview",
  "region": "Louisiana",
  "postalCode": "83531-0018",
  "countryAlpha2": "NZ",
  "isDefault": true,
  "createdAt": "2026-02-16T04:22:28.972Z"
}