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