1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sp_contact": "Share your email here...",
12 "searchMode": "bySearch",
13 "corporateNumbers": [],
14 "nameQuery": "",
15 "corporateType": "",
16 "prefectureCode": "13",
17 "capitalMin": 0,
18 "capitalMax": 0,
19 "employeeMin": 0,
20 "employeeMax": 0,
21 "existingOnly": true,
22 "includeCertifications": false,
23 "includeProcurement": false,
24 "includeSubsidies": false,
25 "includePatents": false,
26 "includeCommendations": false,
27 "apiToken": "",
28 "maxItems": 50
29};
30
31
32const run = await client.actor("jungle_synthesizer/gbizinfo-japan-company-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