example-data.com
Menu
Browse docs and collections

flashcards

flashcards

Page 21 of 22.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/flashcards?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/flashcards?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/flashcards.d.ts https://example-data.com/types/flashcards.d.ts
import type { Flashcard, ListEnvelope } from "./types/flashcards";

const res = await fetch(
  "https://example-data.com/api/v1/flashcards?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Flashcard>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/flashcards",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 481,
      "userId": 231,
      "deckName": "Spanish Verbs",
      "front": "Tantum cubo approbo bis quos laboriosam nulla conspergo",
      "back": "Rem vae peior capitulus sub.",
      "difficulty": "medium",
      "lastReviewedAt": "2026-04-19T00:00:00.000Z",
      "nextReviewAt": "2026-05-10T00:00:00.000Z",
      "reviewCount": 9,
      "createdAt": "2026-03-10T18:00:56.618Z"
    },
    {
      "id": 482,
      "userId": 234,
      "deckName": "History Dates",
      "front": "Cervus culpa aestus utrimque abutor audax",
      "back": "Amitto colo tribuo synagoga hic perferendis adnuo tumultus cauda.",
      "difficulty": "easy",
      "lastReviewedAt": "2026-04-01T00:00:00.000Z",
      "nextReviewAt": "2026-04-12T00:00:00.000Z",
      "reviewCount": 9,
      "createdAt": "2026-03-09T13:16:35.540Z"
    },
    {
      "id": 483,
      "userId": 234,
      "deckName": "History Dates",
      "front": "Armarium theca temperantia spargo cresco amoveo",
      "back": "Arca solus deduco nisi.",
      "difficulty": "medium",
      "lastReviewedAt": "2026-05-11T00:00:00.000Z",
      "nextReviewAt": "2026-05-29T00:00:00.000Z",
      "reviewCount": 22,
      "createdAt": "2025-11-25T11:41:11.646Z"
    }
  ],
  "meta": {
    "page": 21,
    "limit": 24,
    "total": 526,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/flashcards?page=21&limit=24",
    "first": "/api/v1/flashcards?page=1&limit=24",
    "last": "/api/v1/flashcards?page=22&limit=24",
    "next": "/api/v1/flashcards?page=22&limit=24",
    "prev": "/api/v1/flashcards?page=20&limit=24"
  }
}