Giter VIP home page Giter VIP logo

mediastack's Introduction

mediastack API

Stay up to date by following @apilayer on Twitter.

mediastack was built to collect and aggregate news data from thousands of global sources, convert it into a standardized and machine-readable format and deliver it to developers in straightforward and lightweight JSON format. The API is capable of searching millions of news articles in real-time and access historical news data across multiple categories, such as business, health, entertainment, sports, and many more.

Our news API offers news and blog articles from 50+ countries and in 13 languages, including Arabic, German, English, Spanish, French, Hebrew, Italian, Dutch, Norwegian, Portuguese, Russian, Swedish and Chinese. News data is collected from more than 7,500 global news sources and a total of 500 news data requests per month are free.

Sign up for a free API key to get started using news data in your website or application today.

API Features

  • Live News Data
  • Historical News Data
  • Filter Sources (Include & Exclude)
  • Filter Categories (Include & Exclude)
  • Filter Countries (Include & Exclude)
  • Filter Languages (Include & Exclude)
  • Filter Search Keywords (Include & Exclude)

Supported News Data

  • 7,500+ News Sources
  • 50+ Countries
  • 13 Languages
  • Thousands of News Articles per day

Sign up for the Free Plan to get live news data.

In-depth Documentation

An in-depth API documentation, including interactive code examples and extensive descriptions can be found at mediastack.com/documentation

Customer Support

Need any assistance? Get in touch with Customer Support.

Legal

All usage of the mediastack website, API, and services is subject to the mediastack Terms & Conditions and all annexed legal documents and agreements.

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  avatar

Watchers

 avatar  avatar  avatar  avatar

mediastack's Issues

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

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.

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.