Search worldwide news with code

Go to site

NewsAPI API Integrations

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

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    newsapi: {
      type: "app",
      app: "newsapi",
  async run({steps, $}) {
    return await axios($, {
      url: ``,
      headers: {
        Authorization: `Bearer ${this.newsapi.$auth.oauth_access_token}`,
      params: {
        country: `us`,
        category: `business`,
        apiKey: `${this.newsapi.$auth.api_key}`,


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.