INTEGRITY Cloudflare Docs

Crawl pages

graph LR
A[Set up your<br>Cloudflare Account] --> B[Verify your<br>AI crawler]
B --> C[Discover<br>payable content]
C --> D[Connect to<br>Stripe]
D --> E[Crawl pages]:::highlight
classDef highlight fill:#F6821F,color:white

Once your AI crawler complies with Web Bot Auth, you can begin to crawl webpages. For more information on how pay per crawl works, refer to What is Pay Per Crawl?

1. Identify payment requirements

When an AI crawler makes a request to a page protected by pay per crawl, the server will respond with HTTP/2 402 Payment Required. This response will also include the crawler-price header which specifies the cost to access the content. For example, a response may look like the following:

HTTP/2 402
date: Fri, 06 Jun 2025 08:42:38 GMT
crawler-price: USD 0.01

To access this content, the AI crawler must provide headers for paid access.

2. Access paid content

2.1. Include payment headers

Your AI crawler can specify the price it is willing to pay by providing one of two headers:

2.2. Sign your request with Web Bot Auth

Include Web Bot Auth headers by following the steps in Sign your requests.

2.3. Review response headers

When you specify a header to indicate payment, you may receive one of two responses:

Successful HTTP 200 response

The value of the crawler-charged header indicates the exact amount that will be billed to your Cloudflare account for the request.

HTTP 200
date: Fri, 06 Jun 2025 08:42:38 GMT
crawler-charged: USD 0.01

Unsuccessful response

If the request is unsuccessful, you will receive an error response with a crawler-error header indicating the specific issue.

HTTP/2 402
date: Fri, 06 Jun 2025 08:42:38 GMT
content-type: text/plain; charset=utf-8
crawler-price: USD 0.01
crawler-error: InvalidCrawlerExactPrice

Refer to Pay Per Crawl error codes for a complete list of error codes and troubleshooting guidance.

3. Track your spending

When you successfully access pay per crawl content (response with HTTP status code 200), the response will include crawler-charged. For example:

crawler-charged: USD 0.01

Cloudflare strongly recommends tracking and saving these values to keep an accurate record of the bill your AI crawler has accrued.

Additional resources

You may wish to refer to the following resources.