Getting subscription error message despite having valid RapidAPI key header

I’m working with a word generation API from RapidAPI and running into a frustrating issue. Even though I have my API key properly set in the headers, I keep getting an error saying I’m not subscribed to the service.

I grabbed the sample code directly from the API documentation page while logged into my account. The key should be valid since it was auto-populated. But every time I run my Node.js script, instead of getting random words back, I just see the subscription error.

Has anyone else run into this problem? What am I missing here?

const axios = require('axios');

const config = {
    method: 'GET',
    headers: {
        'X-RapidAPI-Key': 'MY-API-KEY-HERE',
        'X-RapidAPI-Host': 'word-generator3.p.rapidapi.com'
    }
};

axios.get('https://word-generator3.p.rapidapi.com/generateWords?quantity=3&length=6', config)
    .then(result => {
        console.log(result.data);
    })
    .catch(error => {
        console.log('Error:', error.response.data);
    });

The error I’m seeing:

{ message: ‘You are not subscribed to this API.’ }

yeah, make sure u subscribed to that API on ur rapidapi dashboard. even if the key is there, u gotta hit subscribe first. had this same thing with another API too.

Had this exact issue last month with a different RapidAPI service. Turned out I’d subscribed to the wrong pricing tier. RapidAPI often has multiple subscription options for the same API - free, basic, pro, etc. Each tier has different endpoint access and rate limits. Check you’re subscribed to the right plan that actually includes the endpoint you’re trying to hit. Also verify you didn’t accidentally subscribe to a similar API with a slightly different name. The word generation category has tons of APIs that look nearly identical. Go back to the exact API page where you got the code and make sure your subscription is active there, not just showing up on your general dashboard.

Same thing happened to me with RapidAPI services. Their subscription status takes a few minutes to kick in after you hit subscribe. Wait 10-15 minutes then try your code again. Also check you’re using the right endpoint URL - the docs sometimes show a different version than what your subscription covers. Still getting errors? Log into your RapidAPI dashboard and make sure the subscription shows active under API subscriptions. Having the auto-populated key doesn’t mean your subscription’s actually working yet.