1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "lastName": "smith",
12 "searchMode": "name",
13 "boardCode": "25",
14 "state": "FL",
15 "searches": [
16 {
17 "lastName": "smith",
18 "boardCode": "25",
19 "state": "FL"
20 },
21 {
22 "lastName": "jones",
23 "boardCode": "25",
24 "state": "FL"
25 }
26 ],
27 "maxResults": 20,
28 "resultsPerPage": 50
29};
30
31
32const run = await client.actor("automation-lab/florida-dbpr-license-verification-scraper").call(input);
33
34
35console.log('Results from dataset');
36console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42