How Can I use api get all domains in my account?

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

1 Like

I can`t find it in https://api.cloudflare.com/

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.

I want to list all domains in my account,example a.com,b.com,c.com and so on…

Is https://api.cloudflare.com/#zone-properties what you’re looking for @commonperson?

1 Like

yes ,thank u very much,i use url https://api.cloudflare.com/client/v4/zones
and data ={“match”:“all”}, it`s useful.

1 Like

can you guess my english is not good?I just learned a little basic English.

1 Like

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 :greyg: 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.

@cloonan

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.

1 Like

thanks,Is it because my data don`t have enough parameters?
data ={“match”:“all”,“page”:str(i),“per_page”:“50”}

@sdayman