example-data.com
Menu
Browse docs and collections

Overview

addresses / #245

work

userId
Cyril Frami @cyril_frami88
label
work
recipient
Antoinette Stark
street1
2172 Hintz Pines
street2
city
East Angel
region
New Mexico
postalCode
75672-1972
countryAlpha2
SE
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 245,
  "userId": 182,
  "label": "work",
  "recipient": "Antoinette Stark",
  "street1": "2172 Hintz Pines",
  "street2": null,
  "city": "East Angel",
  "region": "New Mexico",
  "postalCode": "75672-1972",
  "countryAlpha2": "SE",
  "isDefault": false,
  "createdAt": "2025-10-13T14:25:47.716Z"
}