Please use the website. There is no public API today. An API is a direct connection between software systems.
Record pages contain readable HTML and structured data. Each consent file has a known location. See For AI & Search for details. Large-scale collection needs an agreement. https://creatorgraph.sparkonomy.com/for-ai-and-search/