Read the statement by Michael Teeuw here.
Not getting news
-
Re: MMM-NewsAPI
Hello, I’m trying to get Swedish news on the magic mirror.
But all the articles are 1 day old. When I increase the page size I get more news, but all of them are still 1 day old.I can also only get two news sites to work and not specified news so I get all categories from sport to economics.
I would like to limit it to just Global News and International news.I can also not specify either country or language, When I tried to change news to se it didnt work, so I changed it to us stil no luck. After that I just added a bunch of english news sites like bbc and cnn. But when I changed the language to en I got 0 news
Best Regards
William. -
@WilliamF
The free tier of NewsAPI provides only 1-day later news. When you want realtime news, you should pay.If you set config value
choice: "headlines"
, you can usecategory
, but;- Only available categories; business, entertainment, general, health, science, sports, technology.
- It cannot be used mixed with
sources
.
For the specified country or language, you can test it by yourself.
You can open the browser and navigate this. (ReplaceAPI_KEY
to yours. You can get your API_KEY on newspai.org site after login)- headlines;
https://newsapi.org/v2/top-headlines?country=se&apiKey=API_KEY
- everything;
https://newsapi.org/v2/everything?language=en&q=apple&apiKey=API_KEY
But the API doesn’t supportse
language.
For the usage of
country
,everything
endpoint doesn’t supportcountry
options. Only theheadlines
endpoint supports it. But you should know this;country: "se"
doesn’t mean “News from Swedish Press”, but rather similar to “Popular news in Sweden” or “news consumed commonly in/about Sweden”.