example-data.com
Menu
Browse docs and collections

Overview

addresses / #50

shipping

userId
Gwendolyn Wyman @gwendolyn.wyman87
label
shipping
recipient
Philip Rempel MD
street1
827 8th Street
street2
Suite 945
city
Marquardttown
region
Virginia
postalCode
77724-4127
countryAlpha2
CL
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 50,
  "userId": 40,
  "label": "shipping",
  "recipient": "Philip Rempel MD",
  "street1": "827 8th Street",
  "street2": "Suite 945",
  "city": "Marquardttown",
  "region": "Virginia",
  "postalCode": "77724-4127",
  "countryAlpha2": "CL",
  "isDefault": true,
  "createdAt": "2024-12-26T00:36:33.914Z"
}