The World News API gives you access to thousands of news sources in over 50 languages from over 150 countries.
Emit new event for each message posted to one or more channels in a Discord server
Emit new event whenever recent news are published. Calling this endpoint requires 1 point per page, up to 1000 news. See the docs here
Emit new event for each command posted to one or more channels in a Discord server
Extract a news article from a website to a well structure JSON object. See the docs here. Calling this endpoint requires 1 point, plus 2 points if analyze is true.
Retrieve the latitude and longitude of a location name. See the docs here. Calling this endpoint requires 1 point.
Search and filter news. See the docs here. Calling this endpoint requires 1 point
Send a simple or structured message (using embeds) to a Discord channel
The World News API provides access to news articles from around the world in real-time. With it, you can fetch the latest news by category, country, language, and keyword. In Pipedream, this powerful API integrates into workflows, allowing you to automate actions based on current events, monitor specific topics, and even enrich your applications with timely content.
import { 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}`,
},
})
},
})
The Discord API interacts seamlessly with Pipedream, empowering you to craft customized automations and workflows for your Discord server. With this powerful integration, you can automate tasks like message posting, user management, and notifications, based on a myriad of triggers and actions from different apps. These automations can enhance the Discord experience for community moderators and members, by synchronizing with external tools, organizing community engagement, and streamlining notifications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord: {
type: "app",
app: "discord",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
Authorization: `Bearer ${this.discord.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})