# API

**Ocean API** A RESTful API for scan data, user information, risk scores and detection systems. Authenticated calls are rate-limited to 1,000 requests per hour.

HTML version: https://anticheat.ac/docs/api

## Requirements

The API needs an active license or Enterprise membership. Free users cannot create API keys. The only exception is /v1/version, which is public.

- **Base URL**: https://api.anticheat.ac/v1
- **Authentication**: x-api-key header
- **Rate limit**: 1,000 requests/hour
- **Server label**: Optional x-server-name header

## Usage logging

Every authenticated call is recorded — key prefix, endpoint, IP and server name — and kept for 90 days to spot key sharing and abuse. Full keys are never stored.

## Endpoints

- [Scanned users](https://anticheat.ac/docs/api/scanned-users): Complete scan history, detections, ban/warn status and related accounts for a Discord user.
- [User risk score](https://anticheat.ac/docs/api/user-risk-score): Aggregated risk score and level across all linked profiles.
- [Pin results](https://anticheat.ac/docs/api/pins): Full scan results for pins owned by your account.
- [Pin status](https://anticheat.ac/docs/api/pin-status): Real-time scan progress, status percentage and result summary.
- [Create pins](https://anticheat.ac/docs/api/pins-create): Create scan pins programmatically. Enterprise owners only.
- [Cheater database](https://anticheat.ac/docs/api/database): Community profile, network lookup and Ocean scan matches by Discord ID. Needs DB Access.
- [Version](https://anticheat.ac/docs/api/version): The currently active Ocean client version. Public, no key needed.
- [MCP Server](https://anticheat.ac/docs/api/mcp): Remote MCP server exposing the same data as the REST API to AI agents over Streamable HTTP. OAuth 2.1 with PKCE — no API key.

## Risk levels

| Level | Score | Meaning |
| --- | --- | --- |
| clean | 0 | No detections or suspicious activity |
| low | 1–25 | Minor flags, likely false positives |
| medium | 26–50 | Some suspicious activity detected |
| high | 51–75 | Multiple detections, likely cheating |
| critical | 76–100 | Confirmed cheating with extensive history |

## Documentation pages

- [API](https://anticheat.ac/docs/api)
- [Scanned Users](https://anticheat.ac/docs/api/scanned-users)
- [User Risk Score](https://anticheat.ac/docs/api/user-risk-score)
- [Pins](https://anticheat.ac/docs/api/pins)
- [Pin Status](https://anticheat.ac/docs/api/pin-status)
- [Create Pins](https://anticheat.ac/docs/api/pins-create)
- [Cheater Database](https://anticheat.ac/docs/api/database)
- [Version](https://anticheat.ac/docs/api/version)
- [MCP](https://anticheat.ac/docs/api/mcp)

## Markdown pages

- [Ocean Anti-Cheat](https://anticheat.ac/md)
- [Pricing](https://anticheat.ac/md/pricing)
- [Download](https://anticheat.ac/md/downloads)
- [Documentation](https://anticheat.ac/md/docs)
- [Detections](https://anticheat.ac/md/docs/detections)
- [Full reference for language models](https://anticheat.ac/llms-full.txt)
