Serverless AI Data Analysis

AI powered data analysis service that provides insights, suggestions, anomaly detection, metrics, and chart data structures from datasets in multiple languages.

Endpoint

Analyze datasets and generate insights, suggestions, anomalies, metrics, and visualizations.

POSThttps://api.xtartapp.com/data/analysis

*Authentication

You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.

Request body

NameTypeRequiredMaxDescription
datasetarrayYes2000Array of data objects to analyze (max 2 000 items) or (characters of the dataset must be less than 60 000). Provide only concise data objects, not full data with multiple fields.
objectivearrayYes5Array of analysis objectives/questions (max 5 items, each max 250 characters)
languagestringYes-The language for analysis output. Supported: auto, en, es, fr, de, zh, ja, ko, pt, it, ru, ar, hi

Response

NameTypeDescription
insightsarrayArray of insights discovered in the data (max 25 items, can be empty)
insights[].categorystringThe category of the insight (trend, distribution, correlation, outliers, patterns)
insights[].descriptionstringThe description of the insight
insights[].confidencenumberThe confidence level of the insight (0-1)
suggestionsarrayArray of suggested actions or improvements, each with priority and impact (max 25 items, can be empty)
suggestions[].taskstringThe task to be performed
suggestions[].prioritystringThe priority of the suggestion (high, medium, low)
anomaliesarrayArray of detected anomalies or outliers (max 25 items, can be empty)
anomalies[].fieldstringThe field that has the anomaly
anomalies[].valuestringThe value of the anomaly
anomalies[].reasonstringThe reason for the anomaly
chartsarrayArray of chart data structures for visualization (max 5 items, can be empty)
charts[].chartTypestringThe type of chart (line, bar, pie, etc.)
charts[].titlestringThe title of the chart
charts[].labelsarrayThe labels of the chart
charts[].valuesarrayThe values of the chart
charts[].descriptionstringThe description of the chart
metricsarrayArray of calculated metrics (sum, average, count, min, max) with field, value, and description (max 25 items, can be empty)
metrics[].fieldstringThe field that the metric is calculated from
metrics[].typestringThe type of metric (sum, average, count, min, max)
metrics[].valuenumberThe value of the metric
metrics[].descriptionstringThe description of the metric

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTEx.: The request is invalid.
400DATA_ANALYSIS_ERROREx: could not analyze data | parsing error
400INSUFFICIENT_BALANCEThe user has insufficient balance
401UNAUTHORIZEDEx.: The token is invalid.
429TOO_MANY_REQUESTSEx.: The request limit has been reached.