Gallery

var maxImages = 8; var count = 0; $(document).ready(function() { $.ajax({ url: 'https://www.instagram.com/scheunenwirtin/?__a=1', type: 'GET', success: function(data) { data.graphql.user.edge_owner_to_timeline_media.edges.forEach(post => { var url = "https://www.instagram.com/p/" + post.node.shortcode; var imageUrl = post.node.thumbnail_src; var text = post.node.edge_media_to_caption.edges[0].node.text; if (count < maxImages) { console.log("added image", count); $('.bx-instagram-container.profile').append(''); } count++; }); }, error: function(data) { console.log(data); } }); });

scheunenwirtin

$(document).ready(function() { var hashtag = 'scheunenwirtin'; $.ajax({ url: 'https://www.instagram.com/explore/tags/' + hashtag + '/?__a=1', type: 'GET', success: function(data) { data.graphql.hashtag.edge_hashtag_to_media.edges.forEach(post => { var url = "https://www.instagram.com/p/" + post.node.shortcode; var imageUrl = post.node.thumbnail_src; if (post.node.owner.id != "4041035030") { $('.bx-instagram-container.slide-images').append('
'); } }); }, error: function(data) { console.log(data); } }); });