# Tollmint Dark Pattern Detector

> Tollmint Dark Pattern Detector is a paid API for AI agents from api.tollmint.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Analyzes a webpage (by URL or raw HTML) to detect dark UX patterns, returning findings with severity scores and a pass/fail verdict.

## Facts

- Endpoint: POST https://api.tollmint.com/v1/psych/dark-pattern-detect
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollmint-dark-pattern-detector-87514864
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rS1pvxmOtfHzs3lZckKbN

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 tollmint-dark-pattern-detector-87514864 -d '<json body>'
```

Example prompt: Scan https://example-shop.com/checkout for dark patterns and flag anything severity 70 or above as a failure — filter results to EU regulations only.

## When to prefer this

Use this endpoint when you need automated, per-call dark pattern detection without setting up an account or managing API credentials — ideal for CI pipelines, agent-driven compliance checks, or one-off audits where pay-per-call economics are preferred. It is particularly suited when you need jurisdiction-specific filtering (EU/US) or a programmatic pass/fail gate based on severity thresholds.

## Known failure modes

- URL is unreachable or blocked by robots.txt — fetch fails with an error
- HTML payload exceeds 2,000,000 character limit — request rejected
- Invalid jurisdiction code returns no filtered results or an error
- fail_above_severity out of 0–100 range causes validation error
- Page has no detectable dark patterns — returns empty findings list with 'pass' verdict
- Payment failure or insufficient USDC balance blocks the request

## How this service works

An API that quotes its own price and takes payment in the same request. Built for autonomous agents: no account, no invoice, no human in the loop.

## Output

A JSON response listing detected dark patterns on the page, each with a pattern type, description, and severity score (0–100), plus an overall verdict of 'pass' or 'fail' based on the configured threshold. Optionally filtered by jurisdiction (e.g. EU, US).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Page to analyse. Fetched respecting robots.txt."
  },
  "html": {
   "type": "string",
   "maxLength": 2000000,
   "description": "Raw HTML, if you already have it. Takes precedence over url."
  },
  "jurisdiction": {
   "type": "string",
   "maxLength": 20,
   "description": "Filter findings to a jurisdiction, e.g. \"EU\" or \"US\". Omit for all."
  },
  "fail_above_severity": {
   "type": "integer",
   "maximum": 100,
   "minimum": 0,
   "description": "Sets verdict to \"fail\" when any pattern meets or exceeds this severity. Useful in CI."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollmint-dark-pattern-detector-87514864/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tollmint.com](https://www.zero.xyz/host/api.tollmint.com/llms.txt)
