SolidWorks API

Hello Everyone I want to make an API for SolidWorks to automate our repetitive tasks 
So which programming language is best for creating an API and where from can I learn?