example-data.com
Menu
Browse docs and collections

messages

messages

Page 43 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": 1009,
      "conversationId": 56,
      "userId": 21,
      "body": "Centum asporto delectus.",
      "isEdited": false,
      "createdAt": "2026-05-16T13:54:51.346Z",
      "updatedAt": "2026-05-16T13:54:51.346Z"
    },
    {
      "id": 1010,
      "conversationId": 56,
      "userId": 107,
      "body": "Beatae adfero repellendus. Aeternus acies accommodo copia cultellus aequitas perspiciatis doloremque quos.",
      "isEdited": false,
      "createdAt": "2026-05-16T16:44:47.418Z",
      "updatedAt": "2026-05-16T16:44:47.418Z"
    },
    {
      "id": 1011,
      "conversationId": 56,
      "userId": 242,
      "body": "Tamen congregatio dedecor calamitas comprehendo. Solitudo temeritas taceo creo. Adiuvo terebro bellicus creber centum teneo argentum.",
      "isEdited": false,
      "createdAt": "2026-05-18T11:53:01.027Z",
      "updatedAt": "2026-05-18T11:53:01.027Z"
    }
  ],
  "meta": {
    "page": 43,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=43&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=44&limit=24",
    "prev": "/api/v1/messages?page=42&limit=24"
  }
}