You can call APIs by the following two sentences-

Call xyz API.

Fetch abc.

Examples -

  1. When user submits login form, call login API.
  2. In the gallery page, fetch unsplash images.

Both of these sentences do the same thing underneath. They allow you to construct an API call. When you click on any of the sentences, you will see the popup as below -

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f7ef2510-1ba4-4b27-80d8-54f45ca29577/Screenshot_2020-10-07_at_7.23.05_PM.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/940ab753-88be-4e48-b37b-576164e7784b/Screenshot_2020-10-07_at_7.23.22_PM.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5522931d-5719-469d-a18d-821f46dbf7bb/Screenshot_2020-10-07_at_7.23.38_PM.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2b100e39-4e65-4deb-82dc-08504d447af2/Screenshot_2020-10-07_at_7.23.50_PM.png

Most of these fields are pretty standard. For an API call, you would need a request URL, request method (GET, POST, PUT, DELETE, PATCH), request headers and request body. For a GET request, please leave the request body empty.