API Data Analysis: Analyze Data from Any App

July 26, 2026

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.

Why Use an API for Data Analysis?

APIs let you integrate analysis into workflows that run without human intervention:

How the API Works

Every analysis starts with an API key. Generate one from the Queryly dashboard, then use it in your requests.

Step 1: Generate an API Key

  1. Sign in to getqueryly.com
  2. Go to Settings
  3. Click "Generate API Key"
  4. Choose an expiration (default: 30 days)
  5. Copy the key shown once

Step 2: Upload Your File

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.

Step 3: Query Your Data

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.

Step 4: Run Health Checks

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"}'

API Endpoints

MCP Protocol Support

For 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.

Rate Limits

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.

Try It

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