AI Product Intelligence Engine
Pricing
from $0.50 / 1,000 deterministic checks unit
Go to Apify Store
AI Product Intelligence Engine
Pricing
from $0.50 / 1,000 deterministic checks unit
You can access the AI Product Intelligence Engine programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "products": [12 {13 "sku": "SGS24-256",14 "title": "Samsung Galaxy S24 256GB",15 "description": "Samsung Galaxy S24 with 128GB storage, stunning display and all-day battery.",16 "brand": "Samsung",17 "category": "Smartphones",18 "price": 899,19 "currency": "USD",20 "availability": "in stock",21 "gtin": "0123456789012"22 },23 {24 "sku": "SGS24-256-DUP",25 "title": "Samsung Galaxy S24 256GB",26 "description": "Flagship Samsung smartphone with 256GB of storage.",27 "brand": "Samsung",28 "category": "Smartphones",29 "price": 899,30 "currency": "USD",31 "availability": "in stock",32 "gtin": "0123456789012"33 },34 {35 "sku": "TOWEL-SET",36 "title": "Cotton Towel Set",37 "description": "Soft cotton towel set.",38 "category": "Home",39 "price": 24.5,40 "availability": "in stock"41 },42 {43 "sku": "TSHIRT-RED-M",44 "title": "Classic T-Shirt",45 "description": "Classic cotton t-shirt.",46 "brand": "Acme",47 "category": "Apparel",48 "price": 19.99,49 "group_id": "tshirt-classic",50 "attributes": {51 "color": "red",52 "size": "M"53 }54 },55 {56 "sku": "TSHIRT-RED-M-2",57 "title": "Classic T-Shirt",58 "description": "Classic cotton t-shirt.",59 "brand": "Acme",60 "category": "Apparel",61 "price": 19.99,62 "group_id": "tshirt-classic",63 "attributes": {64 "color": "red",65 "size": "M"66 }67 }68 ]69};70
71// Run the Actor and wait for it to finish72const run = await client.actor("tomko5peter/ai-product-intelligence-engine").call(input);73
74// Fetch and print Actor results from the run's dataset (if any)75console.log('Results from dataset');76console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);77const { items } = await client.dataset(run.defaultDatasetId).listItems();78items.forEach((item) => {79 console.dir(item);80});81
82// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use AI Product Intelligence Engine API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: