example-data.com
Menu
Browse docs and collections

Overview

addresses / #286

shipping

userId
Otho Nikolaus @otho.nikolaus99
label
shipping
recipient
Lee Reichel
street1
465 Gerhard Branch
street2
Apt. 933
city
Orange
region
Texas
postalCode
41504-0143
countryAlpha2
CN
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 286,
  "userId": 209,
  "label": "shipping",
  "recipient": "Lee Reichel",
  "street1": "465 Gerhard Branch",
  "street2": "Apt. 933",
  "city": "Orange",
  "region": "Texas",
  "postalCode": "41504-0143",
  "countryAlpha2": "CN",
  "isDefault": true,
  "createdAt": "2024-11-28T20:44:00.352Z"
}