# Hermes Duplicate Audit API

> Hermes Duplicate Audit API is a paid API for AI agents from hermes-counterparty-api.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Detects and reports duplicate rows in JSON or CSV datasets, returning counts, ratios, and grouped duplicate indexes.

## Facts

- Endpoint: POST https://hermes-counterparty-api.onrender.com/v1/duplicate-audit
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hermes-duplicate-audit-api-7a2dbf46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1yGHpMYJlQP_-5TMs8LgT

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 hermes-duplicate-audit-api-7a2dbf46 -d '<json body>'
```

Example prompt: Can you audit this JSON records array for duplicate rows and tell me how many duplicates there are, which row indexes are duplicated, and what the duplicate ratio is?

## When to prefer this

Choose this endpoint when you need a deterministic, structured report of duplicate rows across JSON or CSV data — especially when you need machine-readable output with exact row indexes and groupings for downstream processing. Prefer over manual deduplication scripts when operating inside an agent workflow that requires a reliable, paid-quality audit result.

## Known failure modes

- Missing required 'input' field returns validation error
- Mismatched format field and body structure (e.g. format:'csv' with JSON records object) causes parsing error
- Empty records array may return zero duplicates with no error
- Malformed CSV string may cause parsing failure
- Incorrect bodyType enum value causes request rejection
- Payment failure (402) if USDC balance is insufficient

## How this service works

Agent utilities for company research, package maintenance intelligence, dependency vulnerability checks, counterparty availability, SEC company snapshots, OFAC sanctions screening, and deterministic JSON/CSV data-quality work. Company domain intelligence includes a free preview before the paid enrichment call.

## Output

Returns a JSON object with: total record_count, number of duplicate_rows, duplicate_ratio (fraction of records that are duplicates), unique_row_count, and a duplicate_groups array where each group lists the row indexes that match, count of occurrences, first_index, and duplicate_count. Schema version is included.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "record_count": 2,
  "duplicate_rows": 1,
  "schema_version": "1.0",
  "duplicate_ratio": 0.5,
  "duplicate_groups": [
   {
    "count": 2,
    "indexes": [
     0,
     1
    ],
    "first_index": 0,
    "duplicate_count": 1
   }
  ],
  "unique_row_count": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hermes-duplicate-audit-api-7a2dbf46/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hermes-counterparty-api.onrender.com](https://www.zero.xyz/host/hermes-counterparty-api.onrender.com/llms.txt)
