example-data.com
Menu
Browse docs and collections

messages

messages

Page 95 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": 2257,
      "conversationId": 123,
      "userId": 56,
      "body": "Adipisci victus explicabo dens. Sumo copia conventus. Coma illo utpote valeo.",
      "isEdited": false,
      "createdAt": "2026-02-22T13:07:44.558Z",
      "updatedAt": "2026-02-22T13:07:44.558Z"
    },
    {
      "id": 2258,
      "conversationId": 123,
      "userId": 210,
      "body": "Careo aliquid pectus delicate delectus appono corrupti desidero deduco ager. Ancilla harum defero color autus approbo deorsum curatio.",
      "isEdited": false,
      "createdAt": "2026-02-23T18:54:01.774Z",
      "updatedAt": "2026-02-23T18:54:01.774Z"
    },
    {
      "id": 2259,
      "conversationId": 123,
      "userId": 126,
      "body": "Crudelis cumque teres vehemens clam. Odio campana thorax aeger theca ustulo nesciunt basium.",
      "isEdited": false,
      "createdAt": "2026-03-09T13:17:52.168Z",
      "updatedAt": "2026-03-09T13:17:52.168Z"
    }
  ],
  "meta": {
    "page": 95,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=95&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=96&limit=24",
    "prev": "/api/v1/messages?page=94&limit=24"
  }
}