Webhook vs API


Both Webhooks and APIs facilitate syncing and relaying data between two applications. However, both have different means of doing so, and thus serve slightly different purposes.

To put it simply, an API does stuff when you ask it to, while a Webhook does stuff on it’s own when certain criteria is met or scenarios takes place. Let’s dig a little deeper.

An API can used from a server to communicate with example.com. Through that communication, the API can List, Create, Edit or Delete items. The API needs to be given instructions, though.

Webhooks on the other hand are automated calls from example.com to a server. Those calls are triggered when a specific event happens on example.com. For example, if a new user signs up on example.com, the automated call may be configured to ask the server to send out a welcome email.

more on:  hackernoon.com

About the author

Imran Pollob

Learn => Practice => Implement => Repeat

Add comment


Imran Pollob

Learn => Practice => Implement => Repeat

Get in touch