example-data.com
Menu
Browse docs and collections

Overview

addresses / #79

work

userId
Theresia Collins @theresia_collins86
label
work
recipient
Emilio Ziemann
street1
7241 Douglas Road
street2
city
East Abigayle
region
Iowa
postalCode
90532-2940
countryAlpha2
IE
isDefault
true
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 79,
  "userId": 63,
  "label": "work",
  "recipient": "Emilio Ziemann",
  "street1": "7241 Douglas Road",
  "street2": null,
  "city": "East Abigayle",
  "region": "Iowa",
  "postalCode": "90532-2940",
  "countryAlpha2": "IE",
  "isDefault": true,
  "createdAt": "2025-01-23T18:09:51.698Z"
}