example-data.com
Menu
Browse docs and collections

Overview

addresses / #265

other

userId
Lavonne Schmidt @lavonne.schmidt95
label
other
recipient
Elmer Bauch
street1
64124 Kameron Forges
street2
city
Victoria
region
Rhode Island
postalCode
66584-1263
countryAlpha2
FI
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 265,
  "userId": 192,
  "label": "other",
  "recipient": "Elmer Bauch",
  "street1": "64124 Kameron Forges",
  "street2": null,
  "city": "Victoria",
  "region": "Rhode Island",
  "postalCode": "66584-1263",
  "countryAlpha2": "FI",
  "isDefault": false,
  "createdAt": "2025-02-11T14:50:26.396Z"
}