Skip to content

Find account and zone IDs

Last updated View as MarkdownAgent setup

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.

Copy your account ID

  1. Open the Cloudflare dashboard.

    Go to Account home ↗
  2. Select Search (or press CMD/CTRL + K from any page).

  3. Enter Copy account ID and select the result to copy.

    Search results showing the Copy account ID command

Copy your zone ID

  1. In the Cloudflare dashboard, select the domain you want the zone ID for.

    Go to Domains ↗
  2. On the domain Overview page, locate the API section towards the bottom of the page.

    Domain Overview page with the API section highlighted
  3. Select the copy button next to Zone ID. You can also copy Account ID from this section.

Find account ID in Workers & Pages

You can also find your account ID from the Workers & Pages section of your account.

  1. In the Cloudflare dashboard, go to Workers & Pages.

    Go to Workers & Pages ↗
  2. Locate the Account Details section.

  3. Select the copy button next to Account ID.

    Workers & Pages Overview page with the Account ID section highlighted

Was this helpful?