NewsAPI

Search worldwide news with code

Go to site
Explore
/
Apps
/
NewsAPI

NewsAPI API Integrations

Build and run workflows using the NewsAPI API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://newsapi.org/v2/top-headlines`,
  headers: {
    Authorization: `Bearer ${auths.newsapi.oauth_access_token}`,
  },
  params: {
    country: `us`,
    category: `business`,
    apiKey: `${auths.newsapi.api_key}`,
  },
})

Authentication

NewsAPI uses API keys for authentication. When you connect your NewsAPI account, Pipedream securely stores the keys so you can easily authenticate to NewsAPI APIs in both code and no-code steps.

Get your API key in your account settings.