example-data.com
Menu
Browse docs and collections

messages

messages

Page 120 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": 2857,
      "conversationId": 156,
      "userId": 181,
      "body": "Repellat verecundia alius curso atrocitas damnatio vulariter. Aspernatur adfero spiritus aer.",
      "isEdited": false,
      "createdAt": "2026-05-15T05:41:45.189Z",
      "updatedAt": "2026-05-15T05:41:45.189Z"
    },
    {
      "id": 2858,
      "conversationId": 156,
      "userId": 6,
      "body": "Turpis sint vicissitudo statim.",
      "isEdited": false,
      "createdAt": "2026-05-15T16:35:16.385Z",
      "updatedAt": "2026-05-15T16:35:16.385Z"
    },
    {
      "id": 2859,
      "conversationId": 156,
      "userId": 146,
      "body": "Volubilis vita alii audacia. Degenero omnis sum curtus desidero tenus. Eaque suppellex volutabrum admoveo admiratio deleniti comitatus atrocitas.",
      "isEdited": false,
      "createdAt": "2026-05-15T18:05:17.780Z",
      "updatedAt": "2026-05-15T18:05:17.780Z"
    }
  ],
  "meta": {
    "page": 120,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=120&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=121&limit=24",
    "prev": "/api/v1/messages?page=119&limit=24"
  }
}