Cloudflare Docs
Cloudflare Fundamentals
Cloudflare Fundamentals
Visit Cloudflare Fundamentals on GitHub
Set theme to dark (⇧+D)

Find zone and account IDs

Once you set up a new account and add your domain to Cloudflare, you may need access to your zone and account IDs for API operations.

To find your zone and account IDs:

  1. Log in to the Cloudflare dashboard and select your account and domain.

  2. On the Overview page (the landing page for your domain), find the API section.

    Screenshot of the Overview page with the API section highlighted

  3. The API section contains your Zone ID and Account ID. To copy these values for API commands or other tasks, select Click to copy.

    Screenshot of the API section on the Overview page of a zone

For more guidance on setting up API tokens and using the API, refer to our Cloudflare API Documentation.