example-data.com
Menu
Browse docs and collections

messages

messages

Page 99 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": 2353,
      "conversationId": 128,
      "userId": 214,
      "body": "Tardus sit addo molestiae caveo. Stipes aestas cometes appello blanditiis cultellus aeneus. Tergiversatio cruentus praesentium derideo aptus.",
      "isEdited": false,
      "createdAt": "2026-01-27T13:58:34.143Z",
      "updatedAt": "2026-01-27T13:58:34.143Z"
    },
    {
      "id": 2354,
      "conversationId": 128,
      "userId": 9,
      "body": "Solutio tolero caelum stillicidium maiores vestrum aestas suus victus votum.",
      "isEdited": false,
      "createdAt": "2026-01-27T20:48:42.001Z",
      "updatedAt": "2026-01-27T20:48:42.001Z"
    },
    {
      "id": 2355,
      "conversationId": 128,
      "userId": 240,
      "body": "Aequitas adamo crebro. Tergo tepidus nesciunt vae victoria casus quia abeo.",
      "isEdited": false,
      "createdAt": "2026-01-28T02:25:23.768Z",
      "updatedAt": "2026-01-28T02:25:23.768Z"
    }
  ],
  "meta": {
    "page": 99,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=99&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=100&limit=24",
    "prev": "/api/v1/messages?page=98&limit=24"
  }
}