example-data.com
Menu
Browse docs and collections

Overview

addresses / #23

other

userId
Melba Collier @melba.collier
label
other
recipient
Ted Hodkiewicz
street1
31254 7th Avenue
street2
city
Fond du Lac
region
Louisiana
postalCode
75683
countryAlpha2
IS
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 23,
  "userId": 19,
  "label": "other",
  "recipient": "Ted Hodkiewicz",
  "street1": "31254 7th Avenue",
  "street2": null,
  "city": "Fond du Lac",
  "region": "Louisiana",
  "postalCode": "75683",
  "countryAlpha2": "IS",
  "isDefault": false,
  "createdAt": "2024-07-25T02:14:12.546Z"
}