example-data.com
Menu
Browse docs and collections

messages

messages

Page 107 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": 2545,
      "conversationId": 138,
      "userId": 86,
      "body": "Eius delego adopto canonicus socius adsuesco deleniti teres subito. Vehemens demitto vivo sum arcus cubitum tamisium censura cattus.",
      "isEdited": false,
      "createdAt": "2026-05-21T17:40:39.459Z",
      "updatedAt": "2026-05-21T17:40:39.459Z"
    },
    {
      "id": 2546,
      "conversationId": 138,
      "userId": 186,
      "body": "At conqueror vel.",
      "isEdited": false,
      "createdAt": "2026-05-21T18:15:03.194Z",
      "updatedAt": "2026-05-21T18:15:03.194Z"
    },
    {
      "id": 2547,
      "conversationId": 138,
      "userId": 86,
      "body": "Speciosus nobis cibo.",
      "isEdited": false,
      "createdAt": "2026-05-21T22:01:23.151Z",
      "updatedAt": "2026-05-21T22:01:23.151Z"
    }
  ],
  "meta": {
    "page": 107,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=107&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=108&limit=24",
    "prev": "/api/v1/messages?page=106&limit=24"
  }
}