Third-party and API are related concepts but refer to different things:
Third-party: Third-party typically refers to an external entity, such as a company or service provider, that is separate from the two primary entities involved in a transaction or interaction.