example-data.com
Menu
Browse docs and collections

Overview

addresses / #18

other

userId
Zachariah Herzog @zachariah_herzog42
label
other
recipient
Jeanne Hilpert
street1
1558 O'Keefe Island
street2
city
Tadton
region
New York
postalCode
94536-4098
countryAlpha2
KE
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 18,
  "userId": 15,
  "label": "other",
  "recipient": "Jeanne Hilpert",
  "street1": "1558 O'Keefe Island",
  "street2": null,
  "city": "Tadton",
  "region": "New York",
  "postalCode": "94536-4098",
  "countryAlpha2": "KE",
  "isDefault": false,
  "createdAt": "2024-12-10T04:37:01.108Z"
}