1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "currentItems": [
12 {
13 "assignmentId": "A1",
14 "patentId": "US1001",
15 "assignee": "Acme Corp",
16 "cpc": "G06N",
17 "date": "2026-08-01"
18 },
19 {
20 "assignmentId": "A2",
21 "patentId": "US1002",
22 "assignee": "Acme Corp",
23 "cpc": "G06N",
24 "date": "2026-08-05"
25 },
26 {
27 "assignmentId": "A3",
28 "patentId": "US1003",
29 "assignee": "Beta Inc",
30 "cpc": "H04L",
31 "date": "2026-08-07"
32 }
33 ],
34 "previousItems": [
35 {
36 "assignmentId": "P1",
37 "patentId": "US0901",
38 "assignee": "Acme Corp",
39 "cpc": "G06F",
40 "date": "2026-05-01"
41 }
42 ]
43};
44
45
46const run = await client.actor("quanmatrix/patent-transfer-ma-signal-intelligence").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56