example-data.com
Menu
Browse docs and collections

Overview

addresses / #69

home

userId
Niko Wisozk @niko_wisozk
label
home
recipient
Dr. Rolando Torp
street1
9878 Ziemann Landing
street2
city
Fort Seth
region
Virginia
postalCode
83097-5004
countryAlpha2
ID
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 69,
  "userId": 56,
  "label": "home",
  "recipient": "Dr. Rolando Torp",
  "street1": "9878 Ziemann Landing",
  "street2": null,
  "city": "Fort Seth",
  "region": "Virginia",
  "postalCode": "83097-5004",
  "countryAlpha2": "ID",
  "isDefault": false,
  "createdAt": "2024-07-31T23:05:03.420Z"
}