0
Does anyone know why this request via error 403 ajax and URL works normally?
instagram changed their api and I found this code that serves as a media pagination, when I request via ajax it from the error (403 - prohibited) and when I request via browser url works normally.
Can someone help me?
$.ajax({
url: 'https://www.instagram.com/graphql/query/?query_hash=472f257a40c653c64c666ce877d59d2b&variables={"id":"3937127813","first":12,"after":"AQDiT0FqVoPQ_0vSPXYUwAIBPCvt8Iw3KpsqYvixKzVDAstuZkHRyAMHo3NgnI2q1ygiLq-5PJ0TCe8daBbEy1RgkIVhY4aECXdwSZnwyWtpbQ"}',
method: "GET",
dataType: 'json',
success: function (retorno) {
console.log(retorno);
}
});
You need to be logged in or need to send cookies on request
– Valdeir Psr
Do you have an example for me? @Valdeirpsr
– Joao