1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "authorization": "I confirm I am authorized to process and deliver these 1688 offer records",
12 "sourceContext": "buyer_owned_1688_export",
13 "offers": [
14 {
15 "offerId": "1000406623486",
16 "offerUrl": "https://detail.1688.com/offer/1000406623486.html",
17 "previous": {
18 "offerId": "1000406623486",
19 "title": "USB-C cable wholesale pack",
20 "priceMin": 3.8,
21 "priceMax": 4.6,
22 "currency": "CNY",
23 "priceTiers": [
24 {
25 "beginAmount": 100,
26 "price": 4.6
27 },
28 {
29 "beginAmount": 500,
30 "price": 3.8
31 }
32 ],
33 "moq": 100,
34 "stock": 12000,
35 "unit": "piece",
36 "supplier": {
37 "id": "supplier-88",
38 "name": "Example Authorized Supplier",
39 "loginId": "seller88"
40 },
41 "badges": [
42 "verified-export"
43 ],
44 "promotions": []
45 },
46 "current": {
47 "offerId": "1000406623486",
48 "title": "USB-C cable wholesale pack",
49 "priceMin": 3.6,
50 "priceMax": 4.4,
51 "currency": "CNY",
52 "priceTiers": [
53 {
54 "beginAmount": 100,
55 "price": 4.4
56 },
57 {
58 "beginAmount": 500,
59 "price": 3.6
60 }
61 ],
62 "moq": 100,
63 "stock": 15000,
64 "unit": "piece",
65 "supplier": {
66 "id": "supplier-88",
67 "name": "Example Authorized Supplier",
68 "loginId": "seller88"
69 },
70 "badges": [
71 "verified-export"
72 ],
73 "promotions": [
74 "buyer-supplied summer tier"
75 ]
76 },
77 "sourceName": "Buyer-owned 1688 export",
78 "sourceLicense": "Buyer confirms authorization to process and deliver this export.",
79 "sourceRetrievedAt": "2026-08-13T00:00:00Z"
80 }
81 ]
82};
83
84
85const run = await client.actor("zinin/china-1688-supplier-monitor").call(input);
86
87
88console.log('Results from dataset');
89console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
90const { items } = await client.dataset(run.defaultDatasetId).listItems();
91items.forEach((item) => {
92 console.dir(item);
93});
94
95