News

You can search over whole news index using api.datanews.io/v1/news endpoint.

Request
curl -XGET 'api.datanews.io/v1/news?q=SpaceX&from=2020-07-01' 
Response
{
  "status": 200,
  "numResults": 70,
  "hits": [
    {
      "url": "https://www.independent.co.uk/life-style/gadgets-and-tech/news/spacex-launch-date-starlink-satellites-when-watch-live-time-elon-musk-a9605231.html",
      "source": "independent.co.uk",
      "authors": [
        "Anthony Cuthbertson"
      ],
      "title": "How to watch SpaceX launch and Starlink satellite train in the sky",
      "pubDate": "2020-07-07T10:17:20+00:00",
      "country": "us",
      "language": "en",
      "description": "A 'string of bright pearls' will be visible in the skies above the UK this week, weather permitting",
      "imageUrl": "https://static.independent.co.uk/s3fs-public/thumbnails/image/2020/07/07/12/spacex-starlink-launch-watch.jpg",
      "content": "After several delays, SpaceX is planning to launch the latest batch of its Starlink satellites this week. ..."
    }
  ],
  ...
}

Parameters

The values of passed parameters should be url encoded.

# Parameter Description
1 q Search query, may consist of any number of keywords.
2 from Search news starting from date, including the date itself. Date format: yyyy-mm-dd.
3 to Search news up to date, including the date itself. Date format: yyyy-mm-dd.
4 source Domain name of the source (e.g. economist.com).
5 topic Topic of the media outlet that published the article, could be general, business, tech, entertainment, sports, science, health. Note, that this may be not the topic of a particular article, as media organizations may publish articles, that have multiple topics.
6 country Publisher's country. See the list of available countries.
7 language Article language. See the list of supported languages.
8 page Zero-based page index, must not be negative.
9 size Page size, could be 10, 25 or 100.
10 sortBy Sort by relevance or by date.
Jump to