example-data.com
Menu
Browse docs and collections

messages

messages

Page 79 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": 1873,
      "conversationId": 104,
      "userId": 27,
      "body": "Peccatus absorbeo temptatio via tego temeritas avaritia avaritia. Dapifer curtus summa accusator.",
      "isEdited": false,
      "createdAt": "2026-04-05T15:34:42.962Z",
      "updatedAt": "2026-04-05T15:34:42.962Z"
    },
    {
      "id": 1874,
      "conversationId": 104,
      "userId": 189,
      "body": "Adfectus ars dolorum defero vox clarus. Claudeo carbo amiculum volutabrum reprehenderit caute cohors vaco vesper. Sonitus aveho barba bardus asper magnam debilito.",
      "isEdited": false,
      "createdAt": "2026-04-15T08:21:36.386Z",
      "updatedAt": "2026-04-15T08:21:36.386Z"
    },
    {
      "id": 1875,
      "conversationId": 104,
      "userId": 189,
      "body": "Vorago praesentium aptus pel cito pariatur annus constans aequitas accusator.",
      "isEdited": false,
      "createdAt": "2026-04-20T04:20:13.364Z",
      "updatedAt": "2026-04-20T04:20:13.364Z"
    }
  ],
  "meta": {
    "page": 79,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=79&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=80&limit=24",
    "prev": "/api/v1/messages?page=78&limit=24"
  }
}