example-data.com
Menu
Browse docs and collections

messages

messages

Page 65 of 151.

Overview

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/messages?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/messages.d.ts https://example-data.com/types/messages.d.ts
import type { Message, ListEnvelope } from "./types/messages";

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 1537,
      "conversationId": 85,
      "userId": 177,
      "body": "Corporis verumtamen vilis. Adhaero aliquam spoliatio bellicus quia talio callide tibi deputo. Tui tumultus veritatis decet conqueror solio antea arma cunae.",
      "isEdited": false,
      "createdAt": "2026-05-01T04:30:24.601Z",
      "updatedAt": "2026-05-01T04:30:24.601Z"
    },
    {
      "id": 1538,
      "conversationId": 85,
      "userId": 220,
      "body": "Nisi impedit chirographum utrum. Accusantium validus tergiversatio casso delibero videlicet.",
      "isEdited": false,
      "createdAt": "2026-05-17T22:33:07.856Z",
      "updatedAt": "2026-05-17T22:33:07.856Z"
    },
    {
      "id": 1539,
      "conversationId": 85,
      "userId": 27,
      "body": "Vomer ab cohaero cumque venio somniculosus explicabo.",
      "isEdited": false,
      "createdAt": "2026-05-18T20:01:44.204Z",
      "updatedAt": "2026-05-18T20:01:44.204Z"
    }
  ],
  "meta": {
    "page": 65,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=65&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=66&limit=24",
    "prev": "/api/v1/messages?page=64&limit=24"
  }
}