# Robots.txt Check for URL

> Robots.txt Check for URL is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Checks whether a given URL is permitted or blocked by the target website's robots.txt rules before crawling or scraping

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/web/robots-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/robots-txt-check-for-url-1adc88eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yvq4K2fAV6wfk1GQQSRP6

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 robots-txt-check-for-url-1adc88eb -d '<json body>'
```

Example prompt: Before I scrape https://example.com/blog/article-1, can you check if that URL is allowed by their robots.txt for my crawler?

## When to prefer this

Use this endpoint before any web scraping, crawling, or RAG ingestion workflow to confirm you have robots.txt permission for a target URL. Prefer this over manual robots.txt parsing when you need a machine-payable, programmatic compliance check integrated into an automated agent pipeline. Especially valuable when building responsible scraping agents that must respect site policies before extracting content.

## Known failure modes

- URL is malformed or not a valid URI — input validation error
- Target site is unreachable or robots.txt cannot be fetched — network or timeout error
- Site has no robots.txt, which may be interpreted as open access
- Path not specified and defaults may not match intended crawl target
- User agent not specified, defaulting to generic crawler rules that may differ from intended bot identity

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object with a status field (e.g. 'ready') indicating whether the specified URL and path are permitted by the site's robots.txt rules, enabling agents to make go/no-go crawl decisions before fetching content.

## 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": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri"
      },
      "path": {
       "type": "string"
      },
      "user_agent": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "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": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/robots-txt-check-for-url-1adc88eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
