Cloudflare API Direct
Generates curl commands and batch scripts that hit the Cloudflare REST API directly for bulk and fleet-wide operations wrangler and MCP handle poorly.
Web & APIIntermediate★ 1,034⑂ 105AI score 9/10Last updated: Sep 29, 2026
What it does
- Produces
curlone-liners and batch scripts against the Cloudflare REST API (api.cloudflare.com/client/v4). - Includes a decision table for when to use wrangler, MCP, or the raw API.
- Covers bulk DNS, custom hostnames (white-label SaaS), email routing, cache purge, redirect rulesets, fleet-wide zone settings, WAF and rate-limit rules, Worker routes, and GraphQL analytics.
- Documents token scoping, zone ID lookup, rate limits (1200 req / 5 min), and script conventions: env-based tokens, pagination,
jq '.success'error checks, sleeps, and--dry-run. - Defers D1/R2/KV/Vectorize/Queues specifics to the bundled
references/developer-platform-api.md.
Who it's for
- Agencies and freelancers managing many Cloudflare zones.
- SaaS teams onboarding customer domains via custom hostnames.
- DevOps/SRE engineers scripting or auditing Cloudflare infrastructure.
Examples
- "Import 50 DNS records from this CSV into the new zone" → batch script with rate-limit sleeps and per-record success checks.
- "Set SSL to full (strict) and min TLS 1.2 across every active zone" → zone enumeration plus per-zone PATCH loop.
- "Rate limit /api/ to 100 requests per minute per IP" → ruleset entrypoint call for the
http_ratelimitphase.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/jezweb/claude-skills/HEAD/archive/plugins/cloudflare/skills/cloudflare-api/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the archive/plugins/cloudflare/skills/cloudflare-api folder from the GitHub repo jezweb/claude-skills into my ~/.claude/skills/jezweb-cloudflare-api/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/jezweb/claude-skills.git /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/archive/plugins/cloudflare/skills/cloudflare-api ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/jezweb/claude-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill folder:
cp -r claude-skills/archive/plugins/cloudflare/skills/cloudflare-api ~/.claude/skills/ - Verify the bundled
references/folder came along:ls ~/.claude/skills/cloudflare-api - In the Cloudflare dashboard go to My Profile → API Tokens, create a minimally scoped token, then export it:
export CLOUDFLARE_API_TOKEN="..."(add it to your shell rc file). - Make sure
jqis installed:brew install jqorsudo apt install jq. - Restart Claude Code and try a prompt like "use the cloudflare api to bulk-create DNS records from this CSV".
View source on GitHub ↗License: MIT