example-data.com
Menu
Browse docs and collections

addresses

addresses

Page 15 of 15.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/addresses?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/addresses?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/addresses";

const res = await fetch(
  "https://example-data.com/api/v1/addresses?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Address>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/addresses",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 337,
      "userId": 243,
      "label": "shipping",
      "recipient": "Kelly Grady-Wisozk",
      "street1": "967 Ortiz Spring",
      "street2": null,
      "city": "Bellevue",
      "region": "Hawaii",
      "postalCode": "53039",
      "countryAlpha2": "IL",
      "isDefault": false,
      "createdAt": "2024-10-17T20:01:04.513Z"
    },
    {
      "id": 338,
      "userId": 244,
      "label": "shipping",
      "recipient": "Boyd Nader",
      "street1": "89151 Wiza Garden",
      "street2": "Apt. 924",
      "city": "Oranfort",
      "region": "Idaho",
      "postalCode": "47731",
      "countryAlpha2": "TH",
      "isDefault": true,
      "createdAt": "2024-10-30T06:41:59.908Z"
    },
    {
      "id": 339,
      "userId": 245,
      "label": "shipping",
      "recipient": "Toni Christiansen",
      "street1": "371 Somerset Road",
      "street2": null,
      "city": "Citrus Heights",
      "region": "Washington",
      "postalCode": "32733-7002",
      "countryAlpha2": "NO",
      "isDefault": true,
      "createdAt": "2026-04-27T03:21:18.049Z"
    }
  ],
  "meta": {
    "page": 15,
    "limit": 24,
    "total": 345,
    "totalPages": 15
  },
  "links": {
    "self": "/api/v1/addresses?page=15&limit=24",
    "first": "/api/v1/addresses?page=1&limit=24",
    "last": "/api/v1/addresses?page=15&limit=24",
    "next": null,
    "prev": "/api/v1/addresses?page=14&limit=24"
  }
}