How to Find CloudFlare Zone ID

Currently you can’t find your CloudFlare Zone ID from the CloudFlare control panel. Run the curl command below to get your Zone ID and other details as well. Just change your@email.com with the email address used to login to CloudFlare. Also change yourglobalapikey with your CloudFlare’s Global API Key. You can get it from https://www.cloudflare.com/a/account/my-account.

curl -X GET “https://api.cloudflare.com/client/v4/zones” -H “X-Auth-Email: your@email.com” -H “X-Auth-Key: your-global-api-key” -H “Content-Type: application/json”

You will see the output similar to this:

{“result”:[{“id”:”123d56a89f123e5678901b34567890a2″,”name”:”website.com”,
……………………………………………………………….
……………………………………………………………….
……………………………………………………………….
“success”:true,”errors”:[],”messages”:[]}

Your CloudFlare Zone ID is the one displayed after id (in this example: 123d56a89f123e5678901b34567890a2).

Advertisements

2 thoughts on “How to Find CloudFlare Zone ID

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s