@decodo/sdk-ts 1.1.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +136 -1
- package/build/cjs/api/web-scraping-api.d.ts +13 -0
- package/build/cjs/api/web-scraping-api.js +41 -0
- package/build/cjs/client.d.ts +11 -0
- package/build/cjs/client.js +34 -0
- package/build/cjs/errors.d.ts +18 -0
- package/build/cjs/errors.js +44 -0
- package/build/cjs/generated/parameters.d.ts +11 -0
- package/build/cjs/generated/parameters.js +85 -0
- package/build/cjs/generated/request-schemas.d.ts +2123 -0
- package/build/cjs/generated/request-schemas.js +2431 -0
- package/build/cjs/generated/targets.d.ts +735 -0
- package/build/cjs/generated/targets.js +343 -0
- package/build/cjs/http.d.ts +22 -0
- package/build/cjs/http.js +94 -0
- package/build/cjs/index.d.ts +9 -0
- package/build/cjs/index.js +19 -0
- package/build/cjs/types/requests.d.ts +1 -0
- package/build/cjs/types/requests.js +2 -0
- package/build/cjs/types/responses.d.ts +62 -0
- package/build/cjs/types/responses.js +2 -0
- package/build/esm/api/web-scraping-api.d.ts +13 -0
- package/build/esm/api/web-scraping-api.js +37 -0
- package/build/esm/client.d.ts +11 -0
- package/build/esm/client.js +30 -0
- package/build/esm/errors.d.ts +18 -0
- package/build/esm/errors.js +36 -0
- package/build/esm/generated/parameters.d.ts +11 -0
- package/build/esm/generated/parameters.js +82 -0
- package/build/esm/generated/request-schemas.d.ts +2123 -0
- package/build/esm/generated/request-schemas.js +2395 -0
- package/build/esm/generated/targets.d.ts +735 -0
- package/build/esm/generated/targets.js +340 -0
- package/build/esm/http.d.ts +22 -0
- package/build/esm/http.js +90 -0
- package/build/esm/index.d.ts +9 -0
- package/build/esm/index.js +5 -0
- package/build/esm/types/requests.d.ts +1 -0
- package/build/esm/types/requests.js +1 -0
- package/build/esm/types/responses.d.ts +62 -0
- package/build/esm/types/responses.js +1 -0
- package/package.json +37 -46
- package/CHANGELOG.md +0 -53
- package/lib/cjs/index.js +0 -1240
- package/lib/cjs/index.js.map +0 -1
- package/lib/esm/index.js +0 -1235
- package/lib/esm/index.js.map +0 -1
- package/lib/types/index.d.ts +0 -465
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scrape target discriminator (wire string values).
|
|
3
|
+
*/
|
|
4
|
+
export declare enum Target {
|
|
5
|
+
UniversalEcommerce = "universal_ecommerce",
|
|
6
|
+
GoogleSearch = "google_search",
|
|
7
|
+
GoogleTravelHotels = "google_travel_hotels",
|
|
8
|
+
GoogleTrendsExplore = "google_trends_explore",
|
|
9
|
+
GoogleShoppingSearch = "google_shopping_search",
|
|
10
|
+
GoogleShoppingProduct = "google_shopping_product",
|
|
11
|
+
Google = "google",
|
|
12
|
+
GoogleSuggest = "google_suggest",
|
|
13
|
+
GoogleMaps = "google_maps",
|
|
14
|
+
GoogleAiMode = "google_ai_mode",
|
|
15
|
+
GoogleAds = "google_ads",
|
|
16
|
+
GoogleLens = "google_lens",
|
|
17
|
+
BingSearch = "bing_search",
|
|
18
|
+
Bing = "bing",
|
|
19
|
+
YoutubeTranscript = "youtube_transcript",
|
|
20
|
+
AmazonProduct = "amazon_product",
|
|
21
|
+
AmazonPricing = "amazon_pricing",
|
|
22
|
+
AmazonSearch = "amazon_search",
|
|
23
|
+
AmazonSellers = "amazon_sellers",
|
|
24
|
+
AmazonBestsellers = "amazon_bestsellers",
|
|
25
|
+
Amazon = "amazon",
|
|
26
|
+
Ecommerce = "ecommerce",
|
|
27
|
+
EcommerceCore = "ecommerce_core",
|
|
28
|
+
WalmartProduct = "walmart_product",
|
|
29
|
+
WalmartSearch = "walmart_search",
|
|
30
|
+
Walmart = "walmart",
|
|
31
|
+
TargetProduct = "target_product",
|
|
32
|
+
TargetSearch = "target_search",
|
|
33
|
+
Target = "target",
|
|
34
|
+
LowesSearch = "lowes_search",
|
|
35
|
+
Universal = "universal",
|
|
36
|
+
UniversalCore = "universal_core",
|
|
37
|
+
Chatgpt = "chatgpt",
|
|
38
|
+
Perplexity = "perplexity",
|
|
39
|
+
Bbb = "bbb",
|
|
40
|
+
Autotrader = "autotrader",
|
|
41
|
+
Mobile = "mobile",
|
|
42
|
+
Airbnb = "airbnb",
|
|
43
|
+
AppleAppStore = "apple_app_store",
|
|
44
|
+
InstagramGraphqlProfile = "instagram_graphql_profile",
|
|
45
|
+
TiktokPost = "tiktok_post",
|
|
46
|
+
TiktokShopSearch = "tiktok_shop_search",
|
|
47
|
+
TiktokShopProduct = "tiktok_shop_product",
|
|
48
|
+
Tiktok = "tiktok",
|
|
49
|
+
RedditPost = "reddit_post",
|
|
50
|
+
RedditSubreddit = "reddit_subreddit",
|
|
51
|
+
RedditUser = "reddit_user",
|
|
52
|
+
YoutubeVideo = "youtube_video",
|
|
53
|
+
YoutubeMetadata = "youtube_metadata",
|
|
54
|
+
YoutubeSearch = "youtube_search",
|
|
55
|
+
YoutubeSearchMax = "youtube_search_max",
|
|
56
|
+
YoutubeSubtitles = "youtube_subtitles",
|
|
57
|
+
YoutubeChannel = "youtube_channel",
|
|
58
|
+
SiteUnblocker = "site_unblocker",
|
|
59
|
+
SiteUnblockerReq = "site_unblocker_req"
|
|
60
|
+
}
|
|
61
|
+
/** API discriminator string literals (same values as {@link Target}). */
|
|
62
|
+
export type TargetString = (typeof Target)[keyof typeof Target];
|
|
63
|
+
export declare const targets: readonly [Target.UniversalEcommerce, Target.GoogleSearch, Target.GoogleTravelHotels, Target.GoogleTrendsExplore, Target.GoogleShoppingSearch, Target.GoogleShoppingProduct, Target.Google, Target.GoogleSuggest, Target.GoogleMaps, Target.GoogleAiMode, Target.GoogleAds, Target.GoogleLens, Target.BingSearch, Target.Bing, Target.YoutubeTranscript, Target.AmazonProduct, Target.AmazonPricing, Target.AmazonSearch, Target.AmazonSellers, Target.AmazonBestsellers, Target.Amazon, Target.Ecommerce, Target.EcommerceCore, Target.WalmartProduct, Target.WalmartSearch, Target.Walmart, Target.TargetProduct, Target.TargetSearch, Target.Target, Target.LowesSearch, Target.Universal, Target.UniversalCore, Target.Chatgpt, Target.Perplexity, Target.Bbb, Target.Autotrader, Target.Mobile, Target.Airbnb, Target.AppleAppStore, Target.InstagramGraphqlProfile, Target.TiktokPost, Target.TiktokShopSearch, Target.TiktokShopProduct, Target.Tiktok, Target.RedditPost, Target.RedditSubreddit, Target.RedditUser, Target.YoutubeVideo, Target.YoutubeMetadata, Target.YoutubeSearch, Target.YoutubeSearchMax, Target.YoutubeSubtitles, Target.YoutubeChannel, Target.SiteUnblocker, Target.SiteUnblockerReq];
|
|
64
|
+
export interface UniversalEcommerceParams {
|
|
65
|
+
callback_url?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface GoogleSearchParams {
|
|
68
|
+
query?: string;
|
|
69
|
+
headless?: 'html' | 'png';
|
|
70
|
+
locale?: string;
|
|
71
|
+
geo?: string;
|
|
72
|
+
device_type?: string;
|
|
73
|
+
page_from?: number;
|
|
74
|
+
google_results_language?: string;
|
|
75
|
+
google_tbm?: string;
|
|
76
|
+
google_tbs?: string;
|
|
77
|
+
parse?: boolean;
|
|
78
|
+
google_nfpr?: boolean;
|
|
79
|
+
google_safe_search?: boolean;
|
|
80
|
+
session_id?: string;
|
|
81
|
+
xhr?: boolean;
|
|
82
|
+
markdown?: boolean;
|
|
83
|
+
page_count?: number;
|
|
84
|
+
callback_url?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface GoogleTravelHotelsParams {
|
|
87
|
+
query?: string;
|
|
88
|
+
headless?: 'html' | 'png';
|
|
89
|
+
locale?: string;
|
|
90
|
+
device_type?: string;
|
|
91
|
+
page_from?: number;
|
|
92
|
+
date_range?: string;
|
|
93
|
+
stars?: number;
|
|
94
|
+
adults?: number;
|
|
95
|
+
children?: number;
|
|
96
|
+
session_id?: string;
|
|
97
|
+
markdown?: boolean;
|
|
98
|
+
callback_url?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface GoogleTrendsExploreParams {
|
|
101
|
+
query?: string;
|
|
102
|
+
geo?: string;
|
|
103
|
+
device_type?: string;
|
|
104
|
+
search_type?: string;
|
|
105
|
+
date_start?: string;
|
|
106
|
+
date_end?: string;
|
|
107
|
+
callback_url?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface GoogleShoppingSearchParams {
|
|
110
|
+
query?: string;
|
|
111
|
+
headless?: 'html' | 'png';
|
|
112
|
+
locale?: string;
|
|
113
|
+
geo?: string;
|
|
114
|
+
device_type?: string;
|
|
115
|
+
page_from?: number;
|
|
116
|
+
google_tbs?: string;
|
|
117
|
+
parse?: boolean;
|
|
118
|
+
session_id?: string;
|
|
119
|
+
google_results_language?: string;
|
|
120
|
+
markdown?: boolean;
|
|
121
|
+
callback_url?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface GoogleShoppingProductParams {
|
|
124
|
+
query?: string;
|
|
125
|
+
headless?: 'html' | 'png';
|
|
126
|
+
locale?: string;
|
|
127
|
+
geo?: string;
|
|
128
|
+
device_type?: string;
|
|
129
|
+
page_from?: number;
|
|
130
|
+
parse?: boolean;
|
|
131
|
+
session_id?: string;
|
|
132
|
+
google_results_language?: string;
|
|
133
|
+
markdown?: boolean;
|
|
134
|
+
xhr?: boolean;
|
|
135
|
+
callback_url?: string;
|
|
136
|
+
}
|
|
137
|
+
export interface GoogleParams {
|
|
138
|
+
url?: string;
|
|
139
|
+
headless?: 'html' | 'png';
|
|
140
|
+
locale?: string;
|
|
141
|
+
device_type?: string;
|
|
142
|
+
parse?: boolean;
|
|
143
|
+
session_id?: string;
|
|
144
|
+
markdown?: boolean;
|
|
145
|
+
xhr?: boolean;
|
|
146
|
+
page_count?: number;
|
|
147
|
+
callback_url?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface GoogleSuggestParams {
|
|
150
|
+
query?: string;
|
|
151
|
+
device_type?: string;
|
|
152
|
+
geo?: string;
|
|
153
|
+
locale?: string;
|
|
154
|
+
session_id?: string;
|
|
155
|
+
callback_url?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface GoogleMapsParams {
|
|
158
|
+
query?: string;
|
|
159
|
+
headless?: 'html' | 'png';
|
|
160
|
+
geo?: string;
|
|
161
|
+
locale?: string;
|
|
162
|
+
page_from?: number;
|
|
163
|
+
device_type?: string;
|
|
164
|
+
session_id?: string;
|
|
165
|
+
google_results_language?: string;
|
|
166
|
+
google_nfpr?: boolean;
|
|
167
|
+
hotel_occupancy?: string;
|
|
168
|
+
date_range?: string;
|
|
169
|
+
markdown?: boolean;
|
|
170
|
+
callback_url?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface GoogleAiModeParams {
|
|
173
|
+
query?: string;
|
|
174
|
+
geo?: string;
|
|
175
|
+
parse?: boolean;
|
|
176
|
+
device_type?: string;
|
|
177
|
+
session_id?: string;
|
|
178
|
+
markdown?: boolean;
|
|
179
|
+
xhr?: boolean;
|
|
180
|
+
callback_url?: string;
|
|
181
|
+
}
|
|
182
|
+
export interface GoogleAdsParams {
|
|
183
|
+
query?: string;
|
|
184
|
+
headless?: 'html' | 'png';
|
|
185
|
+
locale?: string;
|
|
186
|
+
geo?: string;
|
|
187
|
+
device_type?: string;
|
|
188
|
+
page_from?: number;
|
|
189
|
+
google_results_language?: string;
|
|
190
|
+
google_tbm?: string;
|
|
191
|
+
google_tbs?: string;
|
|
192
|
+
parse?: boolean;
|
|
193
|
+
google_nfpr?: boolean;
|
|
194
|
+
session_id?: string;
|
|
195
|
+
markdown?: boolean;
|
|
196
|
+
xhr?: boolean;
|
|
197
|
+
page_count?: number;
|
|
198
|
+
callback_url?: string;
|
|
199
|
+
}
|
|
200
|
+
export interface GoogleLensParams {
|
|
201
|
+
query?: string;
|
|
202
|
+
headless?: 'html' | 'png';
|
|
203
|
+
parse?: boolean;
|
|
204
|
+
device_type?: string;
|
|
205
|
+
markdown?: boolean;
|
|
206
|
+
callback_url?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface BingSearchParams {
|
|
209
|
+
query?: string;
|
|
210
|
+
headless?: 'html' | 'png';
|
|
211
|
+
locale?: string;
|
|
212
|
+
geo?: string;
|
|
213
|
+
domain?: string;
|
|
214
|
+
device_type?: string;
|
|
215
|
+
page_from?: number;
|
|
216
|
+
parse?: boolean;
|
|
217
|
+
page_count?: number;
|
|
218
|
+
session_id?: string;
|
|
219
|
+
markdown?: boolean;
|
|
220
|
+
xhr?: boolean;
|
|
221
|
+
callback_url?: string;
|
|
222
|
+
}
|
|
223
|
+
export interface BingParams {
|
|
224
|
+
url?: string;
|
|
225
|
+
headless?: 'html' | 'png';
|
|
226
|
+
locale?: string;
|
|
227
|
+
geo?: string;
|
|
228
|
+
device_type?: string;
|
|
229
|
+
page_from?: number;
|
|
230
|
+
parse?: boolean;
|
|
231
|
+
session_id?: string;
|
|
232
|
+
markdown?: boolean;
|
|
233
|
+
xhr?: boolean;
|
|
234
|
+
callback_url?: string;
|
|
235
|
+
}
|
|
236
|
+
export interface YoutubeTranscriptParams {
|
|
237
|
+
query?: string;
|
|
238
|
+
language_code?: string;
|
|
239
|
+
transcript_origin?: string;
|
|
240
|
+
callback_url?: string;
|
|
241
|
+
}
|
|
242
|
+
export interface AmazonProductParams {
|
|
243
|
+
query?: string;
|
|
244
|
+
headless?: 'html' | 'png';
|
|
245
|
+
domain?: string;
|
|
246
|
+
device_type?: string;
|
|
247
|
+
parse?: boolean;
|
|
248
|
+
autoselect_variant?: boolean;
|
|
249
|
+
geo?: string;
|
|
250
|
+
session_id?: string;
|
|
251
|
+
currency?: string;
|
|
252
|
+
markdown?: boolean;
|
|
253
|
+
xhr?: boolean;
|
|
254
|
+
callback_url?: string;
|
|
255
|
+
}
|
|
256
|
+
export interface AmazonPricingParams {
|
|
257
|
+
query?: string;
|
|
258
|
+
headless?: 'html' | 'png';
|
|
259
|
+
domain?: string;
|
|
260
|
+
device_type?: string;
|
|
261
|
+
page_from?: number;
|
|
262
|
+
parse?: boolean;
|
|
263
|
+
geo?: string;
|
|
264
|
+
session_id?: string;
|
|
265
|
+
currency?: string;
|
|
266
|
+
markdown?: boolean;
|
|
267
|
+
xhr?: boolean;
|
|
268
|
+
callback_url?: string;
|
|
269
|
+
}
|
|
270
|
+
export interface AmazonSearchParams {
|
|
271
|
+
query?: string;
|
|
272
|
+
headless?: 'html' | 'png';
|
|
273
|
+
domain?: string;
|
|
274
|
+
device_type?: string;
|
|
275
|
+
page_from?: number;
|
|
276
|
+
category?: string;
|
|
277
|
+
merchant?: string;
|
|
278
|
+
parse?: boolean;
|
|
279
|
+
geo?: string;
|
|
280
|
+
session_id?: string;
|
|
281
|
+
sort_by?: string;
|
|
282
|
+
currency?: string;
|
|
283
|
+
markdown?: boolean;
|
|
284
|
+
xhr?: boolean;
|
|
285
|
+
callback_url?: string;
|
|
286
|
+
}
|
|
287
|
+
export interface AmazonSellersParams {
|
|
288
|
+
query?: string;
|
|
289
|
+
headless?: 'html' | 'png';
|
|
290
|
+
locale?: string;
|
|
291
|
+
domain?: string;
|
|
292
|
+
device_type?: string;
|
|
293
|
+
geo?: string;
|
|
294
|
+
parse?: boolean;
|
|
295
|
+
markdown?: boolean;
|
|
296
|
+
xhr?: boolean;
|
|
297
|
+
callback_url?: string;
|
|
298
|
+
}
|
|
299
|
+
export interface AmazonBestsellersParams {
|
|
300
|
+
query?: string;
|
|
301
|
+
domain?: string;
|
|
302
|
+
device_type?: string;
|
|
303
|
+
geo?: string;
|
|
304
|
+
page_from?: number;
|
|
305
|
+
category?: string;
|
|
306
|
+
parse?: boolean;
|
|
307
|
+
session_id?: string;
|
|
308
|
+
currency?: string;
|
|
309
|
+
markdown?: boolean;
|
|
310
|
+
xhr?: boolean;
|
|
311
|
+
callback_url?: string;
|
|
312
|
+
}
|
|
313
|
+
export interface AmazonParams {
|
|
314
|
+
url?: string;
|
|
315
|
+
headless?: 'html' | 'png';
|
|
316
|
+
device_type?: string;
|
|
317
|
+
parse?: boolean;
|
|
318
|
+
geo?: string;
|
|
319
|
+
session_id?: string;
|
|
320
|
+
markdown?: boolean;
|
|
321
|
+
xhr?: boolean;
|
|
322
|
+
callback_url?: string;
|
|
323
|
+
}
|
|
324
|
+
export interface EcommerceParams {
|
|
325
|
+
url?: string;
|
|
326
|
+
headless?: 'html' | 'png';
|
|
327
|
+
locale?: string;
|
|
328
|
+
geo?: string;
|
|
329
|
+
device_type?: string;
|
|
330
|
+
parse?: boolean;
|
|
331
|
+
parser_type?: string;
|
|
332
|
+
callback_url?: string;
|
|
333
|
+
}
|
|
334
|
+
export interface EcommerceCoreParams {
|
|
335
|
+
url?: string;
|
|
336
|
+
payload?: string;
|
|
337
|
+
geo?: string;
|
|
338
|
+
http_method?: string;
|
|
339
|
+
successful_status_codes?: number[];
|
|
340
|
+
callback_url?: string;
|
|
341
|
+
}
|
|
342
|
+
export interface WalmartProductParams {
|
|
343
|
+
product_id?: string;
|
|
344
|
+
headless?: 'html' | 'png';
|
|
345
|
+
parse?: boolean;
|
|
346
|
+
xhr?: boolean;
|
|
347
|
+
markdown?: boolean;
|
|
348
|
+
fulfillment_type?: string;
|
|
349
|
+
walmart_store_id?: string;
|
|
350
|
+
delivery_zip?: string;
|
|
351
|
+
callback_url?: string;
|
|
352
|
+
}
|
|
353
|
+
export interface WalmartSearchParams {
|
|
354
|
+
query?: string;
|
|
355
|
+
headless?: 'html' | 'png';
|
|
356
|
+
parse?: boolean;
|
|
357
|
+
markdown?: boolean;
|
|
358
|
+
fulfillment_type?: string;
|
|
359
|
+
walmart_store_id?: string;
|
|
360
|
+
delivery_zip?: string;
|
|
361
|
+
callback_url?: string;
|
|
362
|
+
}
|
|
363
|
+
export interface WalmartParams {
|
|
364
|
+
url?: string;
|
|
365
|
+
headless?: 'html' | 'png';
|
|
366
|
+
locale?: string;
|
|
367
|
+
geo?: string;
|
|
368
|
+
device_type?: string;
|
|
369
|
+
store_id?: string;
|
|
370
|
+
markdown?: boolean;
|
|
371
|
+
xhr?: boolean;
|
|
372
|
+
callback_url?: string;
|
|
373
|
+
}
|
|
374
|
+
export interface TargetProductParams {
|
|
375
|
+
product_id?: string;
|
|
376
|
+
headless?: 'html' | 'png';
|
|
377
|
+
parse?: boolean;
|
|
378
|
+
device_type?: string;
|
|
379
|
+
markdown?: boolean;
|
|
380
|
+
xhr?: boolean;
|
|
381
|
+
delivery_type?: string;
|
|
382
|
+
target_store_id?: string;
|
|
383
|
+
delivery_zip?: string;
|
|
384
|
+
callback_url?: string;
|
|
385
|
+
}
|
|
386
|
+
export interface TargetSearchParams {
|
|
387
|
+
query?: string;
|
|
388
|
+
headless?: 'html' | 'png';
|
|
389
|
+
parse?: boolean;
|
|
390
|
+
device_type?: string;
|
|
391
|
+
delivery_type?: string;
|
|
392
|
+
target_store_id?: string;
|
|
393
|
+
delivery_zip?: string;
|
|
394
|
+
xhr?: boolean;
|
|
395
|
+
markdown?: boolean;
|
|
396
|
+
callback_url?: string;
|
|
397
|
+
}
|
|
398
|
+
export interface TargetParams {
|
|
399
|
+
url?: string;
|
|
400
|
+
headless?: 'html' | 'png';
|
|
401
|
+
device_type?: string;
|
|
402
|
+
xhr?: boolean;
|
|
403
|
+
delivery_zip?: string;
|
|
404
|
+
target_store_id?: string;
|
|
405
|
+
callback_url?: string;
|
|
406
|
+
}
|
|
407
|
+
export interface LowesSearchParams {
|
|
408
|
+
query?: string;
|
|
409
|
+
lowes_store_id?: string;
|
|
410
|
+
headless?: 'html' | 'png';
|
|
411
|
+
delivery_zip?: string;
|
|
412
|
+
user_agent_type?: string;
|
|
413
|
+
free_delivery?: boolean;
|
|
414
|
+
pickup_today?: boolean;
|
|
415
|
+
delivery_today_tomorrow?: boolean;
|
|
416
|
+
callback_url?: string;
|
|
417
|
+
}
|
|
418
|
+
export interface UniversalParams {
|
|
419
|
+
url?: string;
|
|
420
|
+
payload?: string;
|
|
421
|
+
proxy_pool?: 'standard' | 'premium';
|
|
422
|
+
http_method?: string;
|
|
423
|
+
headless?: 'html' | 'png';
|
|
424
|
+
geo?: string;
|
|
425
|
+
locale?: string;
|
|
426
|
+
device_type?: string;
|
|
427
|
+
session_id?: string;
|
|
428
|
+
successful_status_codes?: number[];
|
|
429
|
+
headers?: {
|
|
430
|
+
[k: string]: unknown;
|
|
431
|
+
};
|
|
432
|
+
cookies?: {
|
|
433
|
+
[k: string]: unknown;
|
|
434
|
+
};
|
|
435
|
+
force_headers?: boolean;
|
|
436
|
+
force_cookies?: boolean;
|
|
437
|
+
xhr?: boolean;
|
|
438
|
+
markdown?: boolean;
|
|
439
|
+
callback_url?: string;
|
|
440
|
+
}
|
|
441
|
+
export interface UniversalCoreParams {
|
|
442
|
+
url?: string;
|
|
443
|
+
payload?: string;
|
|
444
|
+
geo?: string;
|
|
445
|
+
http_method?: string;
|
|
446
|
+
successful_status_codes?: number[];
|
|
447
|
+
callback_url?: string;
|
|
448
|
+
}
|
|
449
|
+
export interface ChatgptParams {
|
|
450
|
+
prompt?: string;
|
|
451
|
+
search?: boolean;
|
|
452
|
+
parse?: boolean;
|
|
453
|
+
geo?: string;
|
|
454
|
+
device_type?: string;
|
|
455
|
+
markdown?: boolean;
|
|
456
|
+
xhr?: boolean;
|
|
457
|
+
callback_url?: string;
|
|
458
|
+
}
|
|
459
|
+
export interface PerplexityParams {
|
|
460
|
+
prompt?: string;
|
|
461
|
+
parse?: boolean;
|
|
462
|
+
geo?: string;
|
|
463
|
+
device_type?: string;
|
|
464
|
+
markdown?: boolean;
|
|
465
|
+
xhr?: boolean;
|
|
466
|
+
callback_url?: string;
|
|
467
|
+
}
|
|
468
|
+
export interface BbbParams {
|
|
469
|
+
url?: string;
|
|
470
|
+
headless?: 'html' | 'png';
|
|
471
|
+
geo?: string;
|
|
472
|
+
device_type?: string;
|
|
473
|
+
markdown?: boolean;
|
|
474
|
+
xhr?: boolean;
|
|
475
|
+
callback_url?: string;
|
|
476
|
+
}
|
|
477
|
+
export interface AutotraderParams {
|
|
478
|
+
url?: string;
|
|
479
|
+
headless?: 'html' | 'png';
|
|
480
|
+
geo?: string;
|
|
481
|
+
device_type?: string;
|
|
482
|
+
markdown?: boolean;
|
|
483
|
+
xhr?: boolean;
|
|
484
|
+
callback_url?: string;
|
|
485
|
+
}
|
|
486
|
+
export interface MobileParams {
|
|
487
|
+
url?: string;
|
|
488
|
+
headless?: 'html' | 'png';
|
|
489
|
+
geo?: string;
|
|
490
|
+
device_type?: string;
|
|
491
|
+
markdown?: boolean;
|
|
492
|
+
xhr?: boolean;
|
|
493
|
+
callback_url?: string;
|
|
494
|
+
}
|
|
495
|
+
export interface AirbnbParams {
|
|
496
|
+
url?: string;
|
|
497
|
+
headless?: 'html' | 'png';
|
|
498
|
+
geo?: string;
|
|
499
|
+
device_type?: string;
|
|
500
|
+
markdown?: boolean;
|
|
501
|
+
xhr?: boolean;
|
|
502
|
+
callback_url?: string;
|
|
503
|
+
}
|
|
504
|
+
export interface AppleAppStoreParams {
|
|
505
|
+
url?: string;
|
|
506
|
+
headless?: 'html' | 'png';
|
|
507
|
+
geo?: string;
|
|
508
|
+
device_type?: string;
|
|
509
|
+
markdown?: boolean;
|
|
510
|
+
xhr?: boolean;
|
|
511
|
+
callback_url?: string;
|
|
512
|
+
}
|
|
513
|
+
export interface InstagramGraphqlProfileParams {
|
|
514
|
+
query?: string;
|
|
515
|
+
callback_url?: string;
|
|
516
|
+
}
|
|
517
|
+
export interface TiktokPostParams {
|
|
518
|
+
url?: string;
|
|
519
|
+
xhr?: boolean;
|
|
520
|
+
callback_url?: string;
|
|
521
|
+
}
|
|
522
|
+
export interface TiktokShopSearchParams {
|
|
523
|
+
query?: string;
|
|
524
|
+
headless?: 'html' | 'png';
|
|
525
|
+
device_type?: string;
|
|
526
|
+
markdown?: boolean;
|
|
527
|
+
country?: string;
|
|
528
|
+
callback_url?: string;
|
|
529
|
+
}
|
|
530
|
+
export interface TiktokShopProductParams {
|
|
531
|
+
product_id?: string;
|
|
532
|
+
headless?: 'html' | 'png';
|
|
533
|
+
device_type?: string;
|
|
534
|
+
xhr?: boolean;
|
|
535
|
+
markdown?: boolean;
|
|
536
|
+
country?: string;
|
|
537
|
+
callback_url?: string;
|
|
538
|
+
}
|
|
539
|
+
export interface TiktokParams {
|
|
540
|
+
url?: string;
|
|
541
|
+
headless?: 'html' | 'png';
|
|
542
|
+
user_agent_type?: string;
|
|
543
|
+
callback_url?: string;
|
|
544
|
+
}
|
|
545
|
+
export interface RedditPostParams {
|
|
546
|
+
url?: string;
|
|
547
|
+
locale?: string;
|
|
548
|
+
geo?: string;
|
|
549
|
+
callback_url?: string;
|
|
550
|
+
}
|
|
551
|
+
export interface RedditSubredditParams {
|
|
552
|
+
url?: string;
|
|
553
|
+
locale?: string;
|
|
554
|
+
geo?: string;
|
|
555
|
+
callback_url?: string;
|
|
556
|
+
}
|
|
557
|
+
export interface RedditUserParams {
|
|
558
|
+
url?: string;
|
|
559
|
+
locale?: string;
|
|
560
|
+
geo?: string;
|
|
561
|
+
sort?: string;
|
|
562
|
+
callback_url?: string;
|
|
563
|
+
}
|
|
564
|
+
export interface YoutubeVideoParams {
|
|
565
|
+
query?: string;
|
|
566
|
+
geo?: string;
|
|
567
|
+
callback_url?: string;
|
|
568
|
+
}
|
|
569
|
+
export interface YoutubeMetadataParams {
|
|
570
|
+
query?: string;
|
|
571
|
+
callback_url?: string;
|
|
572
|
+
}
|
|
573
|
+
export interface YoutubeSearchParams {
|
|
574
|
+
'360'?: boolean;
|
|
575
|
+
query?: string;
|
|
576
|
+
upload_date?: string;
|
|
577
|
+
type?: string;
|
|
578
|
+
duration?: string;
|
|
579
|
+
video_sort_by?: string;
|
|
580
|
+
'3d'?: boolean;
|
|
581
|
+
'4k'?: boolean;
|
|
582
|
+
creative_commons?: boolean;
|
|
583
|
+
hd?: boolean;
|
|
584
|
+
hdr?: boolean;
|
|
585
|
+
vr180?: boolean;
|
|
586
|
+
live?: boolean;
|
|
587
|
+
location?: boolean;
|
|
588
|
+
purchased?: boolean;
|
|
589
|
+
subtitles?: boolean;
|
|
590
|
+
callback_url?: string;
|
|
591
|
+
}
|
|
592
|
+
export interface YoutubeSearchMaxParams {
|
|
593
|
+
'360'?: boolean;
|
|
594
|
+
query?: string;
|
|
595
|
+
upload_date?: string;
|
|
596
|
+
type?: string;
|
|
597
|
+
duration?: string;
|
|
598
|
+
video_sort_by?: string;
|
|
599
|
+
'3d'?: boolean;
|
|
600
|
+
'4k'?: boolean;
|
|
601
|
+
creative_commons?: boolean;
|
|
602
|
+
hd?: boolean;
|
|
603
|
+
hdr?: boolean;
|
|
604
|
+
vr180?: boolean;
|
|
605
|
+
live?: boolean;
|
|
606
|
+
location?: boolean;
|
|
607
|
+
purchased?: boolean;
|
|
608
|
+
subtitles?: boolean;
|
|
609
|
+
markdown?: boolean;
|
|
610
|
+
callback_url?: string;
|
|
611
|
+
}
|
|
612
|
+
export interface YoutubeSubtitlesParams {
|
|
613
|
+
query?: string;
|
|
614
|
+
language_code?: string;
|
|
615
|
+
subtitle_origin?: string;
|
|
616
|
+
callback_url?: string;
|
|
617
|
+
}
|
|
618
|
+
export interface YoutubeChannelParams {
|
|
619
|
+
query?: string;
|
|
620
|
+
parse?: boolean;
|
|
621
|
+
limit?: number;
|
|
622
|
+
markdown?: boolean;
|
|
623
|
+
callback_url?: string;
|
|
624
|
+
}
|
|
625
|
+
export interface SiteUnblockerParams {
|
|
626
|
+
url?: string;
|
|
627
|
+
geo?: string;
|
|
628
|
+
locale?: string;
|
|
629
|
+
session_id?: string;
|
|
630
|
+
http_method?: string;
|
|
631
|
+
customStatusCode?: string;
|
|
632
|
+
requestBody?: string;
|
|
633
|
+
headless?: 'html' | 'png';
|
|
634
|
+
headers?: {
|
|
635
|
+
[k: string]: unknown;
|
|
636
|
+
};
|
|
637
|
+
force_headers?: boolean;
|
|
638
|
+
force_cookies?: boolean;
|
|
639
|
+
customCookies?: string;
|
|
640
|
+
markdown?: boolean;
|
|
641
|
+
callback_url?: string;
|
|
642
|
+
}
|
|
643
|
+
export interface SiteUnblockerReqParams {
|
|
644
|
+
url?: string;
|
|
645
|
+
geo?: string;
|
|
646
|
+
locale?: string;
|
|
647
|
+
session_id?: string;
|
|
648
|
+
http_method?: string;
|
|
649
|
+
customStatusCode?: string;
|
|
650
|
+
requestBody?: string;
|
|
651
|
+
headless?: 'html' | 'png';
|
|
652
|
+
headers?: {
|
|
653
|
+
[k: string]: unknown;
|
|
654
|
+
};
|
|
655
|
+
force_headers?: boolean;
|
|
656
|
+
force_cookies?: boolean;
|
|
657
|
+
customCookies?: string;
|
|
658
|
+
markdown?: boolean;
|
|
659
|
+
callback_url?: string;
|
|
660
|
+
}
|
|
661
|
+
export type TargetParamsMap = {
|
|
662
|
+
[Target.UniversalEcommerce]: UniversalEcommerceParams;
|
|
663
|
+
[Target.GoogleSearch]: GoogleSearchParams;
|
|
664
|
+
[Target.GoogleTravelHotels]: GoogleTravelHotelsParams;
|
|
665
|
+
[Target.GoogleTrendsExplore]: GoogleTrendsExploreParams;
|
|
666
|
+
[Target.GoogleShoppingSearch]: GoogleShoppingSearchParams;
|
|
667
|
+
[Target.GoogleShoppingProduct]: GoogleShoppingProductParams;
|
|
668
|
+
[Target.Google]: GoogleParams;
|
|
669
|
+
[Target.GoogleSuggest]: GoogleSuggestParams;
|
|
670
|
+
[Target.GoogleMaps]: GoogleMapsParams;
|
|
671
|
+
[Target.GoogleAiMode]: GoogleAiModeParams;
|
|
672
|
+
[Target.GoogleAds]: GoogleAdsParams;
|
|
673
|
+
[Target.GoogleLens]: GoogleLensParams;
|
|
674
|
+
[Target.BingSearch]: BingSearchParams;
|
|
675
|
+
[Target.Bing]: BingParams;
|
|
676
|
+
[Target.YoutubeTranscript]: YoutubeTranscriptParams;
|
|
677
|
+
[Target.AmazonProduct]: AmazonProductParams;
|
|
678
|
+
[Target.AmazonPricing]: AmazonPricingParams;
|
|
679
|
+
[Target.AmazonSearch]: AmazonSearchParams;
|
|
680
|
+
[Target.AmazonSellers]: AmazonSellersParams;
|
|
681
|
+
[Target.AmazonBestsellers]: AmazonBestsellersParams;
|
|
682
|
+
[Target.Amazon]: AmazonParams;
|
|
683
|
+
[Target.Ecommerce]: EcommerceParams;
|
|
684
|
+
[Target.EcommerceCore]: EcommerceCoreParams;
|
|
685
|
+
[Target.WalmartProduct]: WalmartProductParams;
|
|
686
|
+
[Target.WalmartSearch]: WalmartSearchParams;
|
|
687
|
+
[Target.Walmart]: WalmartParams;
|
|
688
|
+
[Target.TargetProduct]: TargetProductParams;
|
|
689
|
+
[Target.TargetSearch]: TargetSearchParams;
|
|
690
|
+
[Target.Target]: TargetParams;
|
|
691
|
+
[Target.LowesSearch]: LowesSearchParams;
|
|
692
|
+
[Target.Universal]: UniversalParams;
|
|
693
|
+
[Target.UniversalCore]: UniversalCoreParams;
|
|
694
|
+
[Target.Chatgpt]: ChatgptParams;
|
|
695
|
+
[Target.Perplexity]: PerplexityParams;
|
|
696
|
+
[Target.Bbb]: BbbParams;
|
|
697
|
+
[Target.Autotrader]: AutotraderParams;
|
|
698
|
+
[Target.Mobile]: MobileParams;
|
|
699
|
+
[Target.Airbnb]: AirbnbParams;
|
|
700
|
+
[Target.AppleAppStore]: AppleAppStoreParams;
|
|
701
|
+
[Target.InstagramGraphqlProfile]: InstagramGraphqlProfileParams;
|
|
702
|
+
[Target.TiktokPost]: TiktokPostParams;
|
|
703
|
+
[Target.TiktokShopSearch]: TiktokShopSearchParams;
|
|
704
|
+
[Target.TiktokShopProduct]: TiktokShopProductParams;
|
|
705
|
+
[Target.Tiktok]: TiktokParams;
|
|
706
|
+
[Target.RedditPost]: RedditPostParams;
|
|
707
|
+
[Target.RedditSubreddit]: RedditSubredditParams;
|
|
708
|
+
[Target.RedditUser]: RedditUserParams;
|
|
709
|
+
[Target.YoutubeVideo]: YoutubeVideoParams;
|
|
710
|
+
[Target.YoutubeMetadata]: YoutubeMetadataParams;
|
|
711
|
+
[Target.YoutubeSearch]: YoutubeSearchParams;
|
|
712
|
+
[Target.YoutubeSearchMax]: YoutubeSearchMaxParams;
|
|
713
|
+
[Target.YoutubeSubtitles]: YoutubeSubtitlesParams;
|
|
714
|
+
[Target.YoutubeChannel]: YoutubeChannelParams;
|
|
715
|
+
[Target.SiteUnblocker]: SiteUnblockerParams;
|
|
716
|
+
[Target.SiteUnblockerReq]: SiteUnblockerReqParams;
|
|
717
|
+
};
|
|
718
|
+
export type ScrapeRequest = {
|
|
719
|
+
[T in TargetString]: {
|
|
720
|
+
target: T;
|
|
721
|
+
} & TargetParamsMap[T];
|
|
722
|
+
}[TargetString];
|
|
723
|
+
export type BatchRequest = {
|
|
724
|
+
[T in TargetString]: {
|
|
725
|
+
target: T;
|
|
726
|
+
url?: string[];
|
|
727
|
+
query?: string[];
|
|
728
|
+
} & Omit<TargetParamsMap[T], "url" | "query">;
|
|
729
|
+
}[TargetString];
|
|
730
|
+
export type TargetMeta = {
|
|
731
|
+
group: string;
|
|
732
|
+
response_format: string;
|
|
733
|
+
parameters: string[];
|
|
734
|
+
};
|
|
735
|
+
export declare const targetMeta: Record<Target, TargetMeta>;
|