example-data.com
Menu
Browse docs and collections

messages

messages

Page 28 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": 649,
      "conversationId": 36,
      "userId": 39,
      "body": "Trepide alioqui tabgo certe laudantium vulgo.",
      "isEdited": false,
      "createdAt": "2026-04-28T05:32:01.666Z",
      "updatedAt": "2026-04-28T05:32:01.666Z"
    },
    {
      "id": 650,
      "conversationId": 36,
      "userId": 39,
      "body": "Aspernatur aqua verbum demoror. Cribro incidunt dolore contra cattus adulatio sol apto. Ipsum sol demoror autem tutis deduco vox demens crebro itaque.",
      "isEdited": false,
      "createdAt": "2026-04-28T06:57:54.170Z",
      "updatedAt": "2026-04-28T06:57:54.170Z"
    },
    {
      "id": 651,
      "conversationId": 36,
      "userId": 214,
      "body": "Commemoro sui caelum ago utilis adulescens cuius cupiditas crebro coadunatio. Aiunt arceo vinco tergum repellat arcus alo. Theologus vespillo vomer.",
      "isEdited": false,
      "createdAt": "2026-04-30T21:05:27.819Z",
      "updatedAt": "2026-04-30T21:05:27.819Z"
    }
  ],
  "meta": {
    "page": 28,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=28&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=29&limit=24",
    "prev": "/api/v1/messages?page=27&limit=24"
  }
}