example-data.com
Menu
Browse docs and collections

Overview

addresses / #309

other

userId
Loren Schmidt @loren_schmidt
label
other
recipient
Sheri Yundt
street1
680 Quitzon Plaza
street2
city
Richmondstead
region
New Jersey
postalCode
08011
countryAlpha2
DE
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 309,
  "userId": 222,
  "label": "other",
  "recipient": "Sheri Yundt",
  "street1": "680 Quitzon Plaza",
  "street2": null,
  "city": "Richmondstead",
  "region": "New Jersey",
  "postalCode": "08011",
  "countryAlpha2": "DE",
  "isDefault": false,
  "createdAt": "2024-10-22T03:56:24.662Z"
}