Fetch not returning correctly

Hello,

I’m trying to fetch the data that a Instagram Profile returns when you add a specific string at the of the path. It goes something like this:

https://instagram . com/USERNAME/?__a=1

The problem I’m facing is that when I fetch this URL in a software like Insomnia I get the correct result, but when fetching with wix-fetch I get redirected to Instagram’s login page and don’t get the correct results, only the login page.

Here’s the code I’m current working with:

import { fetch } from 'wix-fetch'

export async function getIGMetrics() {
    const url = "https://www.instagram.  com/USERNAME/?__a=1"
    const response = await fetch(url, {method: 'get'})

    return JSON.stringify(response)
}

Note: USERNAME is where I put my Instagram username