When prompted, they require you to insert your api-key and some zone_identifier into the url , but they don’t say what it is anywhere.

    3 answers 3

    quote and my free translation :

    1. You will need to get your API key for your account first. You can locate your "My Account" page.

      First you need to get the api key . You can find it on the page my account .

    2. Each zone (yourdomain.com) on CloudFlare has a unique number identifier. If you need to go to the "Report and Stats" for example, zid = xxxxxx.

      Each zone (your domain.rf) in the cloudflare has a unique digital identifier. You can find this zoneid by clicking on the link (probably on the account page) for reports and stats for this domain - zoneid you will see at the end of the address bar: zid=xxxxxx .

    Update

    I think this name is given as an illustration. if you have a registered domain on their website, just look at the url- s that lead to pages related to this domain. probably somewhere there should meet something similar in the address: with the characters z , id , = and a set of numbers.

    • Unfortunately there is no such thing, reports and stats - magokuz
    • I will try a good idea! Unsubscribe - magokuz

    Directly in the CloudFlare admin area I could not find the zone id for my domain, but you can get it if you make a request using the CloudFlare api of the form:

     $ curl -X GET "https://api.cloudflare.com/client/v4/user/billing/subscriptions/zones" \<br> -H "X-Auth-Email: user@example.com" \<br> -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \<br> -H "Content-Type: application/json" 

    X-Auth-Email data is your email; X-Auth-Key - your API key . In response, we will have a structure of the form:

     { "success": true, ... "result": [ { "zone_id": "023e105f4ecef8ad9ca31a8372d0c353", "zone_name": "example.com" ... }], ... } 

    Where zone_name is your domain name.

    • "{" result ": []," result_info ": {" page ": 1," per_page ": 20," total_pages ": 0," count ": 0," total_count ": 0}," success ": true , "errors": [], "messages": []} " - fdrv

    In the query above, you can find out the id of only the zones for which you pay. To find the id of any zone:

     $ curl -X GET "https://api.cloudflare.com/client/v4/zones?name=somedomain.com" \ -H "X-Auth-Email: user@example.com" \ -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \ -H "Content-Type: application/json" 

    where somedomain.com is replaced with the name of the zone you are looking for.

    Full list of zones:

     $ curl -X GET "https://api.cloudflare.com/client/v4/zones" \ -H "X-Auth-Email: user@example.com" \ -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \ -H "Content-Type: application/json"