example-data.com
Menu
Browse docs and collections

Overview

addresses / #58

other

userId
Maymie Boehm @maymie.boehm90
label
other
recipient
Dianna Grant
street1
7552 Highfield Close
street2
city
Silver Spring
region
Maryland
postalCode
97541
countryAlpha2
JP
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 58,
  "userId": 48,
  "label": "other",
  "recipient": "Dianna Grant",
  "street1": "7552 Highfield Close",
  "street2": null,
  "city": "Silver Spring",
  "region": "Maryland",
  "postalCode": "97541",
  "countryAlpha2": "JP",
  "isDefault": false,
  "createdAt": "2025-04-29T04:42:16.890Z"
}