Json response to get the DNS domain category for Gateway

Is there any way to get the json response getting the domain categorization of DNS Gateway ( Categories · Cloudflare for Teams docs)

I used

curl --http2 -H ‘accept: application/dns-json’ https://location-id.cloudflare-gateway.com/dns-query?name=example.com

And the response will be


Is there any way to get the json format to get website categorization. Like if the domain is phishing, adult category etc?

If you are looking to get the categories for a domain then I would recommend this API endpoint.