example-data.com
Menu
Browse docs and collections

messages

messages

Page 146 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": 3481,
      "conversationId": 191,
      "userId": 108,
      "body": "Aptus molestias desidero amita. Tertius conspergo amita territo.",
      "isEdited": false,
      "createdAt": "2026-05-19T08:33:22.640Z",
      "updatedAt": "2026-05-19T08:33:22.640Z"
    },
    {
      "id": 3482,
      "conversationId": 191,
      "userId": 243,
      "body": "Demo constans cura. Tabesco vox claustrum vitae. Adflicto coniuratio ager cito custodia corona sub.",
      "isEdited": false,
      "createdAt": "2026-05-19T12:13:01.228Z",
      "updatedAt": "2026-05-19T12:13:01.228Z"
    },
    {
      "id": 3483,
      "conversationId": 191,
      "userId": 243,
      "body": "Denego caterva bonus sordeo voluptate arcus coruscus. Talio uredo cicuta libero cumque caste. Aperio aliquid cumque vox somniculosus.",
      "isEdited": false,
      "createdAt": "2026-05-19T15:03:14.013Z",
      "updatedAt": "2026-05-19T15:03:14.013Z"
    }
  ],
  "meta": {
    "page": 146,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=146&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=147&limit=24",
    "prev": "/api/v1/messages?page=145&limit=24"
  }
}