scrapebadger 0.61.0 → 0.62.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 +23 -0
- package/dist/index.d.cts +201 -54
- package/dist/index.d.ts +201 -54
- package/dist/index.js +336 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +336 -53
- package/dist/index.mjs.map +1 -1
- package/dist/twitter/index.js.map +1 -1
- package/dist/twitter/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
9
|
var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
|
10
10
|
|
|
11
11
|
// src/internal/version.ts
|
|
12
|
-
var SDK_VERSION = "0.
|
|
12
|
+
var SDK_VERSION = "0.62.0";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -4509,6 +4509,42 @@ var AppStoreClient = class {
|
|
|
4509
4509
|
}
|
|
4510
4510
|
};
|
|
4511
4511
|
|
|
4512
|
+
// src/asos/client.ts
|
|
4513
|
+
var AsosClient = class {
|
|
4514
|
+
client;
|
|
4515
|
+
constructor(client) {
|
|
4516
|
+
this.client = client;
|
|
4517
|
+
}
|
|
4518
|
+
/** Search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4519
|
+
async searchSuggestions(params = {}) {
|
|
4520
|
+
return this.client.request("/v1/asos/autocomplete", { params });
|
|
4521
|
+
}
|
|
4522
|
+
/** List categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4523
|
+
async listCategories(params = {}) {
|
|
4524
|
+
return this.client.request("/v1/asos/categories", { params });
|
|
4525
|
+
}
|
|
4526
|
+
/** List search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4527
|
+
async listSearchFilters(params = {}) {
|
|
4528
|
+
return this.client.request("/v1/asos/filters", { params });
|
|
4529
|
+
}
|
|
4530
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4531
|
+
async listMarkets(params = {}) {
|
|
4532
|
+
return this.client.request("/v1/asos/markets", { params });
|
|
4533
|
+
}
|
|
4534
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4535
|
+
async getProductDetail(productId, params = {}) {
|
|
4536
|
+
return this.client.request(`/v1/asos/products/${productId}`, { params });
|
|
4537
|
+
}
|
|
4538
|
+
/** Search products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4539
|
+
async searchProducts(params = {}) {
|
|
4540
|
+
return this.client.request("/v1/asos/search", { params });
|
|
4541
|
+
}
|
|
4542
|
+
/** Get stock and prices. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4543
|
+
async getStockAndPrices(params = {}) {
|
|
4544
|
+
return this.client.request("/v1/asos/stock-price", { params });
|
|
4545
|
+
}
|
|
4546
|
+
};
|
|
4547
|
+
|
|
4512
4548
|
// src/instagram/users.ts
|
|
4513
4549
|
var UsersClient4 = class {
|
|
4514
4550
|
client;
|
|
@@ -5040,6 +5076,46 @@ var AirbnbClient = class {
|
|
|
5040
5076
|
}
|
|
5041
5077
|
};
|
|
5042
5078
|
|
|
5079
|
+
// src/aliexpress/client.ts
|
|
5080
|
+
var AliexpressClient = class {
|
|
5081
|
+
client;
|
|
5082
|
+
constructor(client) {
|
|
5083
|
+
this.client = client;
|
|
5084
|
+
}
|
|
5085
|
+
/** Get search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5086
|
+
async getSearchSuggestions(params = {}) {
|
|
5087
|
+
return this.client.request("/v1/aliexpress/autocomplete", { params });
|
|
5088
|
+
}
|
|
5089
|
+
/** Get category navigation. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5090
|
+
async getCategoryNavigation(params = {}) {
|
|
5091
|
+
return this.client.request("/v1/aliexpress/categories", { params });
|
|
5092
|
+
}
|
|
5093
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5094
|
+
async getProductDetail(productId, params = {}) {
|
|
5095
|
+
return this.client.request(`/v1/aliexpress/products/${productId}`, { params });
|
|
5096
|
+
}
|
|
5097
|
+
/** Get product reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5098
|
+
async getProductReviews(productId, params = {}) {
|
|
5099
|
+
return this.client.request(`/v1/aliexpress/products/${productId}/reviews`, { params });
|
|
5100
|
+
}
|
|
5101
|
+
/** Search products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5102
|
+
async searchProducts(params = {}) {
|
|
5103
|
+
return this.client.request("/v1/aliexpress/search", { params });
|
|
5104
|
+
}
|
|
5105
|
+
/** Get store profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5106
|
+
async getStoreProfile(storeId, params = {}) {
|
|
5107
|
+
return this.client.request(`/v1/aliexpress/stores/${storeId}`, { params });
|
|
5108
|
+
}
|
|
5109
|
+
/** Get store product categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5110
|
+
async getStoreProductCategories(storeId, params = {}) {
|
|
5111
|
+
return this.client.request(`/v1/aliexpress/stores/${storeId}/categories`, { params });
|
|
5112
|
+
}
|
|
5113
|
+
/** Get store products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5114
|
+
async getStoreProducts(storeId, params = {}) {
|
|
5115
|
+
return this.client.request(`/v1/aliexpress/stores/${storeId}/products`, { params });
|
|
5116
|
+
}
|
|
5117
|
+
};
|
|
5118
|
+
|
|
5043
5119
|
// src/amazon/search.ts
|
|
5044
5120
|
var SearchClient5 = class {
|
|
5045
5121
|
client;
|
|
@@ -5455,6 +5531,58 @@ var ShopeeClient = class {
|
|
|
5455
5531
|
}
|
|
5456
5532
|
};
|
|
5457
5533
|
|
|
5534
|
+
// src/target/client.ts
|
|
5535
|
+
var TargetClient = class {
|
|
5536
|
+
client;
|
|
5537
|
+
constructor(client) {
|
|
5538
|
+
this.client = client;
|
|
5539
|
+
}
|
|
5540
|
+
/** Get search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5541
|
+
async getSearchSuggestions(params = {}) {
|
|
5542
|
+
return this.client.request("/v1/target/autocomplete", { params });
|
|
5543
|
+
}
|
|
5544
|
+
/** Get categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5545
|
+
async getCategories(params = {}) {
|
|
5546
|
+
return this.client.request("/v1/target/categories", { params });
|
|
5547
|
+
}
|
|
5548
|
+
/** Browse a category. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5549
|
+
async browseACategory(params = {}) {
|
|
5550
|
+
return this.client.request("/v1/target/category", { params });
|
|
5551
|
+
}
|
|
5552
|
+
/** List supported markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5553
|
+
async listSupportedMarkets(params = {}) {
|
|
5554
|
+
return this.client.request("/v1/target/markets", { params });
|
|
5555
|
+
}
|
|
5556
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5557
|
+
async getProductDetail(tcin, params = {}) {
|
|
5558
|
+
return this.client.request(`/v1/target/products/${tcin}`, { params });
|
|
5559
|
+
}
|
|
5560
|
+
/** Get product availability. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5561
|
+
async getProductAvailability(tcin, params = {}) {
|
|
5562
|
+
return this.client.request(`/v1/target/products/${tcin}/availability`, { params });
|
|
5563
|
+
}
|
|
5564
|
+
/** Get product questions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5565
|
+
async getProductQuestions(tcin, params = {}) {
|
|
5566
|
+
return this.client.request(`/v1/target/products/${tcin}/questions`, { params });
|
|
5567
|
+
}
|
|
5568
|
+
/** Get product reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5569
|
+
async getProductReviews(tcin, params = {}) {
|
|
5570
|
+
return this.client.request(`/v1/target/products/${tcin}/reviews`, { params });
|
|
5571
|
+
}
|
|
5572
|
+
/** Search products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5573
|
+
async searchProducts(params = {}) {
|
|
5574
|
+
return this.client.request("/v1/target/search", { params });
|
|
5575
|
+
}
|
|
5576
|
+
/** Find nearby stores. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5577
|
+
async findNearbyStores(params = {}) {
|
|
5578
|
+
return this.client.request("/v1/target/stores", { params });
|
|
5579
|
+
}
|
|
5580
|
+
/** Get store detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5581
|
+
async getStoreDetail(storeId, params = {}) {
|
|
5582
|
+
return this.client.request(`/v1/target/stores/${storeId}`, { params });
|
|
5583
|
+
}
|
|
5584
|
+
};
|
|
5585
|
+
|
|
5458
5586
|
// src/tiktok/users.ts
|
|
5459
5587
|
var UsersClient5 = class {
|
|
5460
5588
|
client;
|
|
@@ -5934,6 +6062,10 @@ var TikTokClient = class {
|
|
|
5934
6062
|
async getTiktokAdDetail(adId, params = {}) {
|
|
5935
6063
|
return this._gen.request(`/v1/tiktok/ads/${adId}`, { params });
|
|
5936
6064
|
}
|
|
6065
|
+
/** Best-selling TikTok Shop products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6066
|
+
async bestSellingTiktokShopProducts(params = {}) {
|
|
6067
|
+
return this._gen.request("/v1/tiktok/shop/bestsellers", { params });
|
|
6068
|
+
}
|
|
5937
6069
|
/** TikTok Shop root categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5938
6070
|
async tiktokShopRootCategories(params = {}) {
|
|
5939
6071
|
return this._gen.request("/v1/tiktok/shop/categories", { params });
|
|
@@ -5942,6 +6074,14 @@ var TikTokClient = class {
|
|
|
5942
6074
|
async tiktokShopCategorySubcategoriesTopProducts(categoryId, params = {}) {
|
|
5943
6075
|
return this._gen.request(`/v1/tiktok/shop/categories/${categoryId}`, { params });
|
|
5944
6076
|
}
|
|
6077
|
+
/** TikTok Shop category products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6078
|
+
async tiktokShopCategoryProducts(categoryId, params = {}) {
|
|
6079
|
+
return this._gen.request(`/v1/tiktok/shop/categories/${categoryId}/products`, { params });
|
|
6080
|
+
}
|
|
6081
|
+
/** TikTok Shop regional mall feed. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6082
|
+
async tiktokShopRegionalMallFeed(params = {}) {
|
|
6083
|
+
return this._gen.request("/v1/tiktok/shop/mall", { params });
|
|
6084
|
+
}
|
|
5945
6085
|
/** TikTok Shop product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5946
6086
|
async tiktokShopProductDetail(productId, params = {}) {
|
|
5947
6087
|
return this._gen.request(`/v1/tiktok/shop/products/${productId}`, { params });
|
|
@@ -5950,6 +6090,10 @@ var TikTokClient = class {
|
|
|
5950
6090
|
async tiktokShopProductReviews(productId, params = {}) {
|
|
5951
6091
|
return this._gen.request(`/v1/tiktok/shop/products/${productId}/reviews`, { params });
|
|
5952
6092
|
}
|
|
6093
|
+
/** TikTok Shop theme ranking. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6094
|
+
async tiktokShopThemeRanking(rankId, params = {}) {
|
|
6095
|
+
return this._gen.request(`/v1/tiktok/shop/rankings/${rankId}`, { params });
|
|
6096
|
+
}
|
|
5953
6097
|
/** Search TikTok Shop products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5954
6098
|
async searchTiktokShopProducts(params = {}) {
|
|
5955
6099
|
return this._gen.request("/v1/tiktok/shop/search", { params });
|
|
@@ -6229,6 +6373,46 @@ var EbayClient = class {
|
|
|
6229
6373
|
}
|
|
6230
6374
|
};
|
|
6231
6375
|
|
|
6376
|
+
// src/etsy/client.ts
|
|
6377
|
+
var EtsyClient = class {
|
|
6378
|
+
client;
|
|
6379
|
+
constructor(client) {
|
|
6380
|
+
this.client = client;
|
|
6381
|
+
}
|
|
6382
|
+
/** Get search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6383
|
+
async getSearchSuggestions(params = {}) {
|
|
6384
|
+
return this.client.request("/v1/etsy/autocomplete", { params });
|
|
6385
|
+
}
|
|
6386
|
+
/** Get categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6387
|
+
async getCategories(params = {}) {
|
|
6388
|
+
return this.client.request("/v1/etsy/categories", { params });
|
|
6389
|
+
}
|
|
6390
|
+
/** Get listing detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6391
|
+
async getListingDetail(listingId, params = {}) {
|
|
6392
|
+
return this.client.request(`/v1/etsy/listings/${listingId}`, { params });
|
|
6393
|
+
}
|
|
6394
|
+
/** Get listing reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6395
|
+
async getListingReviews(listingId, params = {}) {
|
|
6396
|
+
return this.client.request(`/v1/etsy/listings/${listingId}/reviews`, { params });
|
|
6397
|
+
}
|
|
6398
|
+
/** Search listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6399
|
+
async searchListings(params = {}) {
|
|
6400
|
+
return this.client.request("/v1/etsy/search", { params });
|
|
6401
|
+
}
|
|
6402
|
+
/** Get shop profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6403
|
+
async getShopProfile(shopName, params = {}) {
|
|
6404
|
+
return this.client.request(`/v1/etsy/shops/${shopName}`, { params });
|
|
6405
|
+
}
|
|
6406
|
+
/** Get shop listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6407
|
+
async getShopListings(shopName, params = {}) {
|
|
6408
|
+
return this.client.request(`/v1/etsy/shops/${shopName}/listings`, { params });
|
|
6409
|
+
}
|
|
6410
|
+
/** Get shop reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6411
|
+
async getShopReviews(shopName, params = {}) {
|
|
6412
|
+
return this.client.request(`/v1/etsy/shops/${shopName}/reviews`, { params });
|
|
6413
|
+
}
|
|
6414
|
+
};
|
|
6415
|
+
|
|
6232
6416
|
// src/facebook/client.ts
|
|
6233
6417
|
var FacebookClient = class {
|
|
6234
6418
|
client;
|
|
@@ -6255,13 +6439,7 @@ var FacebookClient = class {
|
|
|
6255
6439
|
async getGroupDetail(groupId, params = {}) {
|
|
6256
6440
|
return this.client.request(`/v1/facebook/groups/${groupId}`, { params });
|
|
6257
6441
|
}
|
|
6258
|
-
/**
|
|
6259
|
-
* Get a public group's post feed, 3 posts per page. Generated from the OpenAPI spec; returns the raw response object.
|
|
6260
|
-
*
|
|
6261
|
-
* `params.sort` is `"newest"` (newest first by post time, the default) or `"relevance"`
|
|
6262
|
-
* (Facebook's top-posts ranking). Pass `end_cursor` back as `params.after` while
|
|
6263
|
-
* `has_next_page` for older posts, keeping the same sort.
|
|
6264
|
-
*/
|
|
6442
|
+
/** Get group posts. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6265
6443
|
async getGroupPosts(groupId, params = {}) {
|
|
6266
6444
|
return this.client.request(`/v1/facebook/groups/${groupId}/posts`, { params });
|
|
6267
6445
|
}
|
|
@@ -6701,6 +6879,44 @@ var GumtreeClient = class {
|
|
|
6701
6879
|
async listMarkets() {
|
|
6702
6880
|
return this.client.request("/v1/gumtree/markets");
|
|
6703
6881
|
}
|
|
6882
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
6883
|
+
/** Search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6884
|
+
async searchSuggestions(params = {}) {
|
|
6885
|
+
return this.client.request("/v1/gumtree/autocomplete", { params });
|
|
6886
|
+
}
|
|
6887
|
+
/** List categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6888
|
+
async getListcategories(params = {}) {
|
|
6889
|
+
return this.client.request("/v1/gumtree/categories", { params });
|
|
6890
|
+
}
|
|
6891
|
+
/** Get listing. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6892
|
+
async getGetlisting(listingId, params = {}) {
|
|
6893
|
+
return this.client.request(`/v1/gumtree/listings/${listingId}`, { params });
|
|
6894
|
+
}
|
|
6895
|
+
/** Get seller listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6896
|
+
async getGetsellerlistings(listingId, params = {}) {
|
|
6897
|
+
return this.client.request(`/v1/gumtree/listings/${listingId}/seller-listings`, { params });
|
|
6898
|
+
}
|
|
6899
|
+
/** List locations. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6900
|
+
async getListlocations(params = {}) {
|
|
6901
|
+
return this.client.request("/v1/gumtree/locations", { params });
|
|
6902
|
+
}
|
|
6903
|
+
/** Location suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6904
|
+
async locationSuggestions(params = {}) {
|
|
6905
|
+
return this.client.request("/v1/gumtree/locations/autocomplete", { params });
|
|
6906
|
+
}
|
|
6907
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6908
|
+
async getListmarkets(params = {}) {
|
|
6909
|
+
return this.client.request("/v1/gumtree/markets", { params });
|
|
6910
|
+
}
|
|
6911
|
+
/** Search listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6912
|
+
async searchListings(params = {}) {
|
|
6913
|
+
return this.client.request("/v1/gumtree/search", { params });
|
|
6914
|
+
}
|
|
6915
|
+
/** Get search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6916
|
+
async getSearchFilters(params = {}) {
|
|
6917
|
+
return this.client.request("/v1/gumtree/search/filters", { params });
|
|
6918
|
+
}
|
|
6919
|
+
// --- END generated by sdk/codegen/facade ---
|
|
6704
6920
|
};
|
|
6705
6921
|
function treeParams(options) {
|
|
6706
6922
|
const { parent_id, market } = typeof options === "object" ? options : { parent_id: options };
|
|
@@ -7032,8 +7248,6 @@ var BaiduClient = class {
|
|
|
7032
7248
|
/**
|
|
7033
7249
|
* Search baidu.com — the web SERP.
|
|
7034
7250
|
*
|
|
7035
|
-
* Costs 5 credits.
|
|
7036
|
-
*
|
|
7037
7251
|
* @param query - Search keywords, e.g. `"咖啡机"` or `"coffee machine"` (required).
|
|
7038
7252
|
* @param options - Optional parameters (page, num, language, timeFrom, timeTo).
|
|
7039
7253
|
* @returns Search response with organic results and Baidu's related searches.
|
|
@@ -7055,8 +7269,6 @@ var BaiduClient = class {
|
|
|
7055
7269
|
/**
|
|
7056
7270
|
* Search the Baidu news vertical.
|
|
7057
7271
|
*
|
|
7058
|
-
* Costs 5 credits.
|
|
7059
|
-
*
|
|
7060
7272
|
* @param query - Search keywords, e.g. `"人工智能"` (required).
|
|
7061
7273
|
* @param options - Optional parameters (page, sort).
|
|
7062
7274
|
* @returns News response with articles carrying publisher, date and real URLs.
|
|
@@ -7071,8 +7283,6 @@ var BaiduClient = class {
|
|
|
7071
7283
|
/**
|
|
7072
7284
|
* Search Baidu images.
|
|
7073
7285
|
*
|
|
7074
|
-
* Costs 5 credits.
|
|
7075
|
-
*
|
|
7076
7286
|
* @param query - Search keywords, e.g. `"猫"` (required).
|
|
7077
7287
|
* @param options - Optional parameters (page). Baidu serves 30 images per page.
|
|
7078
7288
|
* @returns Images response with full-size image URLs, Baidu-hosted thumbnail
|
|
@@ -7088,8 +7298,6 @@ var BaiduClient = class {
|
|
|
7088
7298
|
/**
|
|
7089
7299
|
* Baidu search-box suggestions — the cheapest call in this API.
|
|
7090
7300
|
*
|
|
7091
|
-
* Costs 1 credit.
|
|
7092
|
-
*
|
|
7093
7301
|
* @param query - Partial search term, e.g. `"咖啡"` or `"coff"` (required).
|
|
7094
7302
|
* @returns Autocomplete response with Baidu's suggestions for the term.
|
|
7095
7303
|
* @throws AuthenticationError - If the API key is invalid.
|
|
@@ -7102,6 +7310,54 @@ var BaiduClient = class {
|
|
|
7102
7310
|
}
|
|
7103
7311
|
};
|
|
7104
7312
|
|
|
7313
|
+
// src/bestbuy/client.ts
|
|
7314
|
+
var BestbuyClient = class {
|
|
7315
|
+
client;
|
|
7316
|
+
constructor(client) {
|
|
7317
|
+
this.client = client;
|
|
7318
|
+
}
|
|
7319
|
+
/** Get search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7320
|
+
async getSearchSuggestions(params = {}) {
|
|
7321
|
+
return this.client.request("/v1/bestbuy/autocomplete", { params });
|
|
7322
|
+
}
|
|
7323
|
+
/** Get categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7324
|
+
async getCategories(params = {}) {
|
|
7325
|
+
return this.client.request("/v1/bestbuy/categories", { params });
|
|
7326
|
+
}
|
|
7327
|
+
/** Browse a category. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7328
|
+
async browseACategory(params = {}) {
|
|
7329
|
+
return this.client.request("/v1/bestbuy/category", { params });
|
|
7330
|
+
}
|
|
7331
|
+
/** Get laptop and computer deals. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7332
|
+
async getLaptopAndComputerDeals(params = {}) {
|
|
7333
|
+
return this.client.request("/v1/bestbuy/deals", { params });
|
|
7334
|
+
}
|
|
7335
|
+
/** List supported markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7336
|
+
async listSupportedMarkets(params = {}) {
|
|
7337
|
+
return this.client.request("/v1/bestbuy/markets", { params });
|
|
7338
|
+
}
|
|
7339
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7340
|
+
async getProductDetail(sku, params = {}) {
|
|
7341
|
+
return this.client.request(`/v1/bestbuy/products/${sku}`, { params });
|
|
7342
|
+
}
|
|
7343
|
+
/** Get product availability. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7344
|
+
async getProductAvailability(sku, params = {}) {
|
|
7345
|
+
return this.client.request(`/v1/bestbuy/products/${sku}/availability`, { params });
|
|
7346
|
+
}
|
|
7347
|
+
/** Get product questions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7348
|
+
async getProductQuestions(sku, params = {}) {
|
|
7349
|
+
return this.client.request(`/v1/bestbuy/products/${sku}/questions`, { params });
|
|
7350
|
+
}
|
|
7351
|
+
/** Get product reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7352
|
+
async getProductReviews(sku, params = {}) {
|
|
7353
|
+
return this.client.request(`/v1/bestbuy/products/${sku}/reviews`, { params });
|
|
7354
|
+
}
|
|
7355
|
+
/** Search products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7356
|
+
async searchProducts(params = {}) {
|
|
7357
|
+
return this.client.request("/v1/bestbuy/search", { params });
|
|
7358
|
+
}
|
|
7359
|
+
};
|
|
7360
|
+
|
|
7105
7361
|
// src/naver/search.ts
|
|
7106
7362
|
var SearchClient12 = class {
|
|
7107
7363
|
constructor(client) {
|
|
@@ -7802,6 +8058,7 @@ var ShoppingLiveClient = class {
|
|
|
7802
8058
|
|
|
7803
8059
|
// src/naver/client.ts
|
|
7804
8060
|
var NaverClient = class {
|
|
8061
|
+
_gen;
|
|
7805
8062
|
/** Web / news / blog search and autocomplete */
|
|
7806
8063
|
search;
|
|
7807
8064
|
/** Local search, Place detail, reviews and photos */
|
|
@@ -7824,6 +8081,7 @@ var NaverClient = class {
|
|
|
7824
8081
|
* @param client - The base HTTP client for making requests.
|
|
7825
8082
|
*/
|
|
7826
8083
|
constructor(client) {
|
|
8084
|
+
this._gen = client;
|
|
7827
8085
|
this.search = new SearchClient12(client);
|
|
7828
8086
|
this.places = new PlacesClient(client);
|
|
7829
8087
|
this.shopping = new ShoppingClient2(client);
|
|
@@ -7833,6 +8091,52 @@ var NaverClient = class {
|
|
|
7833
8091
|
this.products = new ProductsClient5(client);
|
|
7834
8092
|
this.live = new ShoppingLiveClient(client);
|
|
7835
8093
|
}
|
|
8094
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
8095
|
+
/** Search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8096
|
+
async searchSuggestions(params = {}) {
|
|
8097
|
+
return this._gen.request("/v1/naver/autocomplete", { params });
|
|
8098
|
+
}
|
|
8099
|
+
/** Naver blog search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8100
|
+
async naverBlogSearch(params = {}) {
|
|
8101
|
+
return this._gen.request("/v1/naver/blog", { params });
|
|
8102
|
+
}
|
|
8103
|
+
/** Naver Place/Local search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8104
|
+
async naverPlaceLocalSearch(params = {}) {
|
|
8105
|
+
return this._gen.request("/v1/naver/local", { params });
|
|
8106
|
+
}
|
|
8107
|
+
/** Naver news search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8108
|
+
async naverNewsSearch(params = {}) {
|
|
8109
|
+
return this._gen.request("/v1/naver/news", { params });
|
|
8110
|
+
}
|
|
8111
|
+
/** Naver place detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8112
|
+
async naverPlaceDetail(placeId, params = {}) {
|
|
8113
|
+
return this._gen.request(`/v1/naver/place/${placeId}`, { params });
|
|
8114
|
+
}
|
|
8115
|
+
/** Naver place visitor reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8116
|
+
async naverPlaceVisitorReviews(placeId, params = {}) {
|
|
8117
|
+
return this._gen.request(`/v1/naver/place/${placeId}/reviews`, { params });
|
|
8118
|
+
}
|
|
8119
|
+
/** Naver web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8120
|
+
async naverWebSearch(params = {}) {
|
|
8121
|
+
return this._gen.request("/v1/naver/search", { params });
|
|
8122
|
+
}
|
|
8123
|
+
/** Naver Shopping bestseller rankings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8124
|
+
async naverShoppingBestsellerRankings(params = {}) {
|
|
8125
|
+
return this._gen.request("/v1/naver/shopping/bestsellers", { params });
|
|
8126
|
+
}
|
|
8127
|
+
/** Naver Shopping category reference. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8128
|
+
async naverShoppingCategoryReference(params = {}) {
|
|
8129
|
+
return this._gen.request("/v1/naver/shopping/categories", { params });
|
|
8130
|
+
}
|
|
8131
|
+
/** Naver DataLab shopping keyword insight. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8132
|
+
async naverDatalabShoppingKeywordInsight(params = {}) {
|
|
8133
|
+
return this._gen.request("/v1/naver/shopping/insight", { params });
|
|
8134
|
+
}
|
|
8135
|
+
/** Naver Shopping trending keyword rankings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8136
|
+
async naverShoppingTrendingKeywordRankings(params = {}) {
|
|
8137
|
+
return this._gen.request("/v1/naver/shopping/keywords", { params });
|
|
8138
|
+
}
|
|
8139
|
+
// --- END generated by sdk/codegen/facade ---
|
|
7836
8140
|
};
|
|
7837
8141
|
|
|
7838
8142
|
// src/yahoo/search.ts
|
|
@@ -9265,8 +9569,6 @@ var SearchClient19 = class {
|
|
|
9265
9569
|
/**
|
|
9266
9570
|
* Search LoopNet for for-lease / for-sale / auction commercial listings.
|
|
9267
9571
|
*
|
|
9268
|
-
* Costs 10 credits.
|
|
9269
|
-
*
|
|
9270
9572
|
* @param params - Search parameters including location, filters, and pagination.
|
|
9271
9573
|
* @returns Search results with listing cards and pagination metadata.
|
|
9272
9574
|
* @throws AuthenticationError - If the API key is invalid.
|
|
@@ -9299,8 +9601,6 @@ var ListingsClient2 = class {
|
|
|
9299
9601
|
/**
|
|
9300
9602
|
* Get a single LoopNet listing's full detail by listing id.
|
|
9301
9603
|
*
|
|
9302
|
-
* Costs 12 credits.
|
|
9303
|
-
*
|
|
9304
9604
|
* @param listingId - The LoopNet listing id.
|
|
9305
9605
|
* @param params - Optional market selector.
|
|
9306
9606
|
* @returns Listing detail response.
|
|
@@ -9322,8 +9622,6 @@ var BrokersClient = class {
|
|
|
9322
9622
|
/**
|
|
9323
9623
|
* Get a LoopNet broker's profile and their active listings.
|
|
9324
9624
|
*
|
|
9325
|
-
* Costs 8 credits.
|
|
9326
|
-
*
|
|
9327
9625
|
* @param slug - The broker's profile URL slug.
|
|
9328
9626
|
* @param brokerId - The LoopNet broker id.
|
|
9329
9627
|
* @param params - Optional market selector.
|
|
@@ -9423,8 +9721,6 @@ var DepopClient = class {
|
|
|
9423
9721
|
/**
|
|
9424
9722
|
* Search Depop for products.
|
|
9425
9723
|
*
|
|
9426
|
-
* Costs 10 credits.
|
|
9427
|
-
*
|
|
9428
9724
|
* @param query - Search keywords (required).
|
|
9429
9725
|
* @param options - Optional parameters (market, perPage, page, price/brand/
|
|
9430
9726
|
* size/colour/condition/gender filters, sort).
|
|
@@ -9453,8 +9749,6 @@ var DepopClient = class {
|
|
|
9453
9749
|
/**
|
|
9454
9750
|
* Get a single Depop product's full detail by slug.
|
|
9455
9751
|
*
|
|
9456
|
-
* Costs 10 credits.
|
|
9457
|
-
*
|
|
9458
9752
|
* @param slug - The Depop product slug.
|
|
9459
9753
|
* @param options - Optional parameters (market).
|
|
9460
9754
|
* @returns Full product detail.
|
|
@@ -9468,8 +9762,6 @@ var DepopClient = class {
|
|
|
9468
9762
|
/**
|
|
9469
9763
|
* Get a Depop shop / seller profile by username.
|
|
9470
9764
|
*
|
|
9471
|
-
* Costs 10 credits.
|
|
9472
|
-
*
|
|
9473
9765
|
* @param username - The Depop seller username.
|
|
9474
9766
|
* @param options - Optional parameters (market).
|
|
9475
9767
|
* @returns Shop profile.
|
|
@@ -9483,8 +9775,6 @@ var DepopClient = class {
|
|
|
9483
9775
|
/**
|
|
9484
9776
|
* Get a Depop seller's products.
|
|
9485
9777
|
*
|
|
9486
|
-
* Costs 10 credits.
|
|
9487
|
-
*
|
|
9488
9778
|
* @param username - The Depop seller username.
|
|
9489
9779
|
* @param options - Optional parameters (market, perPage, page).
|
|
9490
9780
|
* @returns User products response with product cards and pagination meta.
|
|
@@ -9530,8 +9820,6 @@ var WallapopClient = class {
|
|
|
9530
9820
|
* Needs a query, a `categoryId`, or both — unless `nextPage` is given, in
|
|
9531
9821
|
* which case every other parameter is ignored.
|
|
9532
9822
|
*
|
|
9533
|
-
* Costs 5 credits.
|
|
9534
|
-
*
|
|
9535
9823
|
* @param query - Search text, e.g. "iphone 14" (optional with `categoryId` or `nextPage`).
|
|
9536
9824
|
* @param options - Optional parameters (market, location/radius, category,
|
|
9537
9825
|
* price, condition, brand/model/colour, cars filters, sort, cursor).
|
|
@@ -9573,8 +9861,6 @@ var WallapopClient = class {
|
|
|
9573
9861
|
/**
|
|
9574
9862
|
* Get a single listing's full detail.
|
|
9575
9863
|
*
|
|
9576
|
-
* Costs 5 credits.
|
|
9577
|
-
*
|
|
9578
9864
|
* @param itemId - Listing id (e.g. "nzxeknm5x562") or listing slug.
|
|
9579
9865
|
* @param options - Optional parameters (market).
|
|
9580
9866
|
* @returns Full listing detail with attributes, counters and location.
|
|
@@ -9590,8 +9876,6 @@ var WallapopClient = class {
|
|
|
9590
9876
|
* Get a seller's profile with ratings, sales counters, response rate and
|
|
9591
9877
|
* verifications.
|
|
9592
9878
|
*
|
|
9593
|
-
* Costs 5 credits.
|
|
9594
|
-
*
|
|
9595
9879
|
* @param userId - User id (e.g. "dqjwdd53wwzo") or profile slug (e.g. "alexc-25115753").
|
|
9596
9880
|
* @param options - Optional parameters (market).
|
|
9597
9881
|
* @returns User profile.
|
|
@@ -9606,8 +9890,6 @@ var WallapopClient = class {
|
|
|
9606
9890
|
/**
|
|
9607
9891
|
* Get a seller's live listings (40 per page).
|
|
9608
9892
|
*
|
|
9609
|
-
* Costs 5 credits.
|
|
9610
|
-
*
|
|
9611
9893
|
* @param userId - User id or profile slug.
|
|
9612
9894
|
* @param options - Optional parameters (market, nextPage).
|
|
9613
9895
|
* @returns The seller's listings and the next-page cursor.
|
|
@@ -9622,8 +9904,6 @@ var WallapopClient = class {
|
|
|
9622
9904
|
/**
|
|
9623
9905
|
* Get the reviews a seller received, newest first (40 per page).
|
|
9624
9906
|
*
|
|
9625
|
-
* Costs 5 credits.
|
|
9626
|
-
*
|
|
9627
9907
|
* @param userId - User id or profile slug.
|
|
9628
9908
|
* @param options - Optional parameters (market, nextPage).
|
|
9629
9909
|
* @returns Reviews and the next-page cursor.
|
|
@@ -9638,8 +9918,6 @@ var WallapopClient = class {
|
|
|
9638
9918
|
/**
|
|
9639
9919
|
* Get Wallapop's search-box suggestions for a partial query.
|
|
9640
9920
|
*
|
|
9641
|
-
* Costs 1 credit.
|
|
9642
|
-
*
|
|
9643
9921
|
* @param query - Partial search text, e.g. "bici".
|
|
9644
9922
|
* @param options - Optional parameters (market).
|
|
9645
9923
|
* @returns Autocomplete suggestions.
|
|
@@ -9652,8 +9930,6 @@ var WallapopClient = class {
|
|
|
9652
9930
|
/**
|
|
9653
9931
|
* Get the full category tree; ids are usable as the search `categoryId`.
|
|
9654
9932
|
*
|
|
9655
|
-
* Costs 1 credit.
|
|
9656
|
-
*
|
|
9657
9933
|
* @param options - Optional parameters (market — localises names).
|
|
9658
9934
|
* @returns Category tree.
|
|
9659
9935
|
*/
|
|
@@ -9666,8 +9942,6 @@ var WallapopClient = class {
|
|
|
9666
9942
|
* Get the search filters Wallapop offers for a category and/or query,
|
|
9667
9943
|
* with their option ids.
|
|
9668
9944
|
*
|
|
9669
|
-
* Costs 2 credits.
|
|
9670
|
-
*
|
|
9671
9945
|
* @param options - Optional parameters (categoryId, query, market).
|
|
9672
9946
|
* @returns Available filters.
|
|
9673
9947
|
*/
|
|
@@ -9684,8 +9958,6 @@ var WallapopClient = class {
|
|
|
9684
9958
|
* Get a filter's long option list (brands, models) that Wallapop serves
|
|
9685
9959
|
* separately — filters flagged `options_endpoint` in `listFilters`.
|
|
9686
9960
|
*
|
|
9687
|
-
* Costs 2 credits.
|
|
9688
|
-
*
|
|
9689
9961
|
* @param filterId - Filter id, e.g. "brand".
|
|
9690
9962
|
* @param options - Optional parameters (categoryId, query, market).
|
|
9691
9963
|
* @returns The filter's options.
|
|
@@ -9890,7 +10162,7 @@ var AskClient = class {
|
|
|
9890
10162
|
/**
|
|
9891
10163
|
* Ask ChatGPT a question and get the answer with its sources.
|
|
9892
10164
|
*
|
|
9893
|
-
*
|
|
10165
|
+
* Typical latency is 20-25s ungrounded, 30-70s with web search.
|
|
9894
10166
|
*
|
|
9895
10167
|
* @param params - Ask parameters.
|
|
9896
10168
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
@@ -9935,8 +10207,6 @@ var BrandClient = class {
|
|
|
9935
10207
|
/**
|
|
9936
10208
|
* Analyse how a brand shows up in ChatGPT's answer to a prompt.
|
|
9937
10209
|
*
|
|
9938
|
-
* Costs 25 credits.
|
|
9939
|
-
*
|
|
9940
10210
|
* @param params - Brand-visibility parameters.
|
|
9941
10211
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
9942
10212
|
* @param params.brand - The brand name to look for in the answer.
|
|
@@ -9987,8 +10257,6 @@ var ReferenceClient16 = class {
|
|
|
9987
10257
|
/**
|
|
9988
10258
|
* Get the models chatgpt.com currently offers.
|
|
9989
10259
|
*
|
|
9990
|
-
* Costs 1 credit.
|
|
9991
|
-
*
|
|
9992
10260
|
* @param params - Optional parameters.
|
|
9993
10261
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
9994
10262
|
* @returns The available models.
|
|
@@ -10187,6 +10455,8 @@ var ScrapeBadger = class {
|
|
|
10187
10455
|
apartments;
|
|
10188
10456
|
/** App_Store API client. (Generated from the OpenAPI spec.) */
|
|
10189
10457
|
app_store;
|
|
10458
|
+
/** Asos API client. (Generated from the OpenAPI spec.) */
|
|
10459
|
+
asos;
|
|
10190
10460
|
/** Instagram scraper API client — users, media, search, hashtags, locations, audio */
|
|
10191
10461
|
instagram;
|
|
10192
10462
|
/** Redfin scraper API client — search, property, agent, autocomplete, markets (redfin.com, US) */
|
|
@@ -10196,13 +10466,19 @@ var ScrapeBadger = class {
|
|
|
10196
10466
|
account;
|
|
10197
10467
|
/** Airbnb API client. (Generated from the OpenAPI spec.) */
|
|
10198
10468
|
airbnb;
|
|
10469
|
+
/** Aliexpress API client. (Generated from the OpenAPI spec.) */
|
|
10470
|
+
aliexpress;
|
|
10199
10471
|
amazon;
|
|
10200
10472
|
/** Shopee scraper API client — 6 endpoints across 11 markets */
|
|
10201
10473
|
shopee;
|
|
10474
|
+
/** Target API client. (Generated from the OpenAPI spec.) */
|
|
10475
|
+
target;
|
|
10202
10476
|
/** TikTok scraper API client — 26 endpoints */
|
|
10203
10477
|
tiktok;
|
|
10204
10478
|
/** eBay scraper API client — 12 endpoints across 18 markets */
|
|
10205
10479
|
ebay;
|
|
10480
|
+
/** Etsy API client. (Generated from the OpenAPI spec.) */
|
|
10481
|
+
etsy;
|
|
10206
10482
|
/** Facebook API client. (Generated from the OpenAPI spec.) */
|
|
10207
10483
|
facebook;
|
|
10208
10484
|
/** Walmart scraper API client — 11 endpoints (walmart.com, US-only) */
|
|
@@ -10217,6 +10493,8 @@ var ScrapeBadger = class {
|
|
|
10217
10493
|
booking;
|
|
10218
10494
|
/** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
|
|
10219
10495
|
baidu;
|
|
10496
|
+
/** Bestbuy API client. (Generated from the OpenAPI spec.) */
|
|
10497
|
+
bestbuy;
|
|
10220
10498
|
/** Naver scraper API client — 55 endpoints (search, places, shopping, stores, content, reviews, products, shopping live; naver.com, South Korea) */
|
|
10221
10499
|
naver;
|
|
10222
10500
|
/** Yahoo scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) across 35 markets */
|
|
@@ -10290,14 +10568,18 @@ var ScrapeBadger = class {
|
|
|
10290
10568
|
this.reddit = new RedditClient(this.baseClient);
|
|
10291
10569
|
this.apartments = new ApartmentsClient(this.baseClient);
|
|
10292
10570
|
this.app_store = new AppStoreClient(this.baseClient);
|
|
10571
|
+
this.asos = new AsosClient(this.baseClient);
|
|
10293
10572
|
this.instagram = new InstagramClient(this.baseClient);
|
|
10294
10573
|
this.redfin = new RedfinClient(this.baseClient);
|
|
10295
10574
|
this.account = new AccountClient(this.baseClient);
|
|
10296
10575
|
this.airbnb = new AirbnbClient(this.baseClient);
|
|
10576
|
+
this.aliexpress = new AliexpressClient(this.baseClient);
|
|
10297
10577
|
this.amazon = new AmazonClient(this.baseClient);
|
|
10298
10578
|
this.shopee = new ShopeeClient(this.baseClient);
|
|
10579
|
+
this.target = new TargetClient(this.baseClient);
|
|
10299
10580
|
this.tiktok = new TikTokClient(this.baseClient);
|
|
10300
10581
|
this.ebay = new EbayClient(this.baseClient);
|
|
10582
|
+
this.etsy = new EtsyClient(this.baseClient);
|
|
10301
10583
|
this.facebook = new FacebookClient(this.baseClient);
|
|
10302
10584
|
this.walmart = new WalmartClient(this.baseClient);
|
|
10303
10585
|
this.gumtree = new GumtreeClient(this.baseClient);
|
|
@@ -10305,6 +10587,7 @@ var ScrapeBadger = class {
|
|
|
10305
10587
|
this.bing = new BingClient(this.baseClient);
|
|
10306
10588
|
this.booking = new BookingClient(this.baseClient);
|
|
10307
10589
|
this.baidu = new BaiduClient(this.baseClient);
|
|
10590
|
+
this.bestbuy = new BestbuyClient(this.baseClient);
|
|
10308
10591
|
this.naver = new NaverClient(this.baseClient);
|
|
10309
10592
|
this.yahoo = new YahooClient(this.baseClient);
|
|
10310
10593
|
this.yandex = new YandexClient(this.baseClient);
|