# AgentDiet Article Extractor

> AgentDiet Article Extractor is a paid API for AI agents from rag-diet.agentdiet.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Extracts clean, distilled article content from a URL, stripping boilerplate to reduce token consumption by up to 85-91%

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/article-extractor?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-article-extractor-efa49eca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jAli76y9hYUf2Wb6W4oy-

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 agentdiet-article-extractor-efa49eca
```

Example prompt: Extract the clean article text from https://example.com/some-news-story — strip all the ads, navigation, and boilerplate so I get just the readable content without wasting tokens.

## When to prefer this

Choose this endpoint when you need to extract readable article content from a URL while minimizing token consumption — ideal for RAG pipelines, LLM summarization tasks, or any workflow where feeding raw HTML would waste context window space. At $0.001/call with ~91% compression ratios, it is cost-effective for high-volume article ingestion compared to fetching raw HTML and cleaning it yourself.

## Known failure modes

- Invalid or unreachable URL returns an error status
- Paywalled or bot-blocked pages may return incomplete content
- Non-article pages (homepages, SPAs) may yield poor extraction quality
- Missing required 'input' parameter returns schema validation error
- Payment failure (insufficient USDC balance) returns HTTP 402

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'data' field containing the extracted clean article content, a 'status' field ('ok' on success), and a 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) achieved by stripping boilerplate.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "mode": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-article-extractor-efa49eca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rag-diet.agentdiet.dev](https://www.zero.xyz/host/rag-diet.agentdiet.dev/llms.txt)
