1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchKeywords": [
12 "source-backed signal",
13 "buyer fit"
14 ],
15 "taskIntent": "buyer-ready-product-run",
16 "sourceMode": "startUrls",
17 "outputMode": "buyer-ready-records",
18 "startUrls": [
19 {
20 "url": "https://patents.google.com/patent/US11819663B2"
21 },
22 {
23 "url": "https://patents.google.com/patent/US11285329B2"
24 },
25 {
26 "url": "https://patents.google.com/patent/US11135376B2"
27 }
28 ],
29 "requestTimeoutSecs": 30,
30 "maxRequestRetries": 2,
31 "sinceLastRun": false,
32 "deltaMode": true
33};
34
35
36const run = await client.actor("zentrafoundry/uspto-trademark-patent-watcher").call(input);
37
38
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46