example-data.com
Menu
Browse docs and collections

messages

messages

Page 50 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": 1177,
      "conversationId": 66,
      "userId": 96,
      "body": "Convoco tollo tamisium admoveo. Officiis sulum exercitationem.",
      "isEdited": false,
      "createdAt": "2025-12-13T15:30:37.733Z",
      "updatedAt": "2025-12-13T15:30:37.733Z"
    },
    {
      "id": 1178,
      "conversationId": 66,
      "userId": 44,
      "body": "Abutor vox deserunt itaque dapifer vinculum concedo defetiscor curriculum. Vesper tabella tredecim sunt amo urbs trado. Odit tyrannus alo clarus uter excepturi cuppedia.",
      "isEdited": false,
      "createdAt": "2026-01-02T23:02:22.034Z",
      "updatedAt": "2026-01-02T23:02:22.034Z"
    },
    {
      "id": 1179,
      "conversationId": 66,
      "userId": 135,
      "body": "Damnatio umbra optio amor. Reprehenderit expedita compono deleniti temperantia surgo casso. Vox tondeo tersus arbitro sui tantum patria adversus comparo.",
      "isEdited": false,
      "createdAt": "2026-01-12T17:01:17.894Z",
      "updatedAt": "2026-01-12T17:01:17.894Z"
    }
  ],
  "meta": {
    "page": 50,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=50&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=51&limit=24",
    "prev": "/api/v1/messages?page=49&limit=24"
  }
}