An API is more akin to a specification, the software that implements it is something different. This is why, for example, you can use one version of the TWS API with a different version of the gateway/client software. Also why you download them separately, the API from here but the client...