How Can I use api get all domains in my account?
Who can tell me,if you have the api url, can u reply it? thanks
Follow the link above the posts to developers and then API for api docs
Domains are called “Zones” in the API.
https://api.cloudflare.com/#zone-list-zones and
https://api.cloudflare.com/#registrar-domains-list-domains
no use for me.
yes ,thank u very much,i use url https://api.cloudflare.com/client/v4/zones
and data ={“match”:“all”}, it`s useful.
can you guess my english is not good?I just learned a little basic English.
Aside from English, my, well pretty much anything else, is far less. And, welcome.
There is a Community Tip How do I work in my language that may be helpful. It’s in 10 languages in addition to English. And does the translation here help at all?
I find a new problem,Because there is a maximum limit of 50 pages per page, I use a loop to read, but the “page” and “per_page” in the request does not take effect.
https://api.cloudflare.com/client/v4/zones
data ={“match”:“all”,“page”:str(i),“per_page”:“50”}
and the “i” follows the loop.
I just tested and can confirm that incrementing the “page” parameter will show you the next batch of zones. I set per_page to 5, then CURL for Page 1, then Page 2, etc. and it went through my entire list of zones.
thanks,Is it because my data don`t have enough parameters?
data ={“match”:“all”,“page”:str(i),“per_page”:“50”}