example-data.com
Menu
Browse docs and collections

messages

messages

Page 118 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": 2809,
      "conversationId": 154,
      "userId": 8,
      "body": "Ambitus defendo careo consequatur aliquid adficio vos cohors. Atrox communis accusator sollicito est voveo claustrum textilis. Careo contego vulgus aedificium temptatio.",
      "isEdited": false,
      "createdAt": "2025-09-07T05:07:30.879Z",
      "updatedAt": "2025-09-07T05:07:30.879Z"
    },
    {
      "id": 2810,
      "conversationId": 154,
      "userId": 112,
      "body": "Decretum speculum charisma trucido aufero.",
      "isEdited": false,
      "createdAt": "2025-09-07T23:12:42.610Z",
      "updatedAt": "2025-09-07T23:12:42.610Z"
    },
    {
      "id": 2811,
      "conversationId": 154,
      "userId": 136,
      "body": "Ancilla contra caterva anser caveo ascit delibero tubineus stillicidium sum.",
      "isEdited": false,
      "createdAt": "2025-10-04T19:01:26.930Z",
      "updatedAt": "2025-10-04T19:01:26.930Z"
    }
  ],
  "meta": {
    "page": 118,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=118&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=119&limit=24",
    "prev": "/api/v1/messages?page=117&limit=24"
  }
}