1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targetActorId": "ryanclinton/fred-economic-data",
12 "testInput": {},
13 "testInputs": [],
14 "includeSchemaQualityAudit": true,
15 "includeAutoFixSuggestions": true,
16 "includePatchedInputPreview": true,
17 "outputProfile": "standard",
18 "policyPreset": "custom",
19 "baselineScope": "targetActor",
20 "includeDriftTimeline": false,
21 "includeReliabilityProfile": false,
22 "includeReplayPackage": true,
23 "proposedSchema": {},
24 "saveGoldenSuite": false,
25 "runGoldenSuite": false,
26 "inferSchemaWhenMissing": true,
27 "emitArtifacts": false,
28 "artifactFormats": [],
29 "webhookMode": "none"
30};
31
32
33const run = await client.actor("ryanclinton/actor-input-tester").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43