Anyone can explain an api with example with api call

Api making and api calling simple example with any two fields