example-data.com
Menu
Browse docs and collections

messages

messages

Page 10 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": 217,
      "conversationId": 13,
      "userId": 161,
      "body": "Earum voveo celebrer similique cimentarius consectetur currus stabilis vallum cohaero. Cupiditate omnis creo eos. Consuasor ut ad auditor volutabrum error.",
      "isEdited": false,
      "createdAt": "2026-02-06T09:59:15.853Z",
      "updatedAt": "2026-02-06T09:59:15.853Z"
    },
    {
      "id": 218,
      "conversationId": 13,
      "userId": 193,
      "body": "Summa turba adamo congregatio.",
      "isEdited": false,
      "createdAt": "2026-02-08T07:35:23.623Z",
      "updatedAt": "2026-02-08T07:35:23.623Z"
    },
    {
      "id": 219,
      "conversationId": 13,
      "userId": 161,
      "body": "Distinctio cenaculum ullus celer trans stultus carmen abundans.",
      "isEdited": false,
      "createdAt": "2026-03-24T14:07:50.135Z",
      "updatedAt": "2026-03-24T14:07:50.135Z"
    }
  ],
  "meta": {
    "page": 10,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=10&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=11&limit=24",
    "prev": "/api/v1/messages?page=9&limit=24"
  }
}