# Anomaly Detection Script API

**Canonical:** https://apis.io/apis/anomaly-detection/anomaly-detection-script-api/  
**Provider:** Anomaly Detection — https://apis.io/providers/anomaly-detection/  
**Base URL:** https://api.cognitive.microsoft.com  
**Documentation:** https://learn.microsoft.com/en-us/azure/ai-services/anomaly-detector/overview

Anomaly Detection Script API is one of 49 APIs that [Anomaly Detection](https://apis.io/providers/anomaly-detection/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Script. The published artifact set on APIs.io includes an OpenAPI specification.

Use the script support APIs to get a list of supported script contexts and languages. Use the stored script APIs to manage stored scripts and search templates.

## Operations (6)

| Method | Path | Summary |
|---|---|---|
| GET | `/_scripts/{id}` | Get a script or search template |
| DELETE | `/_scripts/{id}` | Delete a script or search template |
| GET | `/_script_context` | Get script contexts |
| GET | `/_script_language` | Get script languages |
| POST | `/_scripts/{id}/{context}` | Create or update a script or search template |
| POST | `/_scripts/painless/_execute` | Run a script |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/anomaly-detection/openapi/anomaly-detection-script-api-openapi.yml

## Other Anomaly Detection APIs (12)

- [Azure AI Anomaly Detector](https://apis.io/apis/anomaly-detection/azure-ai-anomaly-detector/)
- [Elasticsearch Anomaly Detection API](https://apis.io/apis/anomaly-detection/elasticsearch-anomaly-detection-api/)
- [Datadog Anomaly Monitor API](https://apis.io/apis/anomaly-detection/datadog-anomaly-monitor-api/)
- [AWS Lookout for Metrics](https://apis.io/apis/anomaly-detection/aws-lookout-for-metrics/)
- [PyOD (Python Outlier Detection)](https://apis.io/apis/anomaly-detection/pyod-python-outlier-detection/)
- [Anomaly Detection Analytics API](https://apis.io/apis/anomaly-detection/anomaly-detection-analytics-api/)
- [Anomaly Detection Cat API](https://apis.io/apis/anomaly-detection/anomaly-detection-cat-api/)
- [Anomaly Detection Ccr API](https://apis.io/apis/anomaly-detection/anomaly-detection-ccr-api/)
- [Anomaly Detection Cluster API](https://apis.io/apis/anomaly-detection/anomaly-detection-cluster-api/)
- [Anomaly Detection Connector API](https://apis.io/apis/anomaly-detection/anomaly-detection-connector-api/)
- [Anomaly Detection data stream API](https://apis.io/apis/anomaly-detection/anomaly-detection-data-stream-api/)
- [Anomaly Detection Document API](https://apis.io/apis/anomaly-detection/anomaly-detection-document-api/)

## Tags

Script

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/anomaly-detection` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/anomaly-detection/anomaly-detection-script-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/anomaly-detection/.
