example-data.com
Menu
Browse docs and collections

Overview

addresses / #182

other

userId
Chyna Kozey @chyna_kozey80
label
other
recipient
Delores Thompson
street1
366 Amparo Forges
street2
Suite 254
city
Sunrise
region
New Jersey
postalCode
36945
countryAlpha2
MY
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 182,
  "userId": 140,
  "label": "other",
  "recipient": "Delores Thompson",
  "street1": "366 Amparo Forges",
  "street2": "Suite 254",
  "city": "Sunrise",
  "region": "New Jersey",
  "postalCode": "36945",
  "countryAlpha2": "MY",
  "isDefault": true,
  "createdAt": "2025-04-19T02:19:05.139Z"
}