example-data.com
Menu
Browse docs and collections

addresses

addresses

Page 7 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": 145,
      "userId": 107,
      "label": "work",
      "recipient": "Erika Fadel",
      "street1": "46648 Demond Underpass",
      "street2": null,
      "city": "Scranton",
      "region": "Colorado",
      "postalCode": "49165",
      "countryAlpha2": "SA",
      "isDefault": false,
      "createdAt": "2025-02-15T20:20:44.345Z"
    },
    {
      "id": 146,
      "userId": 109,
      "label": "work",
      "recipient": "Henry Pollich",
      "street1": "672 Abdiel Shoals",
      "street2": null,
      "city": "West New York",
      "region": "California",
      "postalCode": "57402",
      "countryAlpha2": "IL",
      "isDefault": true,
      "createdAt": "2025-07-09T13:02:19.865Z"
    },
    {
      "id": 147,
      "userId": 110,
      "label": "work",
      "recipient": "Michael Bahringer",
      "street1": "908 O'Conner Place",
      "street2": "Apt. 173",
      "city": "South Julio",
      "region": "Florida",
      "postalCode": "86888-9765",
      "countryAlpha2": "KE",
      "isDefault": true,
      "createdAt": "2025-07-08T04:50:28.802Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 345,
    "totalPages": 15
  },
  "links": {
    "self": "/api/v1/addresses?page=7&limit=24",
    "first": "/api/v1/addresses?page=1&limit=24",
    "last": "/api/v1/addresses?page=15&limit=24",
    "next": "/api/v1/addresses?page=8&limit=24",
    "prev": "/api/v1/addresses?page=6&limit=24"
  }
}