Can the third-level domain name fail to obtain the zone ID through the API?

I’m trying to make a tool to quickly resolve domain names, it seems that only those second-level domain names added to Cloudflare can work normally, and those third-level domain names can’t get the zone ID. Is the rule like this, or am I encountering some errors