with ASIN Data API and Grain?
Fetches a specific recording by its ID from Grain, optionally including the transcript and intelligence notes. See the documentation
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
grain: {
type: "app",
app: "grain",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.grain.com/_/public-api/me`,
headers: {
Authorization: `Bearer ${this.grain.$auth.oauth_access_token}`,
},
})
},
})