example-data.com
Menu
Browse docs and collections

Overview

addresses / #218

work

userId
Amparo Dietrich @amparo.dietrich
label
work
recipient
Miss Meredith Will
street1
6435 Evie Fall
street2
Apt. 992
city
New Keely
region
Maryland
postalCode
96253
countryAlpha2
CA
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 218,
  "userId": 159,
  "label": "work",
  "recipient": "Miss Meredith Will",
  "street1": "6435 Evie Fall",
  "street2": "Apt. 992",
  "city": "New Keely",
  "region": "Maryland",
  "postalCode": "96253",
  "countryAlpha2": "CA",
  "isDefault": true,
  "createdAt": "2025-04-10T22:32:23.210Z"
}