eli5 The difference between an API and a webhook?

262 views

I am having a little difficulty in understanding what are APIs and how do they work. I have heard about them a lot like REST APIs but don’t understand what they are. I am also confused about webhooks and web sockets. I am not from computer science background.

In: 14

4 Answers

Anonymous 0 Comments

Let’s say you’re a kid playing outside waiting for your mom to make dinner. An API call would be popping your head in to ask whether dinner is ready. A webhook would be waiting until your mom calls your name to know that dinner is ready.

An API call is about proactively getting information while a webhook is about reactively being notified that something has changed.

There are more specifics but I wanted to provide a ELI5 beyond the other answers already given

You are viewing 1 out of 4 answers, click here to view all answers.