example-data.com
Menu
Browse docs and collections

messages

messages

Page 41 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": 961,
      "conversationId": 53,
      "userId": 103,
      "body": "Coruscus aspernatur administratio decens aureus contabesco totidem admiratio. Subnecto dolorem ventus aggredior vir. Ipsum comedo abstergo doloribus voluptatem tamisium sortitus adimpleo.",
      "isEdited": false,
      "createdAt": "2026-03-14T12:51:45.821Z",
      "updatedAt": "2026-03-14T12:51:45.821Z"
    },
    {
      "id": 962,
      "conversationId": 53,
      "userId": 137,
      "body": "Territo dedecor minima sollers quisquam iste acerbitas antepono ullus.",
      "isEdited": true,
      "createdAt": "2026-03-26T23:27:07.911Z",
      "updatedAt": "2026-04-11T02:41:08.517Z"
    },
    {
      "id": 963,
      "conversationId": 53,
      "userId": 103,
      "body": "Thorax stips adinventitias capitulus damno caecus. Sonitus calcar recusandae aspicio defungo complectus sponte.",
      "isEdited": false,
      "createdAt": "2026-05-18T16:33:38.247Z",
      "updatedAt": "2026-05-18T16:33:38.247Z"
    }
  ],
  "meta": {
    "page": 41,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=41&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=42&limit=24",
    "prev": "/api/v1/messages?page=40&limit=24"
  }
}