GithubHelp home page GithubHelp logo

apilayer / mediastack Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 5.0 2 KB

Free Live News JSON REST API for Global News & Blog Articles

Home Page: https://mediastack.com

api cnn cnnapi foxnews livenews news newsapi newsarticles

mediastack's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mediastack's Issues

List of available sources?

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.

HTTP GET Request Parameter for "keywords" does not accept a "," or a "-"

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

Sending Get Request to http://api.mediastack.com/v1/news, throws a 307 (Internal Redirect) and redirects to https://...

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.

Screenshot 2022-09-29 8 45 14 AM

Search Keywords throwing Error 500 with INVALID_VALUE_FORMAT

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"
      ]
    }
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.