example-data.com
Menu
Browse docs and collections

messages

messages

Page 56 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": 1321,
      "conversationId": 74,
      "userId": 12,
      "body": "Socius dedecor verto undique coepi studio congregatio.",
      "isEdited": false,
      "createdAt": "2026-04-20T22:32:37.225Z",
      "updatedAt": "2026-04-20T22:32:37.225Z"
    },
    {
      "id": 1322,
      "conversationId": 74,
      "userId": 12,
      "body": "Verbum speculum delego assentator centum delectatio.",
      "isEdited": true,
      "createdAt": "2026-04-22T08:43:15.546Z",
      "updatedAt": "2026-05-19T00:37:02.374Z"
    },
    {
      "id": 1323,
      "conversationId": 74,
      "userId": 168,
      "body": "Abduco abduco curia voluptates quidem adversus contego xiphias cuppedia. Venia absque urbs charisma. Thesaurus cimentarius adhaero vomica capto dicta.",
      "isEdited": true,
      "createdAt": "2026-04-25T09:21:55.312Z",
      "updatedAt": "2026-04-30T15:04:14.688Z"
    }
  ],
  "meta": {
    "page": 56,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=56&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=57&limit=24",
    "prev": "/api/v1/messages?page=55&limit=24"
  }
}