How does APIs work

What is the working backend and front end of a broker’s API?
How does it work?
What languages can one code in it?
It definitely doesn’t work as simple as streak does it?