1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "profiles": [
12 {
13 "nombre": "Perfil 2 · Tienda online de café, sociedad con 4 empleados",
14 "forma_juridica": "sociedad",
15 "empleados": 4,
16 "facturacion": 600000,
17 "ccaa": "MD",
18 "vende_a_consumidores": true,
19 "vende_a_empresas": true,
20 "vende_online": true,
21 "tiene_web": true,
22 "usa_software_facturacion": true,
23 "paga_profesionales": true,
24 "alquila_local": true,
25 "opera_intracomunitario": false,
26 "usa_ia_de_cara_al_publico": true,
27 "pone_envases_en_mercado": true,
28 "comercia_materias_eudr": true,
29 "vende_productos_fisicos": true,
30 "hace_email_marketing": true,
31 "tiene_videovigilancia": true,
32 "reparte_dividendos_o_paga_intereses": true,
33 "sociedad_unipersonal": true,
34 "activo": 350000
35 }
36 ]
37};
38
39
40const run = await client.actor("fernando.eurymar/normaradar").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50