API Integration Demo

Use this page to see how a separate website would talk to the Numerosity JAR. Set the base URL, run a health check, then pull a question set directly from the API.

Try the API

Response

Frontend Example

const baseUrl = "http://localhost:8080/api/v1";

async function loadRandomQuestion() {
  const response = await fetch(`${baseUrl}/questions/random?category=Algebra`);
  if (!response.ok) throw new Error("Request failed");
  return response.json();
}