TapCub is live — analytics, insights and live chat, free on one platform

Website checks API Robots.txt Tester API

Send a URL and a user agent and get allowed or blocked, with the rule that matched.

POSThttps://api.pathclue.com/v1/site/robotsBeta
Request

Call it from your code

Set your key in the TAPCUB_API_KEY environment variable. Base URL: https://api.pathclue.com/v1.

terminal
curl -X POST https://api.pathclue.com/v1/site/robots \
  -H "Authorization: Bearer $TAPCUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","paths":"/\n/private/report.pdf","crawlers":"GPTBot, Googlebot"}'
Parameters

Request parameters

Request parameters
ParameterTypeRequiredDefaultDescription
urlurlYes—Page or site address. robots.txt is read from its origin; its path is tested when paths is empty.
pathsstringNo—Paths or URLs to test, separated by new lines or spaces (up to 50).
crawlersstringNo—robots.txt user-agent tokens to test, separated by commas or spaces (e.g. GPTBot, Googlebot). Alone, only these are tested; with set, they are added to the set.
setenumone of: default | ai | search | allNo—Crawler group: default (main AI crawlers + Googlebot, Bingbot, Baiduspider), ai, search, all (every known crawler with a robots.txt token).
Response

Example response

Successful responses carry the X-Credits-Charged and X-Credits-Balance headers. Errors return {"error":{"code","message"}} and are never charged.

response.json
{
  "url": "https://example.com",
  "robotsUrl": "https://example.com/robots.txt",
  "finalUrl": "https://example.com/robots.txt",
  "status": 200,
  "state": "ok",
  "bytes": 112,
  "groups": [
    {
      "line": 1,
      "agents": [
        "GPTBot"
      ],
      "rules": [
        {
          "type": "disallow",
          "path": "/",
          "line": 2
        }
      ]
    },
    {
      "line": 4,
      "agents": [
        "*"
      ],
      "rules": [
        {
          "type": "disallow",
          "path": "/private/",
          "line": 5
        }
      ]
    }
  ],
  "sitemaps": [
    "https://example.com/sitemap.xml"
  ],
  "summary": {
    "checks": 4,
    "allowed": 1,
    "blocked": 3
  },
  "results": [
    {
      "path": "/",
      "crawler": "GPTBot",
      "operator": "OpenAI",
      "purpose": "ai_training",
      "allowed": false,
      "via": "own",
      "rule": {
        "type": "disallow",
        "path": "/",
        "line": 2
      },
      "groupLines": [
        1
      ]
    },
    {
      "path": "/",
      "crawler": "Googlebot",
      "operator": "Google",
      "purpose": "search",
      "allowed": true,
      "via": "star",
      "rule": null,
      "groupLines": [
        4
      ]
    }
  ],
  "issues": [
    {
      "level": "ok",
      "key": "lintOk"
    }
  ],
  "truncated": false
}
Price and limits

What it costs

What it costs
Price1 credit per call
In US dollarsabout $0.001 · $1 / 1,000
CreditsFree or paid credits
Rate limitFree 10 / min · Plus 60 / min · Pro 300 / min
Free daily cap1,000 calls a day per key on free accounts
ChargedOnly on success — errors and timeouts are free
Use cases

What people build with it

Polite crawlers

Check robots.txt before your own crawler fetches a page.

SEO tools

Show users why a page is blocked and by which line.

AI bot policies

Confirm which AI crawlers a site lets in.

FAQ

Frequently asked questions

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

Which matching rules are used?

Google’s documented rules: the most specific matching Allow or Disallow line wins, with * and $ wildcards.

What if robots.txt is missing?

A missing file means everything is allowed, and the result says so. Server errors are reported so you can decide how to treat them.

How much does the Robots.txt Tester API cost?

Each successful call costs 1 credit per call (about $0.001). 1 credit is about $0.001. Failed calls — invalid input, unreachable sites, timeouts or errors on our side — are not charged.

Can I try it for free?

Yes. New accounts get 300 credits and every account gets 30 free credits a day, and they work on this endpoint. You can also try the matching free tool on tapcub.com without a key.

What are the rate limits?

Free accounts can make 10 calls a minute and 1,000 a day per key; Plus allows 60 a minute and Pro 300. Over the limit you get HTTP 429 with a Retry-After header, and nothing is charged.

How do I get an API key?

Sign in to the TapCub console, verify your email and create a key on the Tools → API page. Keys start with tck_ and are shown once; send them in the Authorization: Bearer header.

Get your API key

Create a key in the console and make your first call in a minute. Light endpoints run on free daily credits.