Jq is a great tool Link . It makes working with json from rest api’s much easier and easier to read. See the examples page for more info but here is a short one.
- setup a cloudflare api token
- install jq
brew install jqif your on osx.
This example queries the cloudflare api and returns just the count of zones in your account. Its possible the api has been updated with more features but these queries still work as of when I published this. YMMV
The following example returns the list of domains currently in your account.
Normally the output is to much to deal with visually but jq makes it very easy to traverse the json heirarchy.