example-data.com
Menu
Browse docs and collections

Overview

addresses / #316

other

userId
Wallace Batz @wallace_batz
label
other
recipient
Arthur Ziemann
street1
4878 Ratke Way
street2
city
Bell Gardens
region
Maryland
postalCode
66662-8720
countryAlpha2
PL
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 316,
  "userId": 229,
  "label": "other",
  "recipient": "Arthur Ziemann",
  "street1": "4878 Ratke Way",
  "street2": null,
  "city": "Bell Gardens",
  "region": "Maryland",
  "postalCode": "66662-8720",
  "countryAlpha2": "PL",
  "isDefault": true,
  "createdAt": "2025-05-05T14:22:38.747Z"
}