example-data.com
Menu
Browse docs and collections

messages

messages

Page 129 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": 3073,
      "conversationId": 168,
      "userId": 147,
      "body": "Stipes cumque delicate inventore temptatio adflicto apud creator.",
      "isEdited": true,
      "createdAt": "2026-03-26T10:03:42.345Z",
      "updatedAt": "2026-03-30T22:30:18.431Z"
    },
    {
      "id": 3074,
      "conversationId": 168,
      "userId": 96,
      "body": "Antiquus allatus cenaculum crustulum desino. Explicabo explicabo ullus.",
      "isEdited": false,
      "createdAt": "2026-03-30T16:23:30.006Z",
      "updatedAt": "2026-03-30T16:23:30.006Z"
    },
    {
      "id": 3075,
      "conversationId": 168,
      "userId": 96,
      "body": "Toties animus contra cura calamitas deripio. Tredecim charisma amitto rem defessus. Voveo patrocinor solitudo.",
      "isEdited": false,
      "createdAt": "2026-04-06T00:53:09.834Z",
      "updatedAt": "2026-04-06T00:53:09.834Z"
    }
  ],
  "meta": {
    "page": 129,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=129&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=130&limit=24",
    "prev": "/api/v1/messages?page=128&limit=24"
  }
}