Get all categories of specific domain via API

For e.g. zulacasino.com the UI shows “gambling”:
https://radar.cloudflare.com/domains/domain/zulacasino.com

When I use following API endpoint, it gives me "categories": [],:
https://api.cloudflare.com/client/v4/radar/ranking/domain/zulacasino.com

Is there another API Endpoint that shows “all” categories? And what categories is v4/radar/ranking/domain giving me? I guess “ranking category” != “domain category”?

The Radar Ranking API only returns the category of ranked domains from the top 100 list. (You get an empty response if the domain is not in the top 100.)
To get the category of any domain, you can use the Intel public API at Cloudflare API Documentation

Thank you for this info. I see for that API an account_identifier is required. I believe an account_identifier has a 1:1 relationship with a domain? Why is this required for this API? Is there a workaround for accounts that don’t have added a domain yet?

@amoraru Do you have insight into this?

The Intel API is the best route here: https://developers.cloudflare.com/api/operations/domain-intelligence-get-domain-details
In this case I think the confusion is about the CIPA category which is applied because of that Gambling category.

In this case I think the confusion is about the CIPA category which is applied because of that Gambling category.

I am not sure if we aren’t talking past each other. I was wondering why for the Intel API an account_identifier is required, and if there is a workaround for accounts/users that don’t have added a domain (in their dashboard) yet? E.g. is there some dummy account_identifier one could use?

The account identifier is probably required to ensure that queries can be rate limited to prevent abuse.

Your account ID can be found in the URL in the address bar of your browser when you are logged in to the dashboard (I assume that’s still the case even if no zones in the account).
https://dash.cloudflare.com/31ed967499434b28a87d26c5e989e102/.....

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.