A
A
Alexander Pikeev2020-10-10 08:16:55
API
Alexander Pikeev, 2020-10-10 08:16:55

What format can APIs return?

I recently started working with JSON, everything is quite simple and clear. But what other formats can the API return? And how to determine what format it returns? I'm using Postman for requests and so far all the APIs I've tried (xkcd, VK) have returned JSON.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-10-10
@Baryon

The one that is described in the documentation for the API. And so anyone can, for example xml or plain text in general. Well, the API is not only REST, there is, for example, WinAPI and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question