NotOptiFine is a website where you can download versions of OptiFine.
Actually you cant download versions of OptiFine because copyright.

I did not make this mod, so please go support the original creator of OptiFine (Link).

API:
So yes there is an API, to use it go here.