1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "lookbackDays": 30,
12 "maxDiscoveryChargeUsd": 0.5,
13 "sourceMode": "list",
14 "itemsList": [
15 {
16 "source": "dgft_notification",
17 "number": "47",
18 "year": "2026-27",
19 "title": "Amendment in Export Policy Condition under HSN 1006 of Schedule-II (Export Policy), ITC(HS) 2022",
20 "date": "2026-11-09",
21 "pdfUrl": "https://content.dgft.gov.in/Website/dgftprod/cb4cd780-0df6-435b-a4dc-b7d8b7ef99d2/Nofication%2047,%20English.pdf",
22 "sourceUrl": "https://www.dgft.gov.in/CP/?opt=notification",
23 "id": "a89131c70032fa94-sample",
24 "type": "restriction",
25 "hsCodes": [
26 "1006"
27 ],
28 "productsFromHs": [
29 "rice"
30 ],
31 "textHash": "6ed925c2c0852a82"
32 },
33 {
34 "source": "dgft_notification",
35 "number": "49/2026-27",
36 "year": "2026-27",
37 "title": "Amendment in Export Policy of Waste and Scrap of Primary Cells, Primary Batteries and Electric Accumulators (Lithium-Ion Battery Black Mass) under ITC (HS) 85491400 - regarding.",
38 "date": "2026-11-10",
39 "pdfUrl": "https://content.dgft.gov.in/Website/dgftprod/58145d8f-19de-4e3a-b7ba-95fdb2ed5ea4/Notification%20No.%2049%20of%202026-2027.pdf",
40 "sourceUrl": "https://www.dgft.gov.in/CP/?opt=notification",
41 "id": "0cd4c29cc2023fca-sample",
42 "type": "restriction",
43 "hsCodes": [
44 "85491400"
45 ],
46 "products": [
47 "lithium-ion",
48 "black mass",
49 "battery",
50 "scrap"
51 ],
52 "productsFromHs": [
53 "e-waste / battery scrap"
54 ],
55 "textHash": "1f56831f82221511"
56 },
57 {
58 "source": "apeda_trade_notice",
59 "year": "2026",
60 "title": "Export of Sugar to EU under Tariff Rate Quota (TRQ) for the year 2026-27",
61 "date": "2026-10-16",
62 "pdfUrl": "https://apeda.gov.in/sites/default/files/trade_notice/Trade_Notice_for_EU_TRQ_16_October_2026.pdf",
63 "sourceUrl": "https://apeda.gov.in/TradeNotice",
64 "id": "44ab10f86ebf19da-sample",
65 "type": "restriction",
66 "products": [
67 "sugar"
68 ],
69 "textHash": "3c46a98b0ce1f85c"
70 },
71 {
72 "source": "dgft_trade_notice",
73 "number": "35/2026-27",
74 "year": "2026-27",
75 "title": "Amendments Guidelines for Market Access Support under Export Promotion Mission (EPM) — Niryat Disha",
76 "date": "2026-11-17",
77 "pdfUrl": "https://content.dgft.gov.in/Website/dgftprod/d185b3f0-b0a9-4f19-a455-862d6419e6b6/Trade%20Notice-%20MAS%20Amendment%2017.11.2026%20digitally%20signed.pdf",
78 "sourceUrl": "https://www.dgft.gov.in/CP/?opt=trade-notice",
79 "id": "468e2bd3ff3b5349-sample",
80 "type": "incentive_rate",
81 "effectiveFrom": "2026-11-17",
82 "pdfText": "Government of India Ministry of Commerce and Industry Department of Commerce Directorate General of Foreign Trade Vanijya Bhawan, New Delhi Trade Notice No. 35/2026-27 Dated: 17th November, 2026 Subject: Amendments Guidelines for Market Access Support under Export Promotion Mission (EPM) — Niryat Disha – regarding In continuation to Trade Notice No. 19/2025-26 dated 31st December 2025 and Trade No",
83 "textHash": "77f90ddbf4d16c20"
84 },
85 {
86 "source": "dgft_public_notice",
87 "number": "41/2026-27",
88 "year": "2026-27",
89 "title": "Opening of one-time window for submission of applications for allocation of available quantity under TRQ Scheme for import of raw sugar - reg.",
90 "date": "2026-11-18",
91 "pdfUrl": "https://content.dgft.gov.in/Website/dgftprod/c8ccf867-ae1e-41ab-8f93-3d671115a128/PN-41_0001.pdf",
92 "sourceUrl": "https://www.dgft.gov.in/CP/?opt=public-notice",
93 "id": "35d5103112a5dd8a-sample",
94 "type": "restriction",
95 "products": [
96 "sugar"
97 ],
98 "textHash": "490d82a7908c93fa"
99 }
100 ],
101 "discoveryInput": {}
102};
103
104
105const run = await client.actor("rich_minds/trade-regulation-watch-ai").call(input);
106
107
108console.log('Results from dataset');
109console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
110const { items } = await client.dataset(run.defaultDatasetId).listItems();
111items.forEach((item) => {
112 console.dir(item);
113});
114
115