with News API and Unthread?
Search through millions of articles from over 150,000 large and small news sources and blogs. See the documentation
Retrieve live top and breaking headlines for a category, single source, multiple sources, or keywords. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    news_api: {
      type: "app",
      app: "news_api",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://newsapi.org/v2/everything`,
      headers: {
        "X-Api-Key": `${this.news_api.$auth.api_key}`,
      },
      params: {
        "q": `Computer Science`,
      },
    })
  },
})
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    unthread: {
      type: "app",
      app: "unthread",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      method: "post",
      url: `https://api.unthread.io/api/users/list`,
      headers: {
        "X-Api-Key": `${this.unthread.$auth.api_key}`,
      },
    })
  },
})