# G-Forge Deduplicate JSON

> G-Forge Deduplicate JSON is a paid API for AI agents from api.getretold.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-24).

Removes exact duplicate items from a JSON array, preserving the first occurrence and original order, for up to 5,000 items.

## Facts

- Endpoint: POST https://api.getretold.com/services/agent-deduplicate-json/invoke?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/g-forge-deduplicate-json-75a79e26
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KuoaWIPSRzsTdo3lCMJHp

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 g-forge-deduplicate-json-75a79e26 -d '<json body>'
```

Example prompt: I've got a JSON array of customer records with some duplicates — can you deduplicate it and give me back only the unique entries, keeping the first time each one appeared?

## When to prefer this

Choose this endpoint when you need to remove exact duplicate entries from a JSON array as part of a data-cleaning or ETL pipeline, especially when preserving original order and first-occurrence semantics matters. It handles objects, nested values, and scalars, and normalizes key order in objects before comparison. Prefer it over manual deduplication logic when operating within the 5,000-item limit and you want a simple, single-call solution.

## Known failure modes

- Input array exceeds 5,000 items — request rejected
- Malformed JSON input — parsing error returned
- Empty array input — returns empty array with no error
- Non-array value provided — schema validation error

## How this service works

Clean repeated JSON records before the next workflow step. Remove exact duplicate values while preserving the first occurrence and original order. Works with arrays containing objects, nested values and scalars; object-key order does not create a new value. Up to 5,000 items.

## Output

A JSON array containing only the unique items from the input, with duplicates removed and first occurrences preserved in their original order. Object-key ordering is normalized so that objects with the same keys and values in different orders are treated as equal.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "array",
   "maxItems": 5000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/g-forge-deduplicate-json-75a79e26/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getretold.com](https://www.zero.xyz/host/api.getretold.com/llms.txt)
