CurseForge V2 API library primarily typed to support usage with WoW but should work for any of their games.
Source: https://docs.curseforge.com/#getting-started
Using npm:
$ npm install curseforge-v2
The client requires a CurseForge API key. You can learn more about getting a key here: https://support.curseforge.com/en/support/solutions/articles/9000208346-about-the-curseforge-api-and-how-to-apply-for-a-key
Getting featured addons
async function getFeaturedMods() {
const client = new CFV2Client({ apiKey: 'YOUR_API_KEY' });
const result = await client.getFeaturedMods({
gameId: 1,
gameVersionTypeId: CF2WowGameVersionType.Retail,
excludedModIds: [],
});
}