example-data.com
Menu
Browse docs and collections

Overview

addresses / #180

shipping

userId
Kathleen Lynch @kathleen_lynch1
label
shipping
recipient
Krista Davis
street1
95090 W Broadway Street
street2
city
Gutkowskitown
region
Kentucky
postalCode
72772
countryAlpha2
PH
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 180,
  "userId": 139,
  "label": "shipping",
  "recipient": "Krista Davis",
  "street1": "95090 W Broadway Street",
  "street2": null,
  "city": "Gutkowskitown",
  "region": "Kentucky",
  "postalCode": "72772",
  "countryAlpha2": "PH",
  "isDefault": true,
  "createdAt": "2025-03-09T02:44:22.063Z"
}