example-data.com
Menu
Browse docs and collections

addresses

addresses

Page 4 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": 73,
      "userId": 58,
      "label": "work",
      "recipient": "Dr. Olga Fay",
      "street1": "706 Spruce Street",
      "street2": null,
      "city": "Kendallton",
      "region": "Pennsylvania",
      "postalCode": "47326",
      "countryAlpha2": "BE",
      "isDefault": true,
      "createdAt": "2025-01-08T19:35:14.146Z"
    },
    {
      "id": 74,
      "userId": 58,
      "label": "shipping",
      "recipient": "Yvonne Leuschke-Fahey",
      "street1": "1194 Old State Road",
      "street2": "Suite 622",
      "city": "Fort Trisha",
      "region": "Arkansas",
      "postalCode": "46679",
      "countryAlpha2": "FJ",
      "isDefault": false,
      "createdAt": "2025-12-02T03:01:29.232Z"
    },
    {
      "id": 75,
      "userId": 58,
      "label": "other",
      "recipient": "Roderick Ferry",
      "street1": "753 Cole Underpass",
      "street2": null,
      "city": "Mayaguez",
      "region": "Rhode Island",
      "postalCode": "92983-3636",
      "countryAlpha2": "SG",
      "isDefault": false,
      "createdAt": "2025-03-24T03:06:45.365Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 345,
    "totalPages": 15
  },
  "links": {
    "self": "/api/v1/addresses?page=4&limit=24",
    "first": "/api/v1/addresses?page=1&limit=24",
    "last": "/api/v1/addresses?page=15&limit=24",
    "next": "/api/v1/addresses?page=5&limit=24",
    "prev": "/api/v1/addresses?page=3&limit=24"
  }
}