with OpenSea and HARPA AI?
Emit new filtered events for a collection. See the documentation
The OpenSea API provides a plethora of endpoints that lets you tap into the rich world of NFTs. From fetching detailed asset information to looking up user-specific items, the possibilities for crafting custom Pipedream workflows are vast. This allows you to automate alerts, synchronize NFT collections with external databases, or even analyze market trends programmatically.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
opensea: {
type: "app",
app: "opensea",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.opensea.io/api/v2/collections/boredapeyachtclub/stats`,
headers: {
"X-API-KEY": `${this.opensea.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
harpa_ai: {
type: "app",
app: "harpa_ai",
}
},
async run({steps, $}) {
const data = {
"action": "scrape",
"url": "https://harpa.ai/blog",
"grab": [{"selector":".PostList__postTitle","at":"all","label":"data"}],
"node": "4wwg"
}
return await axios($, {
method: "post",
url: `https://api.harpa.ai/api/v1/grid`,
headers: {
Authorization: `Bearer ${this.harpa_ai.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})