Instagram API — curl or ajax?

Requests for certain data is best done through ajax or curl? Does it matter?
For example, authorization, receipt of user data or media...
June 10th 19 at 15:38
4 answers
June 10th 19 at 15:40
If we are talking about APIs, there are normal http requests, to access the request includes the token, the response comes in JSON format. And what to do curlом or other means is not important.
If we are talking about parsing, then there really is the opportunity to work with both html and json. For example, any channel type's a JSON version (unofficial of course) that can be picked up at URL:

JSON resource to get more profitable because:
1. It is smaller
2. It easier to parse
June 10th 19 at 15:42
I do not know how Instagram itself operates but if possible both, I would prefer to http requests though, because some servers block curl, such as popular Timeweb
June 10th 19 at 15:44
depends on where you need the data
ajax is an asynchronous request on the client
June 10th 19 at 15:46
No difference
Where does Ajax do not understand

Find more questions by tags InstagramAPIAJAX