Cloudflare Docs
Cloudflare Fundamentals
Edit this page 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.

  2. Select your account and domain.

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

    Screenshot of the Overview page with the API section highlighted
  4. 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.

​​ Find account ID (Workers and Pages)

You can also find your account ID within the Workers & Pages section of your account:

  1. Log in to the Cloudflare dashboard.

  2. Select your account.

  3. Go to Workers & Pages.

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

    Screenshot of the Workers & Pages Overview page with the account ID section highlighted