megachangelog
Feature

Browser Run crawl endpoint respects Content Signals use directive

The /crawl endpoint now respects the use directive from the Content Signals standard, allowing site owners to control how their content may be used. A new contentUse parameter lets you declare your intended usage level (reference or full), and requests are rejected if they exceed a target site's robots.txt restrictions.

The /crawl endpoint now respects the use directive of the Content Signals standard, letting site owners express the maximum level at which their content may be used.

You can declare your intended level with the new contentUse parameter. Allowed values, from least to most permissive, are reference and full, and the default is full. If a target site's robots.txt sets a use level that is more restrictive than your declared contentUse, the crawl request is rejected with a 400 error.

curl -X POST 'https://api.cloudflare.com/client/v4/accounts/{account_id}/browser-rendering/crawl' \
  -H 'Authorization: Bearer <apiToken>' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://example.com",
    "contentUse": "reference",
    "formats": ["markdown"]
  }'

For more information, refer to Content Signals in the /crawl endpoint documentation.

apibrowser-runcrawlcompliancecontent-signals

Source: original entry ↗