eli5 The difference between an API and a webhook?

270 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

With an API other computers can request information from your computer.

With a webhook, your computer will get information from another computer when it’s ready.

For example, I’ve got an API called WhatTimeIsIt where other computers can send requests and my computer will return the time.

Alternatively, I’ve got a webhook called TimeForDinner that will send my computer a message once dinner is ready.

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