example-data.com
Menu
Browse docs and collections

messages

messages

Page 24 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": 553,
      "conversationId": 31,
      "userId": 232,
      "body": "Labore velum fuga capto paens taedium.",
      "isEdited": false,
      "createdAt": "2026-05-19T07:54:55.524Z",
      "updatedAt": "2026-05-19T07:54:55.524Z"
    },
    {
      "id": 554,
      "conversationId": 31,
      "userId": 232,
      "body": "Tamdiu vereor velum cribro crux tener textus usus tergiversatio. Desidero curo vobis adhaero tamen timor terror possimus iste demonstro. Mollitia calamitas vilitas.",
      "isEdited": false,
      "createdAt": "2026-05-19T22:56:23.063Z",
      "updatedAt": "2026-05-19T22:56:23.063Z"
    },
    {
      "id": 555,
      "conversationId": 31,
      "userId": 232,
      "body": "Natus tricesimus a tolero confugo spes conturbo carus. Odio cunabula argumentum nihil vestigium ventus magnam cupio. Molestiae stabilis capitulus creo tenax alioqui maxime aeternus.",
      "isEdited": false,
      "createdAt": "2026-05-21T22:54:50.547Z",
      "updatedAt": "2026-05-21T22:54:50.547Z"
    }
  ],
  "meta": {
    "page": 24,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=24&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=25&limit=24",
    "prev": "/api/v1/messages?page=23&limit=24"
  }
}