1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sp_intended_usage": "Describe your intended use...",
12 "sp_improvement_suggestions": "Share your suggestions here...",
13 "sp_contact": "Share your email here...",
14 "searchMode": "bySearch",
15 "corporateNumbers": [],
16 "nameQuery": "",
17 "corporateType": "",
18 "prefectureCode": "",
19 "capitalMin": 0,
20 "capitalMax": 0,
21 "employeeMin": 0,
22 "employeeMax": 0,
23 "existingOnly": true,
24 "includeCertifications": false,
25 "includeProcurement": false,
26 "includeSubsidies": false,
27 "includePatents": false,
28 "includeCommendations": false,
29 "apiToken": "",
30 "maxItems": 50,
31 "proxyConfiguration": {
32 "useApifyProxy": false
33 }
34};
35
36
37const run = await client.actor("jungle_synthesizer/gbizinfo-japan-company-scraper").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47