example-data.com
Menu
Browse docs and collections

Overview

addresses / #60

work

userId
Green Kozey @green_kozey22
label
work
recipient
Ismael Watsica
street1
6034 Jacinthe River
street2
Apt. 218
city
Lake Katrina
region
Arizona
postalCode
72600
countryAlpha2
ZA
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 60,
  "userId": 49,
  "label": "work",
  "recipient": "Ismael Watsica",
  "street1": "6034 Jacinthe River",
  "street2": "Apt. 218",
  "city": "Lake Katrina",
  "region": "Arizona",
  "postalCode": "72600",
  "countryAlpha2": "ZA",
  "isDefault": true,
  "createdAt": "2024-05-30T20:31:03.464Z"
}