apilayer / mediastack Goto Github PK
View Code? Open in Web Editor NEWFree Live News JSON REST API for Global News & Blog Articles
Home Page: https://mediastack.com
Free Live News JSON REST API for Global News & Blog Articles
Home Page: https://mediastack.com
checked with language=tamil and got 500 error as response which should be 400 bad_request
Is there a list of available news sources? I'm trying to integrate a very specific set of US-based search results, but am unsure of what sources exactly I can draw from.
Image quality I am getting from API is of quite low resolution
Example URL
Is there any way to get image with reasonable quality
Hello,
I signed up for a regular plan exclusively for historical data. While any call to the API without specifying dates works, once a date is specified, I get the following response:
Eample Input:
https://api.mediastack.com/v1/news?access_key=XXX&date=2020-01-01,2020-12-31&sources=cnn&lanuage=en&country=en&keywords=tennis (key has been blinded here for security)
Output:
"{"pagination":{"limit":25,"offset":0,"count":0,"total":0},"data":[]}"
the HTTP GET Request Parameter for "keywords" does not accept a "," or a "-" (separator or exclusion)
this returns a JSON error
GET /v1/news?access_key=1234&countries=us,au&languages=en&sources=business,-sports&sources=cnn,-bbc&date=2020-8-24,2020-12-31&limit=1&keywords=virus,-boston HTTP/1.0
but this is OK (space between keyword escaped with %20)
GET /v1/news?access_key=1234&countries=us,au&languages=en&sources=cnn,-bbc&keywords=virus%20boston&limit=1 HTTP/1.0
Title. I only have the free plan, and I do not have the budget for any other plan, and when I send a get request with AXIOS to the http link, the server internally redirects (307) to the https link, which does not work.
The request is coming from an extension, if that has to do with anything.
It also worked on one computer, and I switched to a different computer and it stopped working.
This is my api request below(api key is hidden for safety concern):
https://api.mediastack.com/v1/news?access_key=${my-api-key}&language=zh
Actually, it's not only language has problem, no matter what I set for end point, this api seems to response me same results, and it looks like the same no matter how I restrict the search parameter.
I'm using a standard plans
Running the API with multiple keywords throws an error 500 even with the test/demo call from the documentation IE:
http://api.mediastack.com/v1/news?access_key=<API_KEY>&keywords=virus,-corona
Yes API key hidden in the above example.
Response from the API:
{
"error": {
"code": "validation_error",
"message": "Validation error",
"context": {
"keywords": [
"INVALID_VALUE_FORMAT"
]
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.