The World News API gives you access to thousands of news sources in over 50 languages from over 150 countries.
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 when a new batch is completed in OpenAI. See the documentation
Emit new event when a new file is created in OpenAI. See the documentation
Emit new event when a new fine-tuning job is created in OpenAI. See the documentation
Emit new event every time a run changes its status. See the documentation
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.
The Chat API, using the gpt-3.5-turbo
or gpt-4
model. See the documentation
Retrieve the latitude and longitude of a location name. See the docs here. Calling this endpoint requires 1 point.
Summarizes text using the Chat API. See the documentation
Classify items into specific categories using the Chat API. See the documentation
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}`,
},
})
},
})
OpenAI provides a suite of powerful AI models through its API, enabling developers to integrate advanced natural language processing and generative capabilities into their applications. Here’s an overview of the services offered by OpenAI's API:
Use Python or Node.js code to make fully authenticated API requests with your OpenAI account:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openai: {
type: "app",
app: "openai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.openai.com/v1/models`,
headers: {
Authorization: `Bearer ${this.openai.$auth.api_key}`,
},
})
},
})