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

{“Status”:0,“TC”:false,“RD”:true,“RA”:true,“AD”:true,“CD”:false,“Question”:[{“name”:“example.com”,“type”:1}],“Answer”:[{“name”:“example.com”,“type”:1,“TTL”:77614,“data”:“93.184.216.34”}]}

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.