with Klazify and Data Stores?
Submit a website URL for categorization by the API. See the documentation
Add or update a single record in your Pipedream Data Store
Get information about a company's domain. See the documentation
Add or update multiple records to your Pipedream Data Store
Get the expiration date of a domain. See the documentation
The Klazify API offers a way to classify websites into categories, discover company logo URLs, and access social media links from a domain. When integrated into Pipedream, this functionality can expand, allowing you to automate workflows for marketing analysis, content filtering, or business intelligence. You can trigger actions based on website categories, enrich CRM data with company logos, or compile lists of social media profiles for outreach.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
klazify: {
type: "app",
app: "klazify",
}
},
async run({steps, $}) {
const data = {
"url": `{your_url}`,
}
return await axios($, {
method: "post",
url: `https://www.klazify.com/api/categorize`,
headers: {
Authorization: `Bearer ${this.klazify.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
data,
})
},
})
Data Stores are a key-value store that allow you to persist state and share data across workflows. You can perform CRUD operations, enabling dynamic data management within your serverless architecture. Use it to save results from API calls, user inputs, or interim data; then read, update, or enrich this data in subsequent steps or workflows. Data Stores simplify stateful logic and cross-workflow communication, making them ideal for tracking process statuses, aggregating metrics, or serving as a simple configuration store.
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})