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 "mode": "ingest_lists",
15 "agencies": [
16 "fbi",
17 "interpol",
18 "europol"
19 ],
20 "noticeTypes": [
21 "most_wanted",
22 "red"
23 ],
24 "includeRemoved": false,
25 "minRewardUsd": 0,
26 "queries": [
27 "test_query_placeholder"
28 ],
29 "minMatchScore": 75,
30 "maxItems": 10,
31 "proxyConfiguration": {
32 "useApifyProxy": true,
33 "apifyProxyGroups": [
34 "RESIDENTIAL"
35 ]
36 }
37};
38
39
40const run = await client.actor("jungle_synthesizer/wanted-list-scraper").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