with Tavily and ASIN Data API?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tavily: {
type: "app",
app: "tavily",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.tavily.$auth.api_key}`,
"query": "What is Pipedream?",
"include_domains": ["pipedream.com"]
}
return await axios($, {
method: "post",
url: `https://api.tavily.com/search`,
data,
})
},
})
The ASIN Data API lets you tap into detailed product data from Amazon, including price, rank, reviews, and more. It's a treasure trove for e-commerce pros, marketers, or data analysts looking to enrich their datasets with real-time insights from the world’s largest online retailer. On Pipedream, you can automate workflows using this API to track product changes, analyze market trends, or even alert you when specific conditions are met.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
asin_data_api: {
type: "app",
app: "asin_data_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.asindataapi.com/request`,
params: {
api_key: `${this.asin_data_api.$auth.api_key}`,
amazon_domain: `amazon.com`,
asin: `B073JYC4XM`,
type: `product`,
},
})
},
})