const newsapi = new NewsAPI(MY_API_KEY)
my console tells me "No API key specified" yet the API key is there, i later copied the API key from the .env file, place it, and still got the same error
This isn't a NewsAPI issue if it worked fine when you pasted the API key into the parameter. Might just be that you hadn't added require('dotenv').config();
const NewsAPI = require('newsapi');
const newsapi = new NewsAPI(MY_API_KEY) my console tells me "No API key specified" yet the API key is there, i later copied the API key from the .env file, place it, and still got the same error