Need help with Integrating API

Hi, I am new to coding and I need help with integrating an API into my website . I am Using this Rapid API.

This is the URL on which I am trying to implement the API

I have referred to this Article of wix .
Here is the code -

//Page code

import { Getgstininfo } from ‘backend/serviceModule’ ;

//…

export function submit_click ( event ) {
Getgstininfo ( $w ( “#gstin” ). value )
. then ( pan => $w ( “#result” ). text = pan );
}

This is the backend code -

const options = {
method : ‘GET’ ,
headers : {
‘Content-Type’ : ‘application/json’ ,
‘X-RapidAPI-Host’ : ‘gst-return-status.p.rapidapi.com’ ,
‘X-RapidAPI-Key’ : ‘0c7c5d6c69mshe860bf44005e15bp11342ajsnc22630d2c531’
}
};

fetch ( ‘https://gst-return-status.p.rapidapi.com/gstininfo/27AAJCM9929L1ZM’ , options )
. then ( response => response . json ())
. then ( response => console . log ( response ))
. catch ( err => console . error ( err ));

I have stored my Api Key in the secret manager with the name Getgstininfo

But still nothing is working… Pls help