Package: cloudflarer 0.0.0.9000

cloudflarer: Interface to the 'Cloudflare' API

An 'R' interface to the 'Cloudflare' REST API (<https://developers.cloudflare.com/api/>). Wraps the v4 API with authenticated requests, response unwrapping, paginated list helpers, and a generic request function so users can call any endpoint that is not yet covered by a dedicated wrapper.

Authors:Athanasia Mo Mowinckel [aut, cre, cph]

cloudflarer_0.0.0.9000.tar.gz
cloudflarer_0.0.0.9000.zip(r-4.7)cloudflarer_0.0.0.9000.zip(r-4.6)cloudflarer_0.0.0.9000.zip(r-4.5)
cloudflarer_0.0.0.9000.tgz(r-4.6-any)cloudflarer_0.0.0.9000.tgz(r-4.5-any)
cloudflarer_0.0.0.9000.tar.gz(r-4.7-any)cloudflarer_0.0.0.9000.tar.gz(r-4.6-any)
cloudflarer_0.0.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
cloudflarer/json (API)

# Install 'cloudflarer' in R:
install.packages('cloudflarer', repos = c('https://drmowinckels.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/drmowinckels/cloudflarer/issues

Pkgdown/docs site:https://drmowinckels.io

On CRAN:

Conda:

api-clientapi-wrappercloudflarecloudflare-apidnshttr2web-analytics

3.60 score 9 scripts 93 exports 14 dependencies

Last updated from:7629c9d1c9. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK140
source / vignettesOK222
linux-release-x86_64OK145
macos-release-arm64OK103
macos-oldrel-arm64OK124
windows-develOK103
windows-releaseOK112
windows-oldrelOK81
wasm-releaseOK108

Exports:cf_api_keycf_auth_modecf_cache_ratiocf_collectcf_create_custom_hostnamecf_create_d1_databasecf_create_dns_recordcf_create_healthcheckcf_create_kv_namespacecf_create_page_rulecf_create_turnstile_widgetcf_d1_querycf_delete_custom_hostnamecf_delete_d1_databasecf_delete_dns_recordcf_delete_healthcheckcf_delete_kv_namespacecf_delete_kv_valuecf_delete_kv_valuescf_delete_page_rulecf_delete_turnstile_widgetcf_dns_queriescf_emailcf_firewall_events_by_daycf_firewall_events_topcf_get_accountcf_get_account_rulesetcf_get_certificate_packcf_get_custom_hostnamecf_get_d1_databasecf_get_dns_recordcf_get_email_routing_settingscf_get_healthcheckcf_get_kv_namespacecf_get_kv_valuecf_get_page_rulecf_get_pages_projectcf_get_r2_bucketcf_get_rulesetcf_get_rum_sitecf_get_tunnelcf_get_turnstile_widgetcf_get_workers_scriptcf_get_zonecf_get_zone_settingcf_get_zone_settingscf_graphqlcf_has_authcf_list_account_rulesetscf_list_accountscf_list_certificate_packscf_list_custom_hostnamescf_list_d1_databasescf_list_dns_recordscf_list_email_routing_addressescf_list_email_routing_rulescf_list_firewall_rulescf_list_healthcheckscf_list_kv_keyscf_list_kv_namespacescf_list_page_rulescf_list_pages_deploymentscf_list_pages_projectscf_list_r2_bucketscf_list_rulesetscf_list_rum_sitescf_list_tunnel_connectionscf_list_tunnelscf_list_turnstile_widgetscf_list_workers_scriptscf_list_zonescf_page_rule_actioncf_page_rule_targetcf_purge_cachecf_put_kv_valuecf_put_kv_valuescf_records_to_dfcf_rename_kv_namespacecf_requestcf_respcf_rum_page_viewscf_rum_topcf_sitrepcf_tokencf_token_verifycf_update_dns_recordcf_update_healthcheckcf_update_page_rulecf_usercf_verifycf_workers_invocationscf_zone_overviewcf_zone_requests

Dependencies:askpassclicurlgluehttr2lifecyclemagrittropensslR6rappdirsrlangsysvctrswithr

cloudflarer cheatsheet
Setup | Discover what you can reach | Quick overview of a zone | Traffic analytics | Web Analytics (RUM) | DNS records | Page Rules | Cache purging | Zone settings | Email Routing | Turnstile (CAPTCHA replacement) | Workers | Pages, R2, Tunnels | Firewall + Rulesets | Escape hatches | Error handling

Last update: 2026-07-07
Started: 2026-05-21

Getting started with cloudflarer
Setup | Discovering what you can reach | DNS records | Purging cache | Zone settings | Calling endpoints the package does not wrap | Error handling

Last update: 2026-07-07
Started: 2026-05-21

Authenticating with the Cloudflare API
API token (recommended) | Create a token | Store the token | Global API Key (legacy) | Find the key | Store the credentials | Verify the credentials | Per-call credentials | Troubleshooting | Never commit credentials

Last update: 2026-05-21
Started: 2026-05-21

Cloudflare website analytics
Web Analytics (RUM) site catalogue | GraphQL Analytics | HTTP requests per day for a zone | Top countries for a Web Analytics (RUM) site | Error handling | Tidy wrappers | HTTP traffic over time | Cache hit ratio | DNS queries | Firewall events | Real-user (RUM) views | Picking the right query

Last update: 2026-05-21
Started: 2026-05-21

Readme and manuals

Help Manual

Help pageTopics
Cloudflare Global API Key (legacy auth)cf_api_key
Detect which Cloudflare auth mode is configuredcf_auth_mode
Daily cache hit ratio for a zonecf_cache_ratio
Collect every page of a paginated endpointcf_collect
Create a custom hostnamecf_create_custom_hostname
Create a D1 databasecf_create_d1_database
Create a DNS recordcf_create_dns_record
Create a healthcheckcf_create_healthcheck
Create a Workers KV namespacecf_create_kv_namespace
Create a Page Rulecf_create_page_rule
Create a Turnstile widgetcf_create_turnstile_widget
Run a SQL query against a D1 databasecf_d1_query
Delete a custom hostnamecf_delete_custom_hostname
Delete a D1 databasecf_delete_d1_database
Delete a DNS recordcf_delete_dns_record
Delete a healthcheckcf_delete_healthcheck
Delete a Workers KV namespacecf_delete_kv_namespace
Delete a value from a Workers KV namespacecf_delete_kv_value
Delete multiple keys from a Workers KV namespacecf_delete_kv_values
Delete a Page Rulecf_delete_page_rule
Delete a Turnstile widgetcf_delete_turnstile_widget
Daily DNS query counts for a zonecf_dns_queries
Cloudflare account email (legacy auth)cf_email
Daily firewall event counts for a zonecf_firewall_events_by_day
Top firewall events for a zone by a chosen dimensioncf_firewall_events_top
Get a single accountcf_get_account
Get a single account Ruleset (with its rules)cf_get_account_ruleset
Get a single SSL certificate packcf_get_certificate_pack
Get a single custom hostnamecf_get_custom_hostname
Get a single D1 databasecf_get_d1_database
Get a single DNS recordcf_get_dns_record
Email Routing settings for a zonecf_get_email_routing_settings
Get a single healthcheckcf_get_healthcheck
Get a single Workers KV namespacecf_get_kv_namespace
Read a value from a Workers KV namespacecf_get_kv_value
Get a single Page Rulecf_get_page_rule
Get a single Cloudflare Pages projectcf_get_pages_project
Get a single R2 bucketcf_get_r2_bucket
Get a single zone Ruleset (with its rules)cf_get_ruleset
Get a single Web Analytics (RUM) sitecf_get_rum_site
Get a single Cloudflare Tunnelcf_get_tunnel
Get a single Turnstile widgetcf_get_turnstile_widget
Get metadata for a single Workers scriptcf_get_workers_script
Get a single zonecf_get_zone
Get a single zone settingcf_get_zone_setting
Get zone settingscf_get_zone_settings
Run a Cloudflare GraphQL Analytics querycf_graphql
Check whether any Cloudflare credentials are configuredcf_has_auth
List Rulesets for an accountcf_list_account_rulesets
List accountscf_list_accounts
List SSL certificate packs in a zonecf_list_certificate_packs
List custom hostnames in a zonecf_list_custom_hostnames
List D1 databases in an accountcf_list_d1_databases
List DNS records in a zonecf_list_dns_records
List Email Routing destination addressescf_list_email_routing_addresses
List Email Routing rules for a zonecf_list_email_routing_rules
List firewall rules for a zonecf_list_firewall_rules
List standalone healthchecks in a zonecf_list_healthchecks
List the keys in a Workers KV namespacecf_list_kv_keys
List Workers KV namespacescf_list_kv_namespaces
List Page Rules for a zonecf_list_page_rules
List deployments for a Pages projectcf_list_pages_deployments
List Cloudflare Pages projectscf_list_pages_projects
List R2 buckets in an accountcf_list_r2_buckets
List Rulesets for a zonecf_list_rulesets
List Web Analytics (RUM) sitescf_list_rum_sites
List active connections for a Cloudflare Tunnelcf_list_tunnel_connections
List Cloudflare Tunnelscf_list_tunnels
List Turnstile widgetscf_list_turnstile_widgets
List Workers scripts in an accountcf_list_workers_scripts
List zonescf_list_zones
Build a Page Rule actioncf_page_rule_action
Build a Page Rule URL-match targetcf_page_rule_target
Purge zone cachecf_purge_cache
Write a value to a Workers KV namespacecf_put_kv_value
Write multiple key-value pairs to a Workers KV namespacecf_put_kv_values
Convert a list of Cloudflare records to a data.framecf_records_to_df
Rename a Workers KV namespacecf_rename_kv_namespace
Build an authenticated request for a Cloudflare endpointcf_request
Unwrap the result from a Cloudflare responsecf_resp
Daily page views for a Web Analytics (RUM) sitecf_rum_page_views
Top dimensions for a Web Analytics (RUM) sitecf_rum_top
Cloudflare situation reportcf_sitrep
Cloudflare API tokencf_token
Update a DNS recordcf_update_dns_record
Update a healthcheckcf_update_healthcheck
Update a Page Rulecf_update_page_rule
Get the authenticated usercf_user
Verify the active Cloudflare credentialcf_token_verify cf_verify
Workers invocations over timecf_workers_invocations
One-call summary of a zone's recent activitycf_zone_overview
Daily or hourly HTTP request totals for a zonecf_zone_requests