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:
-
Log in to the Cloudflare dashboard ↗.
-
Select your account and domain.
-
On the Overview page (the landing page for your domain), find the API section.
-
The API section contains your Zone ID and Account ID. To copy these values for API commands or other tasks, select Click to copy.
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:
-
Log in to the Cloudflare dashboard ↗.
-
Select your account.
-
Go to Workers & Pages.
-
The Account details section contains your Account ID. To copy these values for API commands or other tasks, select Click to copy.