1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 "r/devops: 'Our Datadog bill hit $14,200/mo mostly from custom metrics cardinality—what are teams migrating to in 2026?' -> Intent: 96/100 (Active Migration, $14.2K/mo budget). Reply explains VictoriaMetrics + OpenTelemetry collector drop-rules.",
13 "HackerNews: 'We spend 6 hours a week fixing broken Playwright selectors whenever Shopify merchants change themes.' -> Intent: 92/100 (Engineering Pain). Reply details DOM-structural attribute anchoring + 0.3ms schema pre-gates.",
14 "r/SaaS: 'Apollo email bounce rate jumped to 18% on EU domains this month—need a live signal verifier before pushing to Instantly.' -> Intent: 95/100 (Immediate Tool Replacement). Reply shares live MX/catch-all + tech-stack trigger workflow."
15 ]
16};
17
18
19const run = await client.actor("ultra-liquid/reddit-buyer-intent-lead-radar").call(input);
20
21
22console.log('Results from dataset');
23console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
24const { items } = await client.dataset(run.defaultDatasetId).listItems();
25items.forEach((item) => {
26 console.dir(item);
27});
28
29