example-data.com
Menu
Browse docs and collections

messages

messages

Page 36 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": 841,
      "conversationId": 46,
      "userId": 105,
      "body": "Cetera tribuo talus. Abscido uredo thymbra admoveo. Odit appono benevolentia reprehenderit.",
      "isEdited": false,
      "createdAt": "2026-04-30T01:17:01.610Z",
      "updatedAt": "2026-04-30T01:17:01.610Z"
    },
    {
      "id": 842,
      "conversationId": 46,
      "userId": 189,
      "body": "Decimus sui at aeternus vero utrum nostrum vado decet tondeo. Abundans desipio cupiditate studio pariatur vestigium accedo tamen suus.",
      "isEdited": false,
      "createdAt": "2026-04-30T14:10:12.201Z",
      "updatedAt": "2026-04-30T14:10:12.201Z"
    },
    {
      "id": 843,
      "conversationId": 46,
      "userId": 181,
      "body": "Curia convoco sponte cubitum claro brevis ocer conforto armarium.",
      "isEdited": false,
      "createdAt": "2026-04-30T23:13:31.900Z",
      "updatedAt": "2026-04-30T23:13:31.900Z"
    }
  ],
  "meta": {
    "page": 36,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=36&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=37&limit=24",
    "prev": "/api/v1/messages?page=35&limit=24"
  }
}