Lists the zones (domains) your connected Cloudflare account can see, with status, plan and name servers.
curl -X POST "https://api.primaryapi.com/v1/run/cloudflare.zones" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"active"}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"zones": [
{
"name": "example.com",
"paused": false,
"status": "active",
"type": "full", …
}
]
}
},
"credits": 1
}Input and output
6 fields
active.13 fields
zone to the other Cloudflare APIsGood to know
Runs as your connected Cloudflare account. Lists the zones in the accounts you shared when connecting.
Use a zone’s id or name as `zone` in cloudflare.dns_records. cloudflare.zone_analytics and the DNS and cache APIs.
Results are never stored. Run the call again to refresh them.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.