example-data.com
Menu
Browse docs and collections

Overview

addresses / #239

home

userId
Gerald Lind @gerald_lind57
label
home
recipient
Sylvia Hartmann Sr.
street1
3859 Emilie Mills
street2
city
Meredithworth
region
Vermont
postalCode
09354-9907
countryAlpha2
IE
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 239,
  "userId": 179,
  "label": "home",
  "recipient": "Sylvia Hartmann Sr.",
  "street1": "3859 Emilie Mills",
  "street2": null,
  "city": "Meredithworth",
  "region": "Vermont",
  "postalCode": "09354-9907",
  "countryAlpha2": "IE",
  "isDefault": false,
  "createdAt": "2026-02-26T04:22:35.557Z"
}