with npm and Universal Summarizer by Kagi?
Emit new event with the latest count of downloads for an npm package. See the documentation
Emit new event when a new version of an npm package is published. See the documentation
Summarizes the content of a URL. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
universal_summarizer_by_kagi: {
type: "app",
app: "universal_summarizer_by_kagi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://kagi.com/api/v0/summarize`,
headers: {
"Authorization": `Bot ${this.universal_summarizer_by_kagi.$auth.api_key}`,
},
params: {
url: `https://www.youtube.com/watch?v=Y-4byg2pXL0`,
summary_type: `summary`,
engine: `muriel`,
},
})
},
})