Cloudflare Zaraz API

The Cloudflare Zaraz API allows developers to load and manage third-party tools in the cloud instead of the browser. It provides a unified web API with track, set, and ecommerce methods for sending events to third-party tools, improving page load performance and privacy.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /zones/{zone_id}/settings/zaraz/config Get the current Zaraz config · Get Zaraz configuration #
Ask an LLM
“Which Zaraz configuration is currently published on my zone?”
“Are secret variables returned in the latest Zaraz config?”
Tell an agent
Show the current Zaraz configuration for zone {zone_id}.
Get the latest Zaraz config on zone {zone_id}, including preview.
PUT /zones/{zone_id}/settings/zaraz/config Update a zone's Zaraz configuration · Update Zaraz configuration #
Ask an LLM
“How do I change the data layer or debug key in Zaraz?”
“Can I update the consent management settings for a zone?”
Tell an agent
Update Zaraz config on zone {zone_id} with data layer {dataLayer} and debug key {debugKey}.
Set consent settings {consent} and analytics {analytics} in Zaraz for zone {zone_id}.
GET /zones/{zone_id}/settings/zaraz/default Get the default Zaraz config · Get default Zaraz configuration #
Ask an LLM
“What does a new zone's Zaraz configuration look like by default?”
“Can I fetch the default Zaraz settings for a zone?”
Tell an agent
Show the default Zaraz configuration for zone {zone_id}.
Get the blank Zaraz config template for zone {zone_id}.
GET /zones/{zone_id}/settings/zaraz/export Export the full published Zaraz config · Export Zaraz configuration #
Ask an LLM
“Can I export my Zaraz config with secret variables included?”
“Where do I get a complete copy of the published Zaraz configuration?”
Tell an agent
Export the full published Zaraz configuration for zone {zone_id}.
Download the complete Zaraz config for zone {zone_id} with secrets.
GET /zones/{zone_id}/settings/zaraz/history List Zaraz configuration history · List Zaraz historical configuration records #
Ask an LLM
“Which Zaraz configurations have been published on my zone?”
“Can I sort Zaraz history by when each was updated?”
Tell an agent
List the Zaraz configuration history for zone {zone_id}.
Show the last {limit} Zaraz config versions on zone {zone_id}.
PUT /zones/{zone_id}/settings/zaraz/history Restore a Zaraz configuration by ID · Restore Zaraz historical configuration by ID #
Ask an LLM
“How do I roll back to an earlier Zaraz configuration?”
“Can I restore a specific published Zaraz config by its ID?”
Tell an agent
Restore Zaraz configuration {config_id} on zone {zone_id}.
Roll zone {zone_id} back to Zaraz config {config_id}.
GET /zones/{zone_id}/settings/zaraz/history/configs Get Zaraz configs by ID · Get Zaraz historical configurations by ID(s) #
Ask an LLM
“Can I fetch several Zaraz configurations by their IDs at once?”
“What were the published Zaraz configs for these IDs?”
Tell an agent
Get Zaraz configurations {ids} for zone {zone_id}.
Show the published Zaraz configs {ids} on zone {zone_id}.
POST /zones/{zone_id}/settings/zaraz/publish Publish the Zaraz preview config · Publish Zaraz preview configuration #
Ask an LLM
“How do I publish my Zaraz preview configuration?”
“Can I make the Zaraz changes live on my zone?”
Tell an agent
Publish the current Zaraz preview configuration for zone {zone_id}.
Make the Zaraz changes live on zone {zone_id}.
GET /zones/{zone_id}/settings/zaraz/workflow Get the Zaraz workflow · Get Zaraz workflow #
Ask an LLM
“What Zaraz workflow is configured on my zone?”
“Can I check the Zaraz workflow settings?”
Tell an agent
Show the Zaraz workflow for zone {zone_id}.
Get the Zaraz workflow settings on zone {zone_id}.
PUT /zones/{zone_id}/settings/zaraz/workflow Update the Zaraz workflow · Update Zaraz workflow #
Ask an LLM
“How do I change the Zaraz workflow on a zone?”
“Can I update the Zaraz workflow settings?”
Tell an agent
Update the Zaraz workflow for zone {zone_id}.
Change the Zaraz workflow settings on zone {zone_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudflare:cloudflare-zaraz-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudflare-zaraz-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Welcome to Cloudflare's API documentation site.
  license:
    name: BSD-3-Clause
    url: https://opensource.org/licenses/BSD-3-Clause
  title: Cloudflare Zaraz API
  version: 4.0.0
servers:
- description: Client API
  url: https://api.cloudflare.com/client/v4
security:
- api_email: []
  api_key: []
- api_token: []
- user_service_key: []
tags:


# --- truncated at 32 KB (92 KB total) ---
# Full source: https://artifacts.apis.io/cloudflare/openapi/cloudflare-zaraz-api-openapi.yml