Does anyone know why this ajax request from error 403 and the URL works normally?
The instagram has changed their api and I found this code that serves as a pagination in the media, when I make the request via ajax it of error (403 - forbidden) and when I make the request via browser url it works normally. >
Can anyone 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);
}
});