Shopify partner API get the app list of active app are installed.
here is node js sample code to get the partner api.
let url = `https://partners.shopify.com/${partnerid}/api/2023-01/graphql.json`;
console.log(" Partner API endpoint -- ", url)
const query = `
query {
publicApiVersions {
displayName
handle
}
}
`;
try {
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/graphql',
'X-Shopify-Access-Token': accessToken
},
// body: JSON.stringify(query)
body: query
};
const response = await fetch(url, options);
console.log(" response - ", response)
const result = await response.json();
console.log(JSON.stringify(result) );
// return app_id;
} catch (error) {
console.error(error);
}