POST /v1/analyze

Send CSV. Get analysis back.

One API call. You send a CSV file and plain-English instructions. CrunchAPI generates Python, executes it, fixes its own errors, and returns structured results. No notebooks. No dashboards. Just data in, insights out.

request.py
import requests

response = requests.post("https://api.crunchapi.com/v1/analyze",
  headers={"Authorization": f"Bearer {API_KEY}"},
  files={"csv": open("sales_q4.csv")},
  data={"instructions": "Find the top 3 products
    by revenue growth rate. Show month-over-
    month trends and flag any anomalies."
}
)
200 OK · 2.3s
{
  "summary": "Widget Pro led Q4 with 34% MoM revenue
    growth. CloudSync and DataPack followed at 28% and
    21%. Anomaly detected: Widget Pro had a 180% spike
    in November, likely from the Black Friday campaign."
,
  "results": { ... },
  "code_executed": "import pandas as pd...",
  "retries": 0
}

Four steps. Zero notebooks.

01
Upload
POST your CSV file and natural language instructions to a single endpoint.
02
Generate
CrunchAPI writes Python analysis code tailored to your data structure and instructions.
03
Execute
Code runs in a sandboxed environment. Errors are caught, diagnosed, and fixed automatically.
04
Return
Get structured JSON results plus a natural language summary. Ready for your UI or pipeline.

Infrastructure, not another dashboard.

Self-Healing Execution
Generated code that fails gets diagnosed and rewritten automatically. Your users never see an error. Retry logic is built into every request.
Sandboxed & Secure
Every analysis runs in an isolated environment. No code touches your infrastructure. No data persists after the response. Zero attack surface.
API-First
No UI to maintain. No dashboard to embed. One REST endpoint that returns JSON. Integrates into any product in minutes, not months.
Transparent Output
Every response includes the generated Python code, execution metadata, and retry count. Full auditability for compliance-sensitive use cases.

Every product becomes
a data product.

CrunchAPI exists so developers never have to build a data analysis pipeline again. One endpoint. Any CSV. Any question. Production-grade answers.