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.
-
Open the Cloudflare dashboard.
Go to Account home ↗ -
Select Search (or press
CMD/CTRL + Kfrom any page). -
Enter
Copy account IDand select the result to copy.
-
In the Cloudflare dashboard, select the domain you want the zone ID for.
Go to Domains ↗ -
On the domain Overview page, locate the API section towards the bottom of the page.

-
Select the copy button next to Zone ID. You can also copy Account ID from this section.
You can also find your account ID from the Workers & Pages section of your account.
-
In the Cloudflare dashboard, go to Workers & Pages.
Go to Workers & Pages ↗ -
Locate the Account Details section.
-
Select the copy button next to Account ID.
