example-data.com
Menu
Browse docs and collections

Overview

addresses / #335

other

userId
Marcelina Grady @marcelina_grady19
label
other
recipient
Edna O'Kon
street1
613 W 2nd Street
street2
city
Zboncakbury
region
Mississippi
postalCode
08668-2916
countryAlpha2
IE
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 335,
  "userId": 241,
  "label": "other",
  "recipient": "Edna O'Kon",
  "street1": "613 W 2nd Street",
  "street2": null,
  "city": "Zboncakbury",
  "region": "Mississippi",
  "postalCode": "08668-2916",
  "countryAlpha2": "IE",
  "isDefault": false,
  "createdAt": "2025-03-16T14:31:49.852Z"
}