example-data.com
Menu
Browse docs and collections

Overview

addresses / #274

shipping

userId
Kennith Hahn @kennith.hahn
label
shipping
recipient
Kathleen Muller
street1
8817 Amely Inlet
street2
city
North Roslynside
region
North Dakota
postalCode
66556
countryAlpha2
AR
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 274,
  "userId": 201,
  "label": "shipping",
  "recipient": "Kathleen Muller",
  "street1": "8817 Amely Inlet",
  "street2": null,
  "city": "North Roslynside",
  "region": "North Dakota",
  "postalCode": "66556",
  "countryAlpha2": "AR",
  "isDefault": false,
  "createdAt": "2024-09-20T07:20:08.517Z"
}