Python-connected page

Case index and server status.

This is the working example for pages that need code. It uses a small JavaScript API helper and can call your Flask server through a Cloudflare Pages Function.

Connection

Python API

Not checked

Use the button to test the configured health endpoint.

Live lookup

Find a case record

Letters, numbers and hyphens only.

Integration pattern

The browser never receives your server secret.

The page calls /api on the same domain. A Cloudflare Pages Function forwards only approved routes to your Python service and adds a server-side shared token.

const record = await SiteApi.getCase("Q-014");
console.log(record.title);