example-data.com
Menu
Browse docs and collections

Overview

addresses / #225

other

userId
Cindy Barrows @cindy_barrows20
label
other
recipient
May Johnston
street1
7892 Main Street S
street2
city
Considineboro
region
Wyoming
postalCode
51354-6202
countryAlpha2
FR
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 225,
  "userId": 165,
  "label": "other",
  "recipient": "May Johnston",
  "street1": "7892 Main Street S",
  "street2": null,
  "city": "Considineboro",
  "region": "Wyoming",
  "postalCode": "51354-6202",
  "countryAlpha2": "FR",
  "isDefault": false,
  "createdAt": "2025-04-16T12:23:54.859Z"
}