1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "products": [
10 "cotton t-shirt",
11 "hoodie",
12 "polo shirt",
13 ],
14 "sellerProfile": "Sunrise Knit Exports, Tiruppur, India - manufacturer. T-shirts and polo shirts: cotton, 160-220 gsm. Hoodies and sweatshirts: cotton or cotton-polyester fleece, 280-340 gsm. GOTS and OEKO-TEX certified, custom logo printing and embroidery. MOQ 500 pieces per design, lead time 25-30 days. We quote FOB Chennai or Tuticorin, CIF on request. Export markets: United States, Europe, Middle East, Latin America.",
15 "maxDiscoveryChargeUsd": 0.5,
16 "sourceMode": "list",
17 "maxRequestsToRead": 200,
18 "itemsList": [
19 {
20 "type": "rfq",
21 "rfqId": "sample-rfq-1",
22 "title": "Organic cotton crew neck t-shirts with printed logo, 180 gsm",
23 "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=cotton+t-shirt&sample=1",
24 "description": "We are a US streetwear brand looking for 3,000 organic cotton crew neck t-shirts, 180 gsm, sizes S-XXL, 4 colors. Screen printed logo on chest and custom neck label. GOTS certified fabric required. Target price USD 3.20 per piece FOB. Delivery to Los Angeles within 45 days.",
25 "quantity": 3000,
26 "quantityUnit": "Piece/Pieces",
27 "buyerName": "Jason M.",
28 "buyerCountry": "United States",
29 "buyerCountryCode": "US",
30 "postedText": "3 hours ago",
31 "quotesLeft": 4,
32 "extraQuoteSeats": 5,
33 "buyerTags": [
34 "email verified",
35 "experienced buyer",
36 ],
37 "buyerRating": 3,
38 "hasAttachments": True,
39 "quoteUrl": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=cotton+t-shirt&sample=1",
40 "query": "cotton t-shirt",
41 "sample": True,
42 },
43 {
44 "type": "rfq",
45 "rfqId": "sample-rfq-2",
46 "title": "Embroidered hoodies for school uniforms",
47 "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=hoodie&sample=2",
48 "description": "Necesito 1200 sudaderas con capucha de algodón y poliéster, 320 gsm, tallas S-XL, color azul marino, con logotipo bordado del colegio en el pecho. Precio objetivo 7.50 USD por pieza CIF Manzanillo. Entrega antes de enero.",
49 "quantity": 1200,
50 "quantityUnit": "Piece/Pieces",
51 "buyerName": "Lucía R.",
52 "buyerCountry": "Mexico",
53 "buyerCountryCode": "MX",
54 "postedText": "20 hours ago",
55 "quotesLeft": 2,
56 "extraQuoteSeats": 3,
57 "buyerTags": ["email verified"],
58 "buyerRating": 2,
59 "hasAttachments": False,
60 "quoteUrl": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=hoodie&sample=2",
61 "query": "hoodie",
62 "sample": True,
63 },
64 {
65 "type": "rfq",
66 "rfqId": "sample-rfq-3",
67 "title": "Embroidered cotton pique polo shirts for hotel staff",
68 "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=polo+shirt&sample=3",
69 "description": "Nous cherchons 600 polos en coton piqué 200 gsm avec logo brodé pour le personnel d'un hôtel. Tailles M-XXL, couleur blanc. Merci d'envoyer votre meilleur prix FOB et le délai de livraison.",
70 "quantity": 600,
71 "quantityUnit": "Piece/Pieces",
72 "buyerName": "Karim B.",
73 "buyerCountry": "Morocco",
74 "buyerCountryCode": "MA",
75 "postedText": "2 days ago",
76 "quotesLeft": 6,
77 "extraQuoteSeats": 5,
78 "buyerTags": [],
79 "buyerRating": 1,
80 "hasAttachments": False,
81 "quoteUrl": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=polo+shirt&sample=3",
82 "query": "polo shirt",
83 "sample": True,
84 },
85 {
86 "type": "rfq",
87 "rfqId": "sample-rfq-4",
88 "title": "Pullover hoodies with gym logo, small batch",
89 "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=hoodie&sample=4",
90 "description": "Need 80 black pullover hoodies with our gym logo printed on the back. Sizes S-XL.",
91 "quantity": 80,
92 "quantityUnit": "Piece/Pieces",
93 "buyerName": "Mia T.",
94 "buyerCountry": "Australia",
95 "buyerCountryCode": "AU",
96 "postedText": "1 day ago",
97 "quotesLeft": 3,
98 "extraQuoteSeats": 5,
99 "buyerTags": ["typically replies"],
100 "buyerRating": 1,
101 "hasAttachments": False,
102 "quoteUrl": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=hoodie&sample=4",
103 "query": "hoodie",
104 "sample": True,
105 },
106 {
107 "type": "rfq",
108 "rfqId": "sample-rfq-5",
109 "title": "Cotton canvas tote bags with logo",
110 "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=cotton+t-shirt&sample=5",
111 "description": "Looking for 5,000 natural cotton canvas tote bags, 38x42 cm, one-colour logo print, for a retail chain in the UK.",
112 "quantity": 5000,
113 "quantityUnit": "Piece/Pieces",
114 "buyerName": "Oliver S.",
115 "buyerCountry": "United Kingdom",
116 "buyerCountryCode": "GB",
117 "postedText": "5 hours ago",
118 "quotesLeft": 5,
119 "extraQuoteSeats": 5,
120 "buyerTags": ["email verified"],
121 "buyerRating": 3,
122 "hasAttachments": False,
123 "quoteUrl": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=cotton+t-shirt&sample=5",
124 "query": "cotton t-shirt",
125 "sample": True,
126 },
127 {
128 "type": "rfq",
129 "rfqId": "sample-rfq-6",
130 "title": "Plain white cotton t-shirts 10000 pcs",
131 "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=cotton+t-shirt&sample=6",
132 "description": "Plain white cotton t-shirts, 160 gsm, 10000 pcs, for promotional events.",
133 "quantity": 10000,
134 "quantityUnit": "Piece/Pieces",
135 "buyerName": "Rahim K.",
136 "buyerCountry": "Saudi Arabia",
137 "buyerCountryCode": "SA",
138 "postedText": "4 days ago",
139 "quotesLeft": 0,
140 "extraQuoteSeats": 0,
141 "buyerTags": ["email verified"],
142 "buyerRating": 2,
143 "hasAttachments": False,
144 "quoteUrl": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm?searchText=cotton+t-shirt&sample=6",
145 "query": "cotton t-shirt",
146 "sample": True,
147 },
148 ],
149}
150
151
152run = client.actor("rich_minds/alibaba-rfq-leads-ai").call(run_input=run_input)
153
154
155print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
156for item in client.dataset(run.default_dataset_id).iterate_items():
157 print(item)
158
159