You open a train-ticket app on your phone and tap a date. In under a second it shows which seats are free. Here is the odd thing: the app is not the railway. It does not own the seat records, and it was written by people who have never seen the railway's database. Yet it asks a question and gets a clean answer.
Now a second picture. A shop's website sends you to your mobile wallet to pay. You approve the payment on your phone, and a few seconds later the shop's page says "Payment received". The wallet company never opened the shop's page, so how did the shop's server learn that you had paid? This time the wallet made a call, to the shop. And a third: you type your email into a sign-up form, move to the next box, and a red line appears, "Already registered", before you pressed Submit and without the page reloading. Something asked a server a question behind your back.
These are one idea seen from different sides. An API (Application Programming Interface) is a written agreement that lets one program ask another program for something, without knowing how the other works inside. The page that asks in the background is AJAX. This chapter teaches both, in the form the web uses them. Bank and BPSC papers ask about it often, and once you can read one real API call line by line, the rest stops being vocabulary.
By the end you will be able to say what an API is and how a web service differs from one, and write the answer the exam wants. You will design the addresses and methods of a REST API for a small library, name its six constraints and say what each buys, and choose the right status code for an API's replies, including 201, 204, 400, 401, 403, 404, 409 and 429.