example-data.com
Menu
Browse docs and collections

messages

messages

Page 85 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": 2017,
      "conversationId": 111,
      "userId": 13,
      "body": "Complectus consequatur defetiscor derideo.",
      "isEdited": false,
      "createdAt": "2026-04-13T19:40:58.653Z",
      "updatedAt": "2026-04-13T19:40:58.653Z"
    },
    {
      "id": 2018,
      "conversationId": 111,
      "userId": 149,
      "body": "Decipio defessus quis tero substantia curo error. Cursim vir tubineus decretum credo suspendo aveho. Acsi animi alo vomer supplanto nisi caecus cogito absorbeo stabilis.",
      "isEdited": false,
      "createdAt": "2026-04-19T10:00:44.707Z",
      "updatedAt": "2026-04-19T10:00:44.707Z"
    },
    {
      "id": 2019,
      "conversationId": 111,
      "userId": 13,
      "body": "Uterque desolo sit vorago crepusculum creber tredecim vulpes patrocinor denique. Desparatus cognomen desipio cunctatio consequuntur tonsor velit.",
      "isEdited": false,
      "createdAt": "2026-04-29T06:56:42.384Z",
      "updatedAt": "2026-04-29T06:56:42.384Z"
    }
  ],
  "meta": {
    "page": 85,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=85&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=86&limit=24",
    "prev": "/api/v1/messages?page=84&limit=24"
  }
}