example-data.com
Menu
Browse docs and collections

messages

messages

Page 34 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": 793,
      "conversationId": 43,
      "userId": 224,
      "body": "Vae crur spero ratione. Dapifer vigilo textilis sit vaco adiuvo. Contabesco animadverto congregatio brevis.",
      "isEdited": false,
      "createdAt": "2026-03-31T14:51:20.792Z",
      "updatedAt": "2026-03-31T14:51:20.792Z"
    },
    {
      "id": 794,
      "conversationId": 43,
      "userId": 224,
      "body": "Compono veritas tabernus usus tego. Substantia auxilium statua celer canis atrocitas cubicularis.",
      "isEdited": false,
      "createdAt": "2026-04-27T16:00:19.301Z",
      "updatedAt": "2026-04-27T16:00:19.301Z"
    },
    {
      "id": 795,
      "conversationId": 44,
      "userId": 132,
      "body": "Demoror tamquam asporto comis utilis subiungo deputo auditor aufero. Ullam tactus deficio doloremque aliquam esse deporto.",
      "isEdited": false,
      "createdAt": "2025-06-22T13:43:59.217Z",
      "updatedAt": "2025-06-22T13:43:59.217Z"
    }
  ],
  "meta": {
    "page": 34,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=34&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=35&limit=24",
    "prev": "/api/v1/messages?page=33&limit=24"
  }
}