example-data.com
Menu
Browse docs and collections

messages

messages

Page 121 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": 2881,
      "conversationId": 157,
      "userId": 12,
      "body": "Aequitas tribuo adduco voluptas cui cinis cito porro. Dolorem vox terminatio amplus autem. Thesaurus curatio cursus capitulus candidus undique.",
      "isEdited": false,
      "createdAt": "2026-05-15T11:20:48.730Z",
      "updatedAt": "2026-05-15T11:20:48.730Z"
    },
    {
      "id": 2882,
      "conversationId": 157,
      "userId": 103,
      "body": "Demum tamisium admitto vicissitudo truculenter contra.",
      "isEdited": false,
      "createdAt": "2026-05-17T23:27:14.623Z",
      "updatedAt": "2026-05-17T23:27:14.623Z"
    },
    {
      "id": 2883,
      "conversationId": 157,
      "userId": 12,
      "body": "Suasoria volva tempus abscido decipio. Conforto conicio tamdiu magnam tabernus. Rerum cervus crustulum absorbeo.",
      "isEdited": false,
      "createdAt": "2026-05-20T20:58:58.113Z",
      "updatedAt": "2026-05-20T20:58:58.113Z"
    }
  ],
  "meta": {
    "page": 121,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=121&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=122&limit=24",
    "prev": "/api/v1/messages?page=120&limit=24"
  }
}