API
An API is a documented contract that lets one program call another, most commonly over HTTP with JSON request and response bodies.
Debugging an API usually means reading a payload carefully rather than reading code. Format the response, confirm it parses, and check the headers that describe how it should be interpreted. Continue with What is JSON? for the longer explanation.