# scopeapi.dev Python Data Analysis

> scopeapi.dev Python Data Analysis is a paid API for AI agents from scopeapi.dev, paid per call via x402, $0.07/call, status unknown (last checked 2026-09-14).

Runs Python-powered data analysis on submitted data using a natural language query, returning structured analytical results

## Facts

- Endpoint: POST https://scopeapi.dev/data-analysis
- Price: $0.07/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scopeapi-dev-python-data-analysis-0659ec71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6_UetDTMZeFnSlGwdtDcE

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability scopeapi-dev-python-data-analysis-0659ec71 -d '<json body>'
```

Example prompt: Analyze this CSV data for me — here's the table as a string — and tell me which product category had the highest average revenue last quarter. Query: 'Which product category has the highest average revenue?', data format: csv.

## When to prefer this

Choose this endpoint when you need to run ad-hoc Python-powered analytical computations on structured or semi-structured data (CSV, JSON, or text) and want a natural language answer back — especially when you don't want to set up your own code interpreter environment. It is particularly well-suited for one-off analytical queries over datasets submitted as strings, where the question can be expressed in plain language and the result should be a readable summary with supporting statistics.

## Known failure modes

- Missing 'query' or 'data' fields in request body returns validation error
- Malformed or unparseable data string may cause analysis failure or empty result
- Unsupported format value outside csv/json/text enum rejected
- Large datasets may exceed token or processing limits
- Ambiguous queries may produce generic or incomplete analysis

## How this service works

Python Data Analysis

## Output

A JSON object containing a natural-language 'analysis' field with Python-generated structured insights about the submitted data, along with a 'usage' object showing how many model calls and code interpreter calls were made, and the endpoint name.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "query": {
       "type": "string"
      },
      "data": {
       "type": "string"
      },
      "format": {
       "type": "string",
       "enum": [
        "csv",
        "json",
        "text"
       ]
      }
     },
     "required": [
      "query",
      "data"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "usage": {
   "modelCallsUsed": 1,
   "codeInterpreterCalls": 1
  },
  "analysis": "Structured analysis produced using Python.",
  "endpoint": "/data-analysis"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scopeapi-dev-python-data-analysis-0659ec71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scopeapi.dev](https://www.zero.xyz/host/scopeapi.dev/llms.txt)
