The web interface is great for one-off analysis. But what if you want to analyze data from your own app, a script, or an automated pipeline? Queryly's REST API lets you send data and get analysis results programmatically. No browser needed.
APIs let you integrate analysis into workflows that run without human intervention:
Every analysis starts with an API key. Generate one from the Queryly dashboard, then use it in your requests.
Send your file to the upload endpoint:
curl -X POST https://getqueryly.com/api/data-scientist/upload \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@data.csv"
The response includes a session ID. Use this ID for all subsequent requests on this file.
Ask questions about your data using natural language:
curl -X POST https://getqueryly.com/api/data-scientist/query \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "What is the average revenue by region?", "session_id": "SESSION_ID"}'
Get back structured results with statistics, charts, and insights.
Check data quality programmatically:
curl -X POST https://getqueryly.com/api/data-scientist/health-check \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"session_id": "SESSION_ID"}'
POST /api/data-scientist/upload: Upload a file for analysisPOST /api/data-scientist/query: Ask a question about uploaded dataPOST /api/data-scientist/health-check: Run data quality checkPOST /api/data-scientist/insights: Get key insights from dataPOST /api/data-scientist/swarm: Run analyst swarm (multiple personas)POST /api/data-scientist/chart: Generate a chart from dataFor AI coding assistants like Claude Code, Queryly supports the Model Context Protocol (MCP). This lets your AI assistant analyze data directly from your coding environment without manual API calls.
MCP tools include: file upload, query, health check, chart generation, insights, analyst swarm, and report generation.
API calls draw from the same daily limit as web usage. Free tier gets 10 calls per day. Pro tier gets 500 per day. Upgrade anytime from the dashboard.
Generate an API key and test the upload endpoint with a CSV file. The response tells you if the file was accepted and what analysis options are available.
Get Your API Key