Skip to content
Web crawler

The Legisail crawler

If you run a legislature’s, a King’s Printer’s or a gazette’s website and have seen Legisail in your logs, this page says who we are, what we read, how we pace ourselves, how to verify a request is really ours, and how to tell us to slow down or stop.

Reference page for site operators and bot directories · legisail.com/bot

What it reads and why

Legisail answers questions about Canadian legislation, with the publisher’s document behind every answer. To do that it reads the official publishers: Justice Laws and the Canada Gazette, LEGISinfo and the Privy Council Office’s orders, each province’s and territory’s legislature, King’s Printer or Department of Justice legislation site, gazette and orders-in-council database.

It reads a fixed list of hosts. It does not discover new sites, follow links off a publisher’s site, or read search engines, news, or any third-party legal database. What is covered in each jurisdiction is on the coverage page.

The documents it reads are consolidated Acts and regulations, annual statutes, bills and their status pages, gazette parts, tables of public statutes and legislative changes, proclamations and orders in council. It fetches the formats the publisher offers to the public: HTML, XML and JSON where there is an API, PDF where that is the only edition.

How it identifies itself

Operator
Legisail, Vancouver, Canada · legisail.com
Product token
Legisail · the token to name in robots.txt
User-Agent
Legisail/1.0 (+https://legisail.com; contact: [email protected])
on bill and gazette feeds, and
Legisail/1.0 (https://legisail.com; legislation corpus loader)
on consolidated-law reads. The signature below, not either string, is what proves identity.
Where it runs from
Vercel’s cloud, and from a workstation in Vancouver for large first loads. The IP addresses are the provider’s and change; use the signature, not the address, to verify.
Contact
[email protected] · answered within one business day
Directories
Cloudflare Verified Bots: approved on October 16, 2026 · robots.txt product token listed above

Verifying a request is ours

Anyone can type our User-Agent. Requests to sites that ask for it are signed with HTTP Message Signatures (RFC 9421) under the Web Bot Auth profile, with an Ed25519 key. A signed request carries three headers:

Signature-Agent: "https://legisail.com"
Signature-Input: sig1=("@authority" "signature-agent");created=…;expires=…;keyid="…";tag="web-bot-auth"
Signature: sig1=:…:

The public key is published as a JWK Set at https://legisail.com/.well-known/http-message-signatures-directory, and that directory response is itself signed with the same key. Verify a request by fetching the directory and checking the signature over the request’s authority and the Signature-Agent header; a request that fails, or that carries no signature on a site that requires one, is not ours.

How it behaves

  • robots.txt is read and obeyed, including a Crawl-delay, which is applied to every request to that host. Where a publisher asks for ten seconds between requests, it gets ten seconds.
  • One request at a time per host, spaced by the host’s delay or, where none is published, by a pause of 250 ms between requests. A 429 or 503 backs off and waits before trying again.
  • Conditional requests wherever the publisher offers them: a document is fetched with If-None-Match or If-Modified-Since, and a 304 means nothing is downloaded. Where a publisher sends no validators, the document is fetched and compared by hash.
  • A listing a day, documents on change. Each publisher’s index is read once a day to see what is new or moved. Documents are re-read when the index, the publisher’s “current to” day, or a validator says they changed. Feeds that make a conditional check cheap are checked more often.
  • Large files are left alone. A file over the pass’s size cap is recorded as existing and not downloaded.
  • A refusal is final for the pass. A challenge page, a 403 or a block is counted and the host is left alone until the next pass. We never retry through another address or disguise the request.

What it never does

  • Log in, create an account, or read anything that is not public.
  • Submit a form, except a publisher’s own catalogue search where that is the only way the publisher lists its documents, with the same pacing as any other request.
  • Run a browser against a site that has blocked automated reads.
  • Collect personal information about anyone, or build anything about a person from what it reads.
  • Train a model on what it reads, or pass what it reads to anyone who would.
  • Read a third-party legal database. Only the official publishers are read.

What we keep from a read

Each document is read for the facts in it: its citation and title in each language, its structure section by section, the dates it prints and the documents they rest on, what it amends and what amended it, the regulations made under it, and the address where the publisher serves it, including dated editions where the publisher prints them. Each wording is recorded by a hash and a length so that a change can be noticed.

Every answer the API gives points back to the publisher’s page and carries the publisher’s notice for that jurisdiction. What the API returns, and what is kept about the people who use it, is on the Security page.

Slowing it down or stopping it

Add a Crawl-delay for the token Legisail to your robots.txt and it is honoured from the next read of that file, within a day. Disallow a path and it is not fetched. Or write to [email protected]: we will change the pacing, move the reads to a quieter hour, switch to a feed or API you prefer, or stop reading the site, and we will answer within one business day.

User-agent: Legisail
Crawl-delay: 10
Disallow: /search/

We would rather be told than blocked. The publishers’ sites are the product’s only source, and a publisher that reaches us gets whatever pacing it asks for.