1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "companies": [
12 {
13 "name": "Bright Smile Dental Clinic",
14 "description": "A friendly dental clinic offering checkups, cleanings, and orthodontist services for the whole family.",
15 "tags": [
16 "dental",
17 "healthcare"
18 ]
19 },
20 {
21 "name": "DentaFlow",
22 "description": "SaaS practice management software platform for dentists and dental clinics, built as a cloud app with an API.",
23 "tags": [
24 "software",
25 "saas"
26 ]
27 },
28 {
29 "name": "Joe's Diner",
30 "description": "A full-service, sit-down restaurant serving breakfast, lunch and dinner off a bistro menu.",
31 "tags": [
32 "restaurant"
33 ]
34 }
35 ]
36};
37
38
39const run = await client.actor("that_red_bird/industry-classifier").call(input);
40
41
42console.log('Results from dataset');
43console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49