Once we have called the API using the corresponding URL, parameters and identification, we will receive the information that we have asked for. This information has to have a format which is easy and convenient to be processed by an computer program. Normally, there are two formats of possible results: XML and JSON. In both cases, the result from the API will be a document on which the answer that we are looking for will be shown using labels. The type of response and the labels used vary according to the API.

For example, if we call the API that finds the masculine form of a femenine word, the call and the JSON return for the word “actriz” will be as follow:

"palabra": "actor",
"error": 0

From this response, the programmer can obtain the information that he needs and incorporate it into his own program.

Share →