# Delx Robots Path Budget

> Delx Robots Path Budget is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Parses a robots.txt body and returns a structured budget summary of allowed paths, disallowed paths, and sitemap URLs.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/robots-path-budget
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-robots-path-budget-01ef5878
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VhR_xu_FBE8lvLUPMPK3l

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 delx-robots-path-budget-01ef5878 -d '<json body>'
```

Example prompt: Here's the raw robots.txt content I fetched from the target site — can you parse it and tell me how many paths are allowed vs disallowed, and list any sitemap URLs it declares?

## When to prefer this

Use this endpoint when your agent has already fetched a raw robots.txt string and needs a quick structured summary of crawl permissions and sitemap pointers — especially before launching a web crawl, building a site index, or checking compliance. It is a lightweight, single-call utility that avoids writing custom robots.txt parsing logic in your agent pipeline.

## Known failure modes

- Empty or null robots.txt body returns zero counts and empty sitemaps array
- Malformed robots.txt with non-standard formatting may undercount directives
- Very large robots.txt bodies may be truncated or cause timeout
- Missing or unparseable Sitemap: lines result in empty sitemaps list

## How this service works

Count allow/disallow rules from robots.txt text. Call when crawl budget planning from a robots body you already fetched. Returns allow_n, disallow_n, sitemaps as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

A JSON object containing the schema version ('delx/util-robots-path-budget/v1'), the count of allowed directives (allow_n), the count of disallowed directives (disallow_n), and an array of sitemap URLs found in the robots.txt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "robots": {
   "type": "string",
   "description": "robots.txt body text"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-robots-path-budget/v1",
  "allow_n": 1,
  "sitemaps": [
   "https://ex.com/sitemap.xml"
  ],
  "disallow_n": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-robots-path-budget-01ef5878/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
