What is Stru Excel API?
The Stru Excel API enables dynamic generation of complex Excel calculation sheets and reports with an intelligent layout engine that automatically handles cell referencing. Build professional spreadsheets programmatically without managing specific cell addresses. Base URL:https://api.stru.ai/v1
Authentication: Bearer token (API key from app.stru.ai)
Core Concepts
Dynamic Generation
Create complete Excel workbooks from scratch by defining logical content blocks instead of specific cell ranges.
Intelligent Layout
The API automatically determines cell positions and formulas. Define
=INPUT_A * FACTOR_B and the API resolves to =C5 * D10.Template Support
Populate existing company templates with data using named ranges or dynamic generation.
Async Jobs
All operations run asynchronously. Submit a job, receive a job ID, poll for the generated .xlsx download URL.
Key Features
- Intelligent Layout Engine: Define formulas logically (
=INPUT_A * 2) without worrying about cell addresses - Multi-Sheet Support: Create workbooks with multiple sheets
- Chart Generation: Automatically generate charts and graphs from data
- Template Population: Fill existing templates with dynamic data
- Formula Writing: Write Excel formulas as text (calculation happens when user opens the file)
- Data Extraction: Parse existing .xlsx files to extract data
- Secure Downloads: Generated files via time-limited signed URLs (24-hour retention)
Quick Start
1
Get Your API Key
Sign in to app.stru.ai and generate an API key.
2
Create a Spreadsheet Job
Submit a job to generate an Excel file.
3
Poll and Download
Check status and download the generated .xlsx file.
Content Blocks
Build spreadsheets using these logical block types:Headers
Add titles and section headers
Data Tables
Create formatted tables with headers
Formula Blocks
Add calculated values
Charts
Generate charts from data
Common Workflows
1. Dynamic Dashboards
1. Dynamic Dashboards
Create project-specific dashboards tailored with exact data and charts needed.Use Case: Generate unique dashboards for each project/client
2. BOM/Quantity Takeoffs
2. BOM/Quantity Takeoffs
Generate detailed bill-of-materials from design model data.Use Case: Automated quantity extraction from ETABS/SAP2000
3. Client-Ready Reports
3. Client-Ready Reports
Automate custom-branded professional reports with calculations, tables, and charts.Use Case: Weekly progress reports, design summaries
Best Practices
Use named blocks - Reference blocks by name in formulas for automatic cell resolution
Structure logically - Organize sheets and blocks in a logical flow
Let the API handle layout - Don’t specify cell positions; let the intelligent layout engine optimize placement