releases.shpreview
Cloudflare/Cloudflare Changelog/AI Search - Website Source CSS content selectors for precise content extraction in AI Search

AI Search - Website Source CSS content selectors for precise content extraction in AI Search

$npx -y @buildinternet/releases show rel_JPMzU72_3Ixxa4FB81hIv

AI Search now supports CSS content selectors for website data sources. You can now define which parts of a crawled page are extracted and indexed by specifying CSS selectors paired with URL glob patterns. Content selectors solve the problem of indexing only relevant content while ignoring navigation, sidebars, footers, and other boilerplate. When a page URL matches a glob pattern, only elements matching the corresponding CSS selector are extracted and converted to Markdown for indexing. Configure content selectors via the dashboard or API: curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai-search/instances" \ -H "Authorization: Bearer {api_token}" \ -H "Content-Type: application/json" \ -d '{ "id": "my-ai-search", "source": "https://example.com", "type": "web-crawler", "source_params": { "web_crawler": { "parse_options": { "content_selector": [ { "path": "/blog/", "selector": "article .post-body" } ] } } } }' Selectors are evaluated in order, and the first matching pattern wins. You can define up to 10 content selector entries per instance. For configuration details and examples, refer to the content selectors documentation.

Fetched April 9, 2026