---
title: Check Robots.txt Crawl Access API
slug: check-robots-txt-crawl-access
url: https://apyhub.com/martin10291/service/check-robots-txt-crawl-access
provider: Martin Petrov
categories: [Verification Kit, Media Kit]
tags: [robots-txt, crawler-access, web-crawling, ai-crawler-blocking, site-policy]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Check Robots.txt Crawl Access API

Robots.txt checker API. Send up to 25 URLs and a user agent to see if each page is allowed, the deciding rule and AI bot blocks. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/check-robots-txt-crawl-access` | What it does Checks whether 1 to 25 page URLs or domains are allowed to be crawled according to rob… | 100 |

## Endpoint reference

### Check Robots.txt Crawl Access API - can I crawl this URL, AI bot blocks

`POST https://api.eu.apyhub.com/martin10291/check-robots-txt-crawl-access` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `urls` | body | array of string | yes | Page URLs or domains to check, 1 to 25 per call, e.g. `https://www.nytimes.com/section/world` or `example.com`. Each URL is checked against its site's robots.txt. Example: `["https://www.nytimes.com/… |
| `userAgent` | body | string | no | Your crawler's product token or full User-Agent string, e.g. GPTBot or 'Mozilla/5.0 (compatible; MyBot/1.0)'. Empty = only the AI crawler matrix and '*' rules Example: `GPTBot`. |
| `aiCrawlers` | body | boolean | no | Include the allowed/blocked matrix for 17 AI crawlers + Googlebot/Bingbot Example: `true`. |
| `includeRobotsTxt` | body | boolean | no | Also return the raw robots.txt text (first 20,000 characters) Example: `false`. |

#### Quickstart

Check if a crawler may fetch a page: send the page in `urls` and your crawler in `userAgent`.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/check-robots-txt-crawl-access" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.nytimes.com/section/world"],"userAgent":"GPTBot"}'
```

#### What you'll get back

Returns a JSON object with `count` and `items`, one result per URL. Here GPTBot is not allowed on the page: `allowed` is `false` because of the rule `Disallow: /` in the `gptbot` group. The result also shows the AI crawler matrix, a summary of which AI bots are blocked, and the sitemaps listed in robots.txt. The example is shortened: `aiCrawlers` (19 rows), `sitemaps` and `userAgentsNamed` show their first entries only.

```json
{
  "count": 1,
  "items": [
    {
      "aiCrawlers": [
        {
          "bot": "GPTBot",
          "namedInRobotsTxt": true,
          "operator": "OpenAI",
          "pathAllowed": false,
          "purpose": "training",
          "rule": "Disallow: /",
          "siteAllowed": false
        },
        {
          "bot": "OAI-SearchBot",
          "namedInRobotsTxt": true,
          "operator": "OpenAI",
          "pathAllowed": false,
          "purpose": "search",
          "rule": "Disallow: /",
          "siteAllowed": false
        },
        {
          "bot": "ChatGPT-User",
          "namedInRobotsTxt": true,
          "operator": "OpenAI",
          "pathAllowed": false,
          "purpose": "user fetch",
          "rule": "Disallow: /",
          "siteAllowed": false
        }
      ],
      "aiSummary": {
        "aiBotsChecked": 17,
        "blockedBots": [
          "GPTBot",
          "OAI-SearchBot",
          "ChatGPT-User",
          "ClaudeBot",
          "Claude-SearchBot",
          "Claude-User",
          "Google-Extended",
          "Applebot-Extended",
          "PerplexityBot",
          "Perplexity-User",
          "CCBot",
          "Bytespider",
          "Meta-ExternalAgent",
          "cohere-ai",
          "DuckAssistBot"
        ],
        "blockedOnHomepage": 15,
        "blockedOnThisPath": 15,
        "stance": "blocks 15 of 17 AI bots, including AI search or user-fetch bots"
      },
      "allowed": false,
      "allowedForAnyBot": true,
      "cached": true,
      "checkedAt": "2026-11-26T10:24:36Z",
      "contentHash": "d0dbccfe5e661cfc",
      "contentSignals": null,
      "crawlDelay": null,
      "crawlDelays": null,
      "fetchMs": 34,
      "groups": 70,
      "httpStatus": 200,
      "issues": [],
      "llmsTxt": false,
      "matchedGroup": "gptbot",
      "matchedRule": "Disallow: /",
      "otherDirectives": null,
      "path": "/section/world",
      "policy": "rules",
      "productToken": "GPTBot",
      "reason": "longest match in group 'gptbot'",
      "robotsFinalUrl": "https://www.nytimes.com/robots.txt",
      "robotsTxtBytes": 8855,
      "robotsTxtFound": true,
      "robotsUrl": "https://www.nytimes.com/robots.txt",
      "ruleLine": 234,
      "rulesTotal": 187,
      "site": "https://www.nytimes.com",
      "sitemapCount": 25,
      "sitemaps": [
        "https://www.nytimes.com/sitemaps/new/news.xml.gz",
        "https://www.nytimes.com/sitemaps/new/sitemap.xml.gz"
      ],
      "url": "https://www.nytimes.com/section/world",
      "userAgent": "GPTBot",
      "userAgentsNamed": [
        "*",
        "aliyunsecbot",
        "amazonadbot",
        "amazonbot",
        "anthropic-ai"
      ]
    }
  ]
}
```

## About

## What it does
The Robots.txt Checker API tells you if a crawler may fetch a page. Send URLs and a user agent, and get back `allowed`, the exact rule that decided it, and the site's AI crawler policy.

Send `urls` with 1 to 25 page URLs or domains. Set `userAgent` to your crawler's token, such as `GPTBot`, or a full User-Agent string. The answer comes with `matchedRule`, such as `Disallow: /`, the group that applied and its line number.

Each result also lists the site's sitemaps, crawl-delay and rule counts. By default it shows which of 17 AI crawlers, plus Googlebot and Bingbot, are blocked, with each bot's operator and purpose. Set `aiCrawlers` to `false` to leave that out. Set `includeRobotsTxt` to `true` to get the raw file.

The checks follow the robots.txt standard (RFC 9309). A site with no robots.txt allows all crawling. A site whose robots.txt cannot be reached is treated as blocked.

Teams use this robots.txt checker API to gate web crawlers and scrapers before they fetch a page. Publishers use it to audit which AI bots they block. SEO teams use it to test robots.txt changes in bulk.

After a page is allowed, turn it into clean text with the [Convert Webpages to Markdown API](https://apyhub.com/martin10291/service/convert-webpages-to-markdown). For a full AI readiness score of a site, use the [Bulk Website AI Readiness Check API](https://apyhub.com/martin10291/service/bulk-website-ai-readiness).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/check-robots-txt-crawl-access
