Optical metrology software and API