The World News API gives you access to thousands of news sources in over 50 languages from over 150 countries.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
world_news_api: {
type: "app",
app: "world_news_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.worldnewsapi.com/search-news`,
params: {
"api-key": `${this.world_news_api.$auth.api_key}`,
text: `{your_text}`,
},
})
},
})
World News API uses API keys for authentication. When you connect your World News API account, Pipedream securely stores the keys so you can easily authenticate to World News API APIs in both code and no-code steps.
To retrieve your API Key,