example-data.com
Menu
Browse docs and collections

Overview

addresses / #210

billing

userId
Sheridan Turcotte @sheridan.turcotte
label
billing
recipient
Ms. Sonya Batz
street1
50189 Mount Pleasant
street2
Apt. 482
city
Hansenport
region
North Carolina
postalCode
16706
countryAlpha2
US
isDefault
false
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 210,
  "userId": 153,
  "label": "billing",
  "recipient": "Ms. Sonya Batz",
  "street1": "50189 Mount Pleasant",
  "street2": "Apt. 482",
  "city": "Hansenport",
  "region": "North Carolina",
  "postalCode": "16706",
  "countryAlpha2": "US",
  "isDefault": false,
  "createdAt": "2025-04-13T00:15:02.655Z"
}