Skip to content
Integration

Cloudflare integrations and automation

Say what should happen in Cloudflare, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

Cloudflare on Whenever

About Cloudflare

Cloudflare is a global network designed to make everything you connect to the Internet secure, private, fast, and reliable. Cloudflare Browser Rendering enables developers to programmatically control and interact with headless browser instances running on Cloudflare’s global network, facilitating tasks such as automating browser interactions, capturing screenshots, generating PDFs, and extracting data from web pages.

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Through its MCP server, where its tools and permissions fit the job.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the Cloudflare workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your Cloudflare workflow

Cloudflare offers many unrelated products, so begin by naming the one you need. For automation, the usual choices are the account and zone API (DNS records, cache purges, firewall rules, analytics) and Browser Run (formerly called Browser Rendering). Browser Run runs a headless browser on Cloudflare's network and returns the result. Its Quick Actions are single HTTP requests for common jobs: fetching rendered HTML, taking a screenshot, generating a PDF, converting a page to Markdown, scraping elements, extracting structured data, listing links, and crawling a site. A brief that just says "use Cloudflare" is too vague.

Browser Run is useful when an ordinary HTTP request is not enough because the page builds its content with JavaScript. A weekly PDF of a public pricing page, a screenshot of your own status page after each deploy, or a Markdown copy of a competitor's changelog for review all fit. Each call uses browser time on your account. On Workers Free, the allowance is 10 minutes of browser time a day and one Quick Action request every 10 seconds. Workers Paid has no daily cap and allows far more requests per second, and browser time is billed. Check the limits page before scheduling hundreds of captures.

Use an API token. Cloudflare calls the Global API Key legacy and says it has limitations that make it less secure. A token is given Read or Edit permissions per group and is limited to the resources you select, so a DNS token for one zone gets errors on every other zone. You can also restrict it by client IP and give it a time to live. Account API tokens are service tokens that are not tied to a person. Calls are addressed by account ID or zone ID, so record those in setup.

Treat changes to infrastructure with care. A workflow that creates DNS records should check whether the record already exists, because adding the same name twice gives a different result from updating it. When rendering other people's sites, follow their terms. On the free plan, the 429 error "Browser time limit exceeded for today" lasts until the next UTC day, so a failed capture late in the day will not succeed if retried straight away.

Cloudflare workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Weekly PDF archive of a pricing page

A Browser Rendering capture saved with the date in its name, so pages can be compared from week to week.

Build this workflow

Changelog as Markdown for review

Uses the Markdown endpoint to turn a JavaScript-rendered page into text that can be compared with last week's copy.

Build this workflow

Screenshot the status page after a deploy

A webhook-triggered capture gives the team a visual check of a page they own.

Build this workflow

Related apps for your workflows

All integrations

Cloudflare FAQs

What can Browser Run Quick Actions return?

Markdown, screenshots, PDFs, snapshots, links, scraped HTML elements, structured data, and crawled content. Each request renders the page in a headless browser first. Cloudflare renamed the product from Browser Rendering to Browser Run.

Is Browser Run available on the free plan?

Yes. Workers Free includes 10 minutes of browser time a day, and Quick Actions are limited to one request every 10 seconds. Workers Paid removes the daily cap and bills browser time instead.

Which Cloudflare token should the workflow use?

An API token with only the permission groups and resources the workflow needs, or an Account API token if you do not want it tied to a person. Cloudflare treats the Global API Key as legacy and recommends tokens wherever possible.

Why do my captures return 429?

Either you exceeded the per-second request limit, in which case honour the Retry-After header, or a free account used up its daily browser time, which resets at the next UTC day.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.