with ScreenshotOne and Screenshot API?
Takes and returns an animated screenshot of the given site with specified options. See the documentation
Takes and returns a screenshot of the given site with specified options. See the documentation
ScreenshotOne API allows you to capture screenshots of web pages programmatically. It's a powerful tool you can leverage within Pipedream workflows to automate the process of taking screenshots, whether it's for archiving content, monitoring changes on websites, or capturing data for reporting. By combining ScreenshotOne with Pipedream's capabilities, you can easily integrate screenshot functionalities into multifaceted workflows, triggering actions in other apps, storing images, or processing the data further.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
screenshotone: {
type: "app",
app: "screenshotone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.screenshotone.com/take`,
headers: {
"Content-Type": `application/json`,
},
params: {
url: `{{your_url}}`,//such as https://pipedream.com
access_key: `${this.screenshotone.$auth.access_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
screenshot_api: {
type: "app",
app: "screenshot_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://shot.screenshotapi.net/v3/screenshot`,
params: {
token: `${this.screenshot_api.$auth.api_key}`,
url: `https://google.com`,
output: `JSON`,
},
})
},
})