example-data.com
Menu
Browse docs and collections

Overview

addresses / #75

other

userId
Autumn Bartell @autumn.bartell95
label
other
recipient
Roderick Ferry
street1
753 Cole Underpass
street2
city
Mayaguez
region
Rhode Island
postalCode
92983-3636
countryAlpha2
SG
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 75,
  "userId": 58,
  "label": "other",
  "recipient": "Roderick Ferry",
  "street1": "753 Cole Underpass",
  "street2": null,
  "city": "Mayaguez",
  "region": "Rhode Island",
  "postalCode": "92983-3636",
  "countryAlpha2": "SG",
  "isDefault": false,
  "createdAt": "2025-03-24T03:06:45.365Z"
}