NEXUS Backend

API Overview & Data Explorer

Available Endpoints

The following REST APIs are exposed for the frontend application.

Frontend UI Endpoints (11)

These endpoints are actively called by the React frontend to render charts and components.

Summary Stats

GET /api/summary

Data Rows

GET /api/data

Data Export (CSV)

GET /api/data/export

Countries List

GET /api/countries

Filter Options

GET /api/filters

Trend Series

GET /api/trends

Comparison

GET /api/comparison

Country Profile

GET /api/country-profile

Heatmap Matrix

GET /api/heatmap

AI Insights

GET /api/insights

Ask AI (Q&A)

POST /api/ask

Backend Utility Endpoints (2)

These endpoints are available for infrastructure and other integrations, but not directly used by the UI.

Health Check

GET /api/health

Products List

GET /api/products

Dataset Preview

Country Product Type Year Yield Unit
Click "Load Data" to fetch rows from the backend.
Page 1