Skip to content

Robots Txt Generator API

POST https://api.findutils.com/api/tools/robots-txt-generator/execute

Return a robots.txt file built from user-agent rules (allow, disallow, crawl-delay), sitemap URLs and an optional Host directive, or from a preset: allow-all, block-all, wordpress, ecommerce.

Request body

application/json
  • rules

    array optional

    Rule groups: objects with user_agent (e.g. "*", "Googlebot", "GPTBot"), allow (array of paths), disallow (array of paths), crawl_delay (seconds). Overrides preset.

  • preset

    string optional

    Starting rule set when rules is omitted. One of allow-all · block-all · wordpress · ecommerce. Default "allow-all".

  • sitemaps

    array optional

    Absolute sitemap URLs.

  • host

    string optional

    Optional Host directive value (Yandex), e.g. "https://example.com".

  • include_comments

    boolean optional

    Prepend the generator comment header with the date. Default true.

Example arguments

Verified
{
  "preset": "allow-all",
  "sitemaps": [
    "https://example.com/sitemap.xml"
  ],
  "include_comments": false
}