example-data.com
Menu
Browse docs and collections

Overview

addresses / #17

shipping

userId
Zachariah Herzog @zachariah_herzog42
label
shipping
recipient
Bryant Upton
street1
4556 Everett Springs
street2
city
Lake Zoe
region
Pennsylvania
postalCode
87033
countryAlpha2
PK
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 17,
  "userId": 15,
  "label": "shipping",
  "recipient": "Bryant Upton",
  "street1": "4556 Everett Springs",
  "street2": null,
  "city": "Lake Zoe",
  "region": "Pennsylvania",
  "postalCode": "87033",
  "countryAlpha2": "PK",
  "isDefault": true,
  "createdAt": "2025-01-08T15:03:40.338Z"
}