Is there an API for iPhoto?

Looking to interface a control surface to IPhoto to increas the speed of color correcting photos. Having track balls etc. speeds up the workflow in color correcting moving images. I have found devices that map to most of the video editiors but so far none that work with iPhoto. I could move the libraries over to Photos for editing if that is the only option. But I have not found a surface (external trackballs, sliders, shaft encoders etc.) that works with Photos - just mention of an API.

I checked the applescript libary and applescript does not give you access to any of the color correction controls in iPhoto.