How to Get Found in AI Search Engines: Optimization Using APIs