example-data.com
Menu
Browse docs and collections

Overview

addresses / #129

billing

userId
Tabitha McKenzie @tabitha_mckenzie
label
billing
recipient
Marco Ratke
street1
90932 Avenue Road
street2
city
South San Francisco
region
Wyoming
postalCode
79013-4370
countryAlpha2
NZ
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 129,
  "userId": 98,
  "label": "billing",
  "recipient": "Marco Ratke",
  "street1": "90932 Avenue Road",
  "street2": null,
  "city": "South San Francisco",
  "region": "Wyoming",
  "postalCode": "79013-4370",
  "countryAlpha2": "NZ",
  "isDefault": false,
  "createdAt": "2024-12-03T10:52:28.645Z"
}