example-data.com
Menu
Browse docs and collections

messages

messages

Page 88 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": 2089,
      "conversationId": 116,
      "userId": 219,
      "body": "Comburo amissio votum traho ad aliquid claudeo tendo amet.",
      "isEdited": false,
      "createdAt": "2025-11-15T05:04:08.241Z",
      "updatedAt": "2025-11-15T05:04:08.241Z"
    },
    {
      "id": 2090,
      "conversationId": 116,
      "userId": 219,
      "body": "Arma atque vomica capillus dedecor depraedor. Synagoga sonitus uterque virtus clam advoco cum. Suscipit sulum vitiosus temperantia ipsum spero uxor turba thesaurus crustulum.",
      "isEdited": false,
      "createdAt": "2025-11-16T23:55:55.934Z",
      "updatedAt": "2025-11-16T23:55:55.934Z"
    },
    {
      "id": 2091,
      "conversationId": 116,
      "userId": 219,
      "body": "At vel vigilo aeger bonus volo statua. Assumenda valde absum creator corrigo attollo thesis harum.",
      "isEdited": false,
      "createdAt": "2025-11-19T06:11:29.330Z",
      "updatedAt": "2025-11-19T06:11:29.330Z"
    }
  ],
  "meta": {
    "page": 88,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=88&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=89&limit=24",
    "prev": "/api/v1/messages?page=87&limit=24"
  }
}