robots.txt Tester & Parser

Fetch and parse the robots.txt of any site into user-agent groups, allow/disallow rules and sitemaps, and test if a path is crawlable.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

Give any URL of a site in url; the API fetches /robots.txt from its origin and parses it into groups (user agents with their allow, disallow and crawl_delay rules) and the list of sitemaps. The response also tells whether the file exists, its HTTP status and the raw text (first 20,000 characters).

Add a path (for example /search) and optionally a user_agent (default *) to test whether that path may be crawled: the API picks the group matching the user agent (or *), applies the longest matching rule with * wildcards and $ end anchors, and returns allowed: true or false.

The robots.txt file is read up to 512 KB with a 10 second timeout. Only public http/https hosts are allowed.

Use this in your code

curl "https://apibox.io.vn/v1/robots-txt?url=https://github.com&path=/search&user_agent=Googlebot" \
  -H "Authorization: Bearer YOUR_API_KEY"

API documentation → Get a free API key

FAQ

How do I test if a URL is blocked by robots.txt?

Send url (the site), path (e.g. /private/page) and user_agent (e.g. Googlebot). The response contains allowed: true or false.

Are wildcards supported in rules?

Yes. * matches any characters and a trailing $ anchors the end of the path. The longest matching rule wins, and Allow wins a tie.

What if the site has no robots.txt?

The response has exists: false, the HTTP status, empty groups, and any tested path is reported as allowed.