example-data.com
Menu
Browse docs and collections

messages

messages

Page 2 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": 25,
      "conversationId": 2,
      "userId": 198,
      "body": "Animadverto defaeco aestivus avaritia curtus. Voluptates bestia claudeo terminatio cognomen caries depromo maiores. Thorax aqua terebro.",
      "isEdited": false,
      "createdAt": "2026-02-14T10:02:53.336Z",
      "updatedAt": "2026-02-14T10:02:53.336Z"
    },
    {
      "id": 26,
      "conversationId": 2,
      "userId": 188,
      "body": "Civitas thalassinus careo confugo. Ratione bos tremo sollers tollo venia argentum.",
      "isEdited": false,
      "createdAt": "2026-02-15T15:49:23.824Z",
      "updatedAt": "2026-02-15T15:49:23.824Z"
    },
    {
      "id": 27,
      "conversationId": 2,
      "userId": 198,
      "body": "Amitto terreo angulus dedecor demonstro.",
      "isEdited": false,
      "createdAt": "2026-02-19T04:38:32.384Z",
      "updatedAt": "2026-02-19T04:38:32.384Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=2&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=3&limit=24",
    "prev": "/api/v1/messages?page=1&limit=24"
  }
}