Search worldwide news with code

Locate articles and breaking news headlines from news sources and blogs across the web with our JSON API

Get API key
All articles about Tesla from the last month
GET
https://newsapi.org/v2/everything?q=tesla&from=2024-10-01&sortBy=publishedAt&apiKey=b19c5f21762e489f8badaa3df5250616
{
    status:"ok",
    totalResult:5752,
    articles:[
      {
        source:{
          id:null,
          name:"Android Authority"
        },
        author:"Hadlee Simons",
        title:"Musk could release Tesla Phone if Apple, Google do this",
        description:"Tesla CEO Elon Musk has claimed that the company won't make a smartphone unless Apple and Google did 'really bad things.'",
        url:"https://www.androidauthority.com/musk-tesla-phone-interview-3496754/",
        urlToImage:"https://www.androidauthority.com/wp-content/uploads/2023/01/Person-driving-Tesla-with-logo-showing.jpg",
        publishedAt:"2024-11-05T09:10:28Z",
        content:"<ul><li>Tesla isnt planning to release a smartphone, CEO Elon Musk said during a podcast.</li><li>Musk said Tesla would make a phone if Google and Apple censored apps and acted as gatekeepers.</li><l… [+2987 chars]"
      },
      {
        source:{
          id:"the-irish-times",
          name:"The Irish Times"
        },
        author:"Chris Dolmetsch",
        title:"Elon Musk's $1m giveaway in run-up to US election survives legal challenge",
        description:"US election: Pennsylvania judge rejects request by Philadelphia district attorney to halt contest aimed at voters in swing states",
        url:"https://www.irishtimes.com/world/us/2024/11/05/elon-musks-1-million-giveaway-in-run-up-to-us-election-survives-legal-challenge/",
        urlToImage:"https://www.irishtimes.com/resizer/v2/O4WKZCKE4REGHAUKIRTOQQSEAE.jpg?smart=true&auth=6c648cbd09ed2efd552550c9a3ae526edf99083b48e590d37a9d0a702f350b66&width=1200&height=630",
        publishedAt:"2024-11-05T07:40:07Z",
        content:"Elon Musks daily million-dollar voter giveaway survived a legal challenge by Philadelphias district attorney in advance of Tuesdays US presidential election as a judge in the crucial battleground sta… [+3469 chars]"
      }
    ]
}
Top business headlines in the US
GET
https://newsapi.org/v2/everything?q=tesla&from=2024-10-01&sortBy=publishedAt&apiKey=b19c5f21762e489f8badaa3df5250616
{
    status:"ok",
    totalResult:5752,
    articles:[
      {
        source:{
          id:null,
          name:"Android Authority"
        },
        author:"Hadlee Simons",
        title:"Musk could release Tesla Phone if Apple, Google do this",
        description:"Tesla CEO Elon Musk has claimed that the company won't make a smartphone unless Apple and Google did 'really bad things.'",
        url:"https://www.androidauthority.com/musk-tesla-phone-interview-3496754/",
        urlToImage:"https://www.androidauthority.com/wp-content/uploads/2023/01/Person-driving-Tesla-with-logo-showing.jpg",
        publishedAt:"2024-11-05T09:10:28Z",
        content:"<ul><li>Tesla isnt planning to release a smartphone, CEO Elon Musk said during a podcast.</li><li>Musk said Tesla would make a phone if Google and Apple censored apps and acted as gatekeepers.</li><l… [+2987 chars]"
      },
      {
        source:{
          id:"the-irish-times",
          name:"The Irish Times"
        },
        author:"Chris Dolmetsch",
        title:"Elon Musk's $1m giveaway in run-up to US election survives legal challenge",
        description:"US election: Pennsylvania judge rejects request by Philadelphia district attorney to halt contest aimed at voters in swing states",
        url:"https://www.irishtimes.com/world/us/2024/11/05/elon-musks-1-million-giveaway-in-run-up-to-us-election-survives-legal-challenge/",
        urlToImage:"https://www.irishtimes.com/resizer/v2/O4WKZCKE4REGHAUKIRTOQQSEAE.jpg?smart=true&auth=6c648cbd09ed2efd552550c9a3ae526edf99083b48e590d37a9d0a702f350b66&width=1200&height=630",
        publishedAt:"2024-11-05T07:40:07Z",
        content:"Elon Musks daily million-dollar voter giveaway survived a legal challenge by Philadelphias district attorney in advance of Tuesdays US presidential election as a judge in the crucial battleground sta… [+3469 chars]"
      }
    ]
}
All articles mentioning Apple in the last week
GET
https://newsapi.org/v2/everything?q=tesla&from=2024-10-01&sortBy=publishedAt&apiKey=b19c5f21762e489f8badaa3df5250616
{
    status:"ok",
    totalResult:5752,
    articles:[
      {
        source:{
          id:null,
          name:"Android Authority"
        },
        author:"Hadlee Simons",
        title:"Musk could release Tesla Phone if Apple, Google do this",
        description:"Tesla CEO Elon Musk has claimed that the company won't make a smartphone unless Apple and Google did 'really bad things.'",
        url:"https://www.androidauthority.com/musk-tesla-phone-interview-3496754/",
        urlToImage:"https://www.androidauthority.com/wp-content/uploads/2023/01/Person-driving-Tesla-with-logo-showing.jpg",
        publishedAt:"2024-11-05T09:10:28Z",
        content:"<ul><li>Tesla isnt planning to release a smartphone, CEO Elon Musk said during a podcast.</li><li>Musk said Tesla would make a phone if Google and Apple censored apps and acted as gatekeepers.</li><l… [+2987 chars]"
      },
      {
        source:{
          id:"the-irish-times",
          name:"The Irish Times"
        },
        author:"Chris Dolmetsch",
        title:"Elon Musk's $1m giveaway in run-up to US election survives legal challenge",
        description:"US election: Pennsylvania judge rejects request by Philadelphia district attorney to halt contest aimed at voters in swing states",
        url:"https://www.irishtimes.com/world/us/2024/11/05/elon-musks-1-million-giveaway-in-run-up-to-us-election-survives-legal-challenge/",
        urlToImage:"https://www.irishtimes.com/resizer/v2/O4WKZCKE4REGHAUKIRTOQQSEAE.jpg?smart=true&auth=6c648cbd09ed2efd552550c9a3ae526edf99083b48e590d37a9d0a702f350b66&width=1200&height=630",
        publishedAt:"2024-11-05T07:40:07Z",
        content:"Elon Musks daily million-dollar voter giveaway survived a legal challenge by Philadelphias district attorney in advance of Tuesdays US presidential election as a judge in the crucial battleground sta… [+3469 chars]"
      }
    ]
}

Trusted by over 500,000 developers, including at

trusted-0trusted-1trusted-2trusted-3trusted-4trusted-5

News API is a simple, easy-to-use REST API that returns JSON search results for current and historic news articles published by over 150,000 worldwide sources.

benefit-0

Worldwide Scale

Search through hundreds of millions of articles in 14 languages from 55 countries.

benefit-1

Easy Integration

Get JSON results with simple HTTP GET requests, or use one of the SDKs available in your language.

benefit-2

Free for Development

Jump right into a trial if you're in development. No credit card required.

Use powerful search and filter options
keywordOverlaykeyword

Keywords and phrases

  • checkSearch with singular keywords, or surround complete phrases with quotation marks for exact-match: q=tesla or q="elon musk"
  • checkSpecify words which must appear in articles, and words that must not, to remove irrelevent results: q=gamestop +stonks -sell
  • checkBoolean operators AND / OR / NOT and brackets are supported so you can do this: q=(crypto AND bitcoin) NOT ethereum
  • checkLimit your search specifically within titles, or content: qInTitle="title search"
dateOverlaydate

Dates and timeframes

  • checkInterested in articles less than 2 weeks old? from=2024-10-07
  • checkFocus on news from a specific period in the past from=2022-10-05&to=2022-10-19
  • checkOr leave blank to get the up-to-the-minute latest news
publishOverlaypublish

Publishers

  • checkLimit your searches to a single publisher by entering their domain name domains=techcrunch.com
  • checkOr a selection of publishers: domains=techcrunch.com,engadget.com,thenextweb.com
  • checkAnd remove unwanted publishers: excludeDomains=breitbart.com,clickhole.com
languageOverlaylanguage

Languages

  • checkLimit your search to one of 14 languages: language=en, language=jp

“Ascender AI has a mission to apply AI to the media, and NewsAPI is one of our most valuable resources. Ascender is redefining how users interact with complex information, and the NewsAPI feed is an essential showcase for our technologies.”

keyword
Braddock Gaskill
CEO, Ascender AI

“News API has been the integral element allowing us to offer relevant and timely political news to our users - allowing them to take immediate action to contact their representatives using generated call scripts based on the articles they read.”

keyword
Brandon Peterson
Founder at Capitol Call

“NewsAPI is a key input into our NLP algorithms which scan the world of unstructured data to infer environmental, social and governance factors for companies and countries. The service is blazing fast and extremely intuitive.”

keyword
Qayyum Rajan
CEO & Data Engineer at ESG Analytics