Next Gen media monitoring for breaking news & interesting content to help you hone in on your industry, competitors & brands
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
newslit: {
type: "app",
app: "newslit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://newslit-news-search.p.rapidapi.com/news`,
headers: {
"X-RapidAPI-Key": `${this.newslit.$auth.rapid_api_key}`,
"X-RapidAPI-Host": `newslit-news-search.p.rapidapi.com`,
},
params: {
"q": `{YOUR_NEWS_QUERY}`,
},
})
},
})
Newslit uses API keys for authentication. When you connect your Newslit account, Pipedream securely stores the keys so you can easily authenticate to Newslit APIs in both code and no-code steps.
To retrieve your Rapid API Key,