example-data.com
Menu
Browse docs and collections

Overview

addresses / #224

billing

userId
Cindy Barrows @cindy_barrows20
label
billing
recipient
Edna Stroman IV
street1
85817 Howell Island
street2
Suite 614
city
Orinfurt
region
Kentucky
postalCode
79232
countryAlpha2
BR
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 224,
  "userId": 165,
  "label": "billing",
  "recipient": "Edna Stroman IV",
  "street1": "85817 Howell Island",
  "street2": "Suite 614",
  "city": "Orinfurt",
  "region": "Kentucky",
  "postalCode": "79232",
  "countryAlpha2": "BR",
  "isDefault": true,
  "createdAt": "2025-05-12T07:43:34.397Z"
}