getJSON Syntax Error?

I’m new to HTTP requests, and have tried accessing Instagram users’ follower count using the getJSON function

import {getJSON} from 'wix-fetch';

async function setIGFollowers (instagramID) {
    getJSON("https://www.instagram.com/" + instagramID + "/?__a=1")
    .then(json => {
        console.log(json);
        let followers = json.graphql.user.edge_followed_by.count
         $w("#text1").text = "Followers: " + followers
    })
    .catch(err => console.error(err))
}

It worked at first, but now overtime I try to run it again, the catch returns the error:

SyntaxError: The string did not match the expected pattern.

What could be the problem? What are the required string patterns for the getJSON function?


Important to Note: This code did work a few hours ago, and does still work at another function, getting YouTube channel subscriber counts, below:

async function setYTSubs (youtubeID) {
    getJSON("https://www.googleapis.com/youtube/v3/channels?part=statistics&id=" + youtubeID + "&key=[AUTH TOKEN]")
    .then(json => {
        let subs = json.items[0].statistics.subscriberCount
        $w("#text2").text = "Subscribers: " + subs
    })
}

Thank you for your time

Make sure that you stay on top of any companies code or API changes etc as this is a issue with Facebook and nothing to do with Wix, you just need to use different code from Instagram.

https://www.instagram.com/developer/
UPDATE: Starting October 15, 2019, new client registration and permission review on Instagram API platform are discontinued in favor of the Instagram Basic Display API .

https://stackoverflow.com/questions/45787021/how-to-use-instagram-graphql
Does this still work? Or has it been culled along with those listed at instagram.com/developer ?
2@Ollie unfortunately this too has been deprecated. Currently there is no easy method for accessing public data via a public json request.

You will now have to do your own research within Instagram API info and use their new code,
https://developers.facebook.com/docs/instagram-basic-display-api/
https://developers.facebook.com/docs/instagram-basic-display-api/guides/getting-profiles-and-media