example-data.com
Menu
Browse docs and collections

messages

messages

Page 70 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": 1657,
      "conversationId": 93,
      "userId": 205,
      "body": "Crebro verumtamen cubo iure uxor considero. Pauper ascit abstergo deprecator urbs. Vos alii alii accendo ex carpo urbanus.",
      "isEdited": false,
      "createdAt": "2025-12-20T19:33:09.680Z",
      "updatedAt": "2025-12-20T19:33:09.680Z"
    },
    {
      "id": 1658,
      "conversationId": 93,
      "userId": 205,
      "body": "Blandior cognatus sponte nulla sed clam iure nesciunt. Terror celebrer odit ater sequi eos atrox facere. Cresco tot arca.",
      "isEdited": false,
      "createdAt": "2026-01-03T02:21:47.026Z",
      "updatedAt": "2026-01-03T02:21:47.026Z"
    },
    {
      "id": 1659,
      "conversationId": 93,
      "userId": 104,
      "body": "Caveo ubi templum tergeo consuasor.",
      "isEdited": false,
      "createdAt": "2026-01-05T20:23:15.843Z",
      "updatedAt": "2026-01-05T20:23:15.843Z"
    }
  ],
  "meta": {
    "page": 70,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=70&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=71&limit=24",
    "prev": "/api/v1/messages?page=69&limit=24"
  }
}