Cloudflare zone ID

I cant find my zone id when run this .>

curl -X GET “https://api.cloudflare.com/client/v4/zones
-H “X-Auth-Email: [email protected]
-H “X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41”
-H “Content-Type: application/json”

only i receive this messge only,

{“result”:,“result_info”:{“page”:1,“per_page”:20,“total_pages”:0,“count”:0,“total_count”:0},“success”:true,“errors”:,“messages”:}

plz help me to find my zone id

To find your Zone ID through the web UI head to the Cloudflare Dashboard, select your domain and look under the API selection of the sidebar, you’ll see your account ID and zone ID.

To find this information though the API you need to generate a token at this page and then do a request similar to:

$ curl -X GET "https://api.cloudflare.com/client/v4/zones" \
     -H "Authorization: Bearer <token>" \
     -H "Content-Type:application/json"
1 Like