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.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
|
|
|
3
3
|
import WebSocket from 'ws';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.
|
|
6
|
+
var SDK_VERSION = "0.62.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -4503,6 +4503,42 @@ var AppStoreClient = class {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
};
|
|
4505
4505
|
|
|
4506
|
+
// src/asos/client.ts
|
|
4507
|
+
var AsosClient = class {
|
|
4508
|
+
client;
|
|
4509
|
+
constructor(client) {
|
|
4510
|
+
this.client = client;
|
|
4511
|
+
}
|
|
4512
|
+
/** Search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4513
|
+
async searchSuggestions(params = {}) {
|
|
4514
|
+
return this.client.request("/v1/asos/autocomplete", { params });
|
|
4515
|
+
}
|
|
4516
|
+
/** List categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4517
|
+
async listCategories(params = {}) {
|
|
4518
|
+
return this.client.request("/v1/asos/categories", { params });
|
|
4519
|
+
}
|
|
4520
|
+
/** List search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4521
|
+
async listSearchFilters(params = {}) {
|
|
4522
|
+
return this.client.request("/v1/asos/filters", { params });
|
|
4523
|
+
}
|
|
4524
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4525
|
+
async listMarkets(params = {}) {
|
|
4526
|
+
return this.client.request("/v1/asos/markets", { params });
|
|
4527
|
+
}
|
|
4528
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4529
|
+
async getProductDetail(productId, params = {}) {
|
|
4530
|
+
return this.client.request(`/v1/asos/products/${productId}`, { params });
|
|
4531
|
+
}
|
|
4532
|
+
/** Search products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4533
|
+
async searchProducts(params = {}) {
|
|
4534
|
+
return this.client.request("/v1/asos/search", { params });
|
|
4535
|
+
}
|
|
4536
|
+
/** Get stock and prices. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4537
|
+
async getStockAndPrices(params = {}) {
|
|
4538
|
+
return this.client.request("/v1/asos/stock-price", { params });
|
|
4539
|
+
}
|
|
4540
|
+
};
|
|
4541
|
+
|
|
4506
4542
|
// src/instagram/users.ts
|
|
4507
4543
|
var UsersClient4 = class {
|
|
4508
4544
|
client;
|
|
@@ -5034,6 +5070,46 @@ var AirbnbClient = class {
|
|
|
5034
5070
|
}
|
|
5035
5071
|
};
|
|
5036
5072
|
|
|
5073
|
+
// src/aliexpress/client.ts
|
|
5074
|
+
var AliexpressClient = class {
|
|
5075
|
+
client;
|
|
5076
|
+
constructor(client) {
|
|
5077
|
+
this.client = client;
|
|
5078
|
+
}
|
|
5079
|
+
/** Get search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5080
|
+
async getSearchSuggestions(params = {}) {
|
|
5081
|
+
return this.client.request("/v1/aliexpress/autocomplete", { params });
|
|
5082
|
+
}
|
|
5083
|
+
/** Get category navigation. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5084
|
+
async getCategoryNavigation(params = {}) {
|
|
5085
|
+
return this.client.request("/v1/aliexpress/categories", { params });
|
|
5086
|
+
}
|
|
5087
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5088
|
+
async getProductDetail(productId, params = {}) {
|
|
5089
|
+
return this.client.request(`/v1/aliexpress/products/${productId}`, { params });
|
|
5090
|
+
}
|
|
5091
|
+
/** Get product reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5092
|
+
async getProductReviews(productId, params = {}) {
|
|
5093
|
+
return this.client.request(`/v1/aliexpress/products/${productId}/reviews`, { params });
|
|
5094
|
+
}
|
|
5095
|
+
/** Search products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5096
|
+
async searchProducts(params = {}) {
|
|
5097
|
+
return this.client.request("/v1/aliexpress/search", { params });
|
|
5098
|
+
}
|
|
5099
|
+
/** Get store profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5100
|
+
async getStoreProfile(storeId, params = {}) {
|
|
5101
|
+
return this.client.request(`/v1/aliexpress/stores/${storeId}`, { params });
|
|
5102
|
+
}
|
|
5103
|
+
/** Get store product categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5104
|
+
async getStoreProductCategories(storeId, params = {}) {
|
|
5105
|
+
return this.client.request(`/v1/aliexpress/stores/${storeId}/categories`, { params });
|
|
5106
|
+
}
|
|
5107
|
+
/** Get store products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5108
|
+
async getStoreProducts(storeId, params = {}) {
|
|
5109
|
+
return this.client.request(`/v1/aliexpress/stores/${storeId}/products`, { params });
|
|
5110
|
+
}
|
|
5111
|
+
};
|
|
5112
|
+
|
|
5037
5113
|
// src/amazon/search.ts
|
|
5038
5114
|
var SearchClient5 = class {
|
|
5039
5115
|
client;
|
|
@@ -5449,6 +5525,58 @@ var ShopeeClient = class {
|
|
|
5449
5525
|
}
|
|
5450
5526
|
};
|
|
5451
5527
|
|
|
5528
|
+
// src/target/client.ts
|
|
5529
|
+
var TargetClient = class {
|
|
5530
|
+
client;
|
|
5531
|
+
constructor(client) {
|
|
5532
|
+
this.client = client;
|
|
5533
|
+
}
|
|
5534
|
+
/** Get search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5535
|
+
async getSearchSuggestions(params = {}) {
|
|
5536
|
+
return this.client.request("/v1/target/autocomplete", { params });
|
|
5537
|
+
}
|
|
5538
|
+
/** Get categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5539
|
+
async getCategories(params = {}) {
|
|
5540
|
+
return this.client.request("/v1/target/categories", { params });
|
|
5541
|
+
}
|
|
5542
|
+
/** Browse a category. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5543
|
+
async browseACategory(params = {}) {
|
|
5544
|
+
return this.client.request("/v1/target/category", { params });
|
|
5545
|
+
}
|
|
5546
|
+
/** List supported markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5547
|
+
async listSupportedMarkets(params = {}) {
|
|
5548
|
+
return this.client.request("/v1/target/markets", { params });
|
|
5549
|
+
}
|
|
5550
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5551
|
+
async getProductDetail(tcin, params = {}) {
|
|
5552
|
+
return this.client.request(`/v1/target/products/${tcin}`, { params });
|
|
5553
|
+
}
|
|
5554
|
+
/** Get product availability. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5555
|
+
async getProductAvailability(tcin, params = {}) {
|
|
5556
|
+
return this.client.request(`/v1/target/products/${tcin}/availability`, { params });
|
|
5557
|
+
}
|
|
5558
|
+
/** Get product questions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5559
|
+
async getProductQuestions(tcin, params = {}) {
|
|
5560
|
+
return this.client.request(`/v1/target/products/${tcin}/questions`, { params });
|
|
5561
|
+
}
|
|
5562
|
+
/** Get product reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5563
|
+
async getProductReviews(tcin, params = {}) {
|
|
5564
|
+
return this.client.request(`/v1/target/products/${tcin}/reviews`, { params });
|
|
5565
|
+
}
|
|
5566
|
+
/** Search products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5567
|
+
async searchProducts(params = {}) {
|
|
5568
|
+
return this.client.request("/v1/target/search", { params });
|
|
5569
|
+
}
|
|
5570
|
+
/** Find nearby stores. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5571
|
+
async findNearbyStores(params = {}) {
|
|
5572
|
+
return this.client.request("/v1/target/stores", { params });
|
|
5573
|
+
}
|
|
5574
|
+
/** Get store detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5575
|
+
async getStoreDetail(storeId, params = {}) {
|
|
5576
|
+
return this.client.request(`/v1/target/stores/${storeId}`, { params });
|
|
5577
|
+
}
|
|
5578
|
+
};
|
|
5579
|
+
|
|
5452
5580
|
// src/tiktok/users.ts
|
|
5453
5581
|
var UsersClient5 = class {
|
|
5454
5582
|
client;
|
|
@@ -5928,6 +6056,10 @@ var TikTokClient = class {
|
|
|
5928
6056
|
async getTiktokAdDetail(adId, params = {}) {
|
|
5929
6057
|
return this._gen.request(`/v1/tiktok/ads/${adId}`, { params });
|
|
5930
6058
|
}
|
|
6059
|
+
/** Best-selling TikTok Shop products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6060
|
+
async bestSellingTiktokShopProducts(params = {}) {
|
|
6061
|
+
return this._gen.request("/v1/tiktok/shop/bestsellers", { params });
|
|
6062
|
+
}
|
|
5931
6063
|
/** TikTok Shop root categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5932
6064
|
async tiktokShopRootCategories(params = {}) {
|
|
5933
6065
|
return this._gen.request("/v1/tiktok/shop/categories", { params });
|
|
@@ -5936,6 +6068,14 @@ var TikTokClient = class {
|
|
|
5936
6068
|
async tiktokShopCategorySubcategoriesTopProducts(categoryId, params = {}) {
|
|
5937
6069
|
return this._gen.request(`/v1/tiktok/shop/categories/${categoryId}`, { params });
|
|
5938
6070
|
}
|
|
6071
|
+
/** TikTok Shop category products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6072
|
+
async tiktokShopCategoryProducts(categoryId, params = {}) {
|
|
6073
|
+
return this._gen.request(`/v1/tiktok/shop/categories/${categoryId}/products`, { params });
|
|
6074
|
+
}
|
|
6075
|
+
/** TikTok Shop regional mall feed. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6076
|
+
async tiktokShopRegionalMallFeed(params = {}) {
|
|
6077
|
+
return this._gen.request("/v1/tiktok/shop/mall", { params });
|
|
6078
|
+
}
|
|
5939
6079
|
/** TikTok Shop product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5940
6080
|
async tiktokShopProductDetail(productId, params = {}) {
|
|
5941
6081
|
return this._gen.request(`/v1/tiktok/shop/products/${productId}`, { params });
|
|
@@ -5944,6 +6084,10 @@ var TikTokClient = class {
|
|
|
5944
6084
|
async tiktokShopProductReviews(productId, params = {}) {
|
|
5945
6085
|
return this._gen.request(`/v1/tiktok/shop/products/${productId}/reviews`, { params });
|
|
5946
6086
|
}
|
|
6087
|
+
/** TikTok Shop theme ranking. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6088
|
+
async tiktokShopThemeRanking(rankId, params = {}) {
|
|
6089
|
+
return this._gen.request(`/v1/tiktok/shop/rankings/${rankId}`, { params });
|
|
6090
|
+
}
|
|
5947
6091
|
/** Search TikTok Shop products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5948
6092
|
async searchTiktokShopProducts(params = {}) {
|
|
5949
6093
|
return this._gen.request("/v1/tiktok/shop/search", { params });
|
|
@@ -6223,6 +6367,46 @@ var EbayClient = class {
|
|
|
6223
6367
|
}
|
|
6224
6368
|
};
|
|
6225
6369
|
|
|
6370
|
+
// src/etsy/client.ts
|
|
6371
|
+
var EtsyClient = class {
|
|
6372
|
+
client;
|
|
6373
|
+
constructor(client) {
|
|
6374
|
+
this.client = client;
|
|
6375
|
+
}
|
|
6376
|
+
/** Get search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6377
|
+
async getSearchSuggestions(params = {}) {
|
|
6378
|
+
return this.client.request("/v1/etsy/autocomplete", { params });
|
|
6379
|
+
}
|
|
6380
|
+
/** Get categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6381
|
+
async getCategories(params = {}) {
|
|
6382
|
+
return this.client.request("/v1/etsy/categories", { params });
|
|
6383
|
+
}
|
|
6384
|
+
/** Get listing detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6385
|
+
async getListingDetail(listingId, params = {}) {
|
|
6386
|
+
return this.client.request(`/v1/etsy/listings/${listingId}`, { params });
|
|
6387
|
+
}
|
|
6388
|
+
/** Get listing reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6389
|
+
async getListingReviews(listingId, params = {}) {
|
|
6390
|
+
return this.client.request(`/v1/etsy/listings/${listingId}/reviews`, { params });
|
|
6391
|
+
}
|
|
6392
|
+
/** Search listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6393
|
+
async searchListings(params = {}) {
|
|
6394
|
+
return this.client.request("/v1/etsy/search", { params });
|
|
6395
|
+
}
|
|
6396
|
+
/** Get shop profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6397
|
+
async getShopProfile(shopName, params = {}) {
|
|
6398
|
+
return this.client.request(`/v1/etsy/shops/${shopName}`, { params });
|
|
6399
|
+
}
|
|
6400
|
+
/** Get shop listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6401
|
+
async getShopListings(shopName, params = {}) {
|
|
6402
|
+
return this.client.request(`/v1/etsy/shops/${shopName}/listings`, { params });
|
|
6403
|
+
}
|
|
6404
|
+
/** Get shop reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6405
|
+
async getShopReviews(shopName, params = {}) {
|
|
6406
|
+
return this.client.request(`/v1/etsy/shops/${shopName}/reviews`, { params });
|
|
6407
|
+
}
|
|
6408
|
+
};
|
|
6409
|
+
|
|
6226
6410
|
// src/facebook/client.ts
|
|
6227
6411
|
var FacebookClient = class {
|
|
6228
6412
|
client;
|
|
@@ -6249,13 +6433,7 @@ var FacebookClient = class {
|
|
|
6249
6433
|
async getGroupDetail(groupId, params = {}) {
|
|
6250
6434
|
return this.client.request(`/v1/facebook/groups/${groupId}`, { params });
|
|
6251
6435
|
}
|
|
6252
|
-
/**
|
|
6253
|
-
* Get a public group's post feed, 3 posts per page. Generated from the OpenAPI spec; returns the raw response object.
|
|
6254
|
-
*
|
|
6255
|
-
* `params.sort` is `"newest"` (newest first by post time, the default) or `"relevance"`
|
|
6256
|
-
* (Facebook's top-posts ranking). Pass `end_cursor` back as `params.after` while
|
|
6257
|
-
* `has_next_page` for older posts, keeping the same sort.
|
|
6258
|
-
*/
|
|
6436
|
+
/** Get group posts. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6259
6437
|
async getGroupPosts(groupId, params = {}) {
|
|
6260
6438
|
return this.client.request(`/v1/facebook/groups/${groupId}/posts`, { params });
|
|
6261
6439
|
}
|
|
@@ -6695,6 +6873,44 @@ var GumtreeClient = class {
|
|
|
6695
6873
|
async listMarkets() {
|
|
6696
6874
|
return this.client.request("/v1/gumtree/markets");
|
|
6697
6875
|
}
|
|
6876
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
6877
|
+
/** Search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6878
|
+
async searchSuggestions(params = {}) {
|
|
6879
|
+
return this.client.request("/v1/gumtree/autocomplete", { params });
|
|
6880
|
+
}
|
|
6881
|
+
/** List categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6882
|
+
async getListcategories(params = {}) {
|
|
6883
|
+
return this.client.request("/v1/gumtree/categories", { params });
|
|
6884
|
+
}
|
|
6885
|
+
/** Get listing. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6886
|
+
async getGetlisting(listingId, params = {}) {
|
|
6887
|
+
return this.client.request(`/v1/gumtree/listings/${listingId}`, { params });
|
|
6888
|
+
}
|
|
6889
|
+
/** Get seller listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6890
|
+
async getGetsellerlistings(listingId, params = {}) {
|
|
6891
|
+
return this.client.request(`/v1/gumtree/listings/${listingId}/seller-listings`, { params });
|
|
6892
|
+
}
|
|
6893
|
+
/** List locations. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6894
|
+
async getListlocations(params = {}) {
|
|
6895
|
+
return this.client.request("/v1/gumtree/locations", { params });
|
|
6896
|
+
}
|
|
6897
|
+
/** Location suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6898
|
+
async locationSuggestions(params = {}) {
|
|
6899
|
+
return this.client.request("/v1/gumtree/locations/autocomplete", { params });
|
|
6900
|
+
}
|
|
6901
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6902
|
+
async getListmarkets(params = {}) {
|
|
6903
|
+
return this.client.request("/v1/gumtree/markets", { params });
|
|
6904
|
+
}
|
|
6905
|
+
/** Search listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6906
|
+
async searchListings(params = {}) {
|
|
6907
|
+
return this.client.request("/v1/gumtree/search", { params });
|
|
6908
|
+
}
|
|
6909
|
+
/** Get search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6910
|
+
async getSearchFilters(params = {}) {
|
|
6911
|
+
return this.client.request("/v1/gumtree/search/filters", { params });
|
|
6912
|
+
}
|
|
6913
|
+
// --- END generated by sdk/codegen/facade ---
|
|
6698
6914
|
};
|
|
6699
6915
|
function treeParams(options) {
|
|
6700
6916
|
const { parent_id, market } = typeof options === "object" ? options : { parent_id: options };
|
|
@@ -7026,8 +7242,6 @@ var BaiduClient = class {
|
|
|
7026
7242
|
/**
|
|
7027
7243
|
* Search baidu.com — the web SERP.
|
|
7028
7244
|
*
|
|
7029
|
-
* Costs 5 credits.
|
|
7030
|
-
*
|
|
7031
7245
|
* @param query - Search keywords, e.g. `"咖啡机"` or `"coffee machine"` (required).
|
|
7032
7246
|
* @param options - Optional parameters (page, num, language, timeFrom, timeTo).
|
|
7033
7247
|
* @returns Search response with organic results and Baidu's related searches.
|
|
@@ -7049,8 +7263,6 @@ var BaiduClient = class {
|
|
|
7049
7263
|
/**
|
|
7050
7264
|
* Search the Baidu news vertical.
|
|
7051
7265
|
*
|
|
7052
|
-
* Costs 5 credits.
|
|
7053
|
-
*
|
|
7054
7266
|
* @param query - Search keywords, e.g. `"人工智能"` (required).
|
|
7055
7267
|
* @param options - Optional parameters (page, sort).
|
|
7056
7268
|
* @returns News response with articles carrying publisher, date and real URLs.
|
|
@@ -7065,8 +7277,6 @@ var BaiduClient = class {
|
|
|
7065
7277
|
/**
|
|
7066
7278
|
* Search Baidu images.
|
|
7067
7279
|
*
|
|
7068
|
-
* Costs 5 credits.
|
|
7069
|
-
*
|
|
7070
7280
|
* @param query - Search keywords, e.g. `"猫"` (required).
|
|
7071
7281
|
* @param options - Optional parameters (page). Baidu serves 30 images per page.
|
|
7072
7282
|
* @returns Images response with full-size image URLs, Baidu-hosted thumbnail
|
|
@@ -7082,8 +7292,6 @@ var BaiduClient = class {
|
|
|
7082
7292
|
/**
|
|
7083
7293
|
* Baidu search-box suggestions — the cheapest call in this API.
|
|
7084
7294
|
*
|
|
7085
|
-
* Costs 1 credit.
|
|
7086
|
-
*
|
|
7087
7295
|
* @param query - Partial search term, e.g. `"咖啡"` or `"coff"` (required).
|
|
7088
7296
|
* @returns Autocomplete response with Baidu's suggestions for the term.
|
|
7089
7297
|
* @throws AuthenticationError - If the API key is invalid.
|
|
@@ -7096,6 +7304,54 @@ var BaiduClient = class {
|
|
|
7096
7304
|
}
|
|
7097
7305
|
};
|
|
7098
7306
|
|
|
7307
|
+
// src/bestbuy/client.ts
|
|
7308
|
+
var BestbuyClient = class {
|
|
7309
|
+
client;
|
|
7310
|
+
constructor(client) {
|
|
7311
|
+
this.client = client;
|
|
7312
|
+
}
|
|
7313
|
+
/** Get search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7314
|
+
async getSearchSuggestions(params = {}) {
|
|
7315
|
+
return this.client.request("/v1/bestbuy/autocomplete", { params });
|
|
7316
|
+
}
|
|
7317
|
+
/** Get categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7318
|
+
async getCategories(params = {}) {
|
|
7319
|
+
return this.client.request("/v1/bestbuy/categories", { params });
|
|
7320
|
+
}
|
|
7321
|
+
/** Browse a category. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7322
|
+
async browseACategory(params = {}) {
|
|
7323
|
+
return this.client.request("/v1/bestbuy/category", { params });
|
|
7324
|
+
}
|
|
7325
|
+
/** Get laptop and computer deals. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7326
|
+
async getLaptopAndComputerDeals(params = {}) {
|
|
7327
|
+
return this.client.request("/v1/bestbuy/deals", { params });
|
|
7328
|
+
}
|
|
7329
|
+
/** List supported markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7330
|
+
async listSupportedMarkets(params = {}) {
|
|
7331
|
+
return this.client.request("/v1/bestbuy/markets", { params });
|
|
7332
|
+
}
|
|
7333
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7334
|
+
async getProductDetail(sku, params = {}) {
|
|
7335
|
+
return this.client.request(`/v1/bestbuy/products/${sku}`, { params });
|
|
7336
|
+
}
|
|
7337
|
+
/** Get product availability. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7338
|
+
async getProductAvailability(sku, params = {}) {
|
|
7339
|
+
return this.client.request(`/v1/bestbuy/products/${sku}/availability`, { params });
|
|
7340
|
+
}
|
|
7341
|
+
/** Get product questions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7342
|
+
async getProductQuestions(sku, params = {}) {
|
|
7343
|
+
return this.client.request(`/v1/bestbuy/products/${sku}/questions`, { params });
|
|
7344
|
+
}
|
|
7345
|
+
/** Get product reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7346
|
+
async getProductReviews(sku, params = {}) {
|
|
7347
|
+
return this.client.request(`/v1/bestbuy/products/${sku}/reviews`, { params });
|
|
7348
|
+
}
|
|
7349
|
+
/** Search products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7350
|
+
async searchProducts(params = {}) {
|
|
7351
|
+
return this.client.request("/v1/bestbuy/search", { params });
|
|
7352
|
+
}
|
|
7353
|
+
};
|
|
7354
|
+
|
|
7099
7355
|
// src/naver/search.ts
|
|
7100
7356
|
var SearchClient12 = class {
|
|
7101
7357
|
constructor(client) {
|
|
@@ -7796,6 +8052,7 @@ var ShoppingLiveClient = class {
|
|
|
7796
8052
|
|
|
7797
8053
|
// src/naver/client.ts
|
|
7798
8054
|
var NaverClient = class {
|
|
8055
|
+
_gen;
|
|
7799
8056
|
/** Web / news / blog search and autocomplete */
|
|
7800
8057
|
search;
|
|
7801
8058
|
/** Local search, Place detail, reviews and photos */
|
|
@@ -7818,6 +8075,7 @@ var NaverClient = class {
|
|
|
7818
8075
|
* @param client - The base HTTP client for making requests.
|
|
7819
8076
|
*/
|
|
7820
8077
|
constructor(client) {
|
|
8078
|
+
this._gen = client;
|
|
7821
8079
|
this.search = new SearchClient12(client);
|
|
7822
8080
|
this.places = new PlacesClient(client);
|
|
7823
8081
|
this.shopping = new ShoppingClient2(client);
|
|
@@ -7827,6 +8085,52 @@ var NaverClient = class {
|
|
|
7827
8085
|
this.products = new ProductsClient5(client);
|
|
7828
8086
|
this.live = new ShoppingLiveClient(client);
|
|
7829
8087
|
}
|
|
8088
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
8089
|
+
/** Search suggestions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8090
|
+
async searchSuggestions(params = {}) {
|
|
8091
|
+
return this._gen.request("/v1/naver/autocomplete", { params });
|
|
8092
|
+
}
|
|
8093
|
+
/** Naver blog search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8094
|
+
async naverBlogSearch(params = {}) {
|
|
8095
|
+
return this._gen.request("/v1/naver/blog", { params });
|
|
8096
|
+
}
|
|
8097
|
+
/** Naver Place/Local search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8098
|
+
async naverPlaceLocalSearch(params = {}) {
|
|
8099
|
+
return this._gen.request("/v1/naver/local", { params });
|
|
8100
|
+
}
|
|
8101
|
+
/** Naver news search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8102
|
+
async naverNewsSearch(params = {}) {
|
|
8103
|
+
return this._gen.request("/v1/naver/news", { params });
|
|
8104
|
+
}
|
|
8105
|
+
/** Naver place detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8106
|
+
async naverPlaceDetail(placeId, params = {}) {
|
|
8107
|
+
return this._gen.request(`/v1/naver/place/${placeId}`, { params });
|
|
8108
|
+
}
|
|
8109
|
+
/** Naver place visitor reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8110
|
+
async naverPlaceVisitorReviews(placeId, params = {}) {
|
|
8111
|
+
return this._gen.request(`/v1/naver/place/${placeId}/reviews`, { params });
|
|
8112
|
+
}
|
|
8113
|
+
/** Naver web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8114
|
+
async naverWebSearch(params = {}) {
|
|
8115
|
+
return this._gen.request("/v1/naver/search", { params });
|
|
8116
|
+
}
|
|
8117
|
+
/** Naver Shopping bestseller rankings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8118
|
+
async naverShoppingBestsellerRankings(params = {}) {
|
|
8119
|
+
return this._gen.request("/v1/naver/shopping/bestsellers", { params });
|
|
8120
|
+
}
|
|
8121
|
+
/** Naver Shopping category reference. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8122
|
+
async naverShoppingCategoryReference(params = {}) {
|
|
8123
|
+
return this._gen.request("/v1/naver/shopping/categories", { params });
|
|
8124
|
+
}
|
|
8125
|
+
/** Naver DataLab shopping keyword insight. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8126
|
+
async naverDatalabShoppingKeywordInsight(params = {}) {
|
|
8127
|
+
return this._gen.request("/v1/naver/shopping/insight", { params });
|
|
8128
|
+
}
|
|
8129
|
+
/** Naver Shopping trending keyword rankings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8130
|
+
async naverShoppingTrendingKeywordRankings(params = {}) {
|
|
8131
|
+
return this._gen.request("/v1/naver/shopping/keywords", { params });
|
|
8132
|
+
}
|
|
8133
|
+
// --- END generated by sdk/codegen/facade ---
|
|
7830
8134
|
};
|
|
7831
8135
|
|
|
7832
8136
|
// src/yahoo/search.ts
|
|
@@ -9259,8 +9563,6 @@ var SearchClient19 = class {
|
|
|
9259
9563
|
/**
|
|
9260
9564
|
* Search LoopNet for for-lease / for-sale / auction commercial listings.
|
|
9261
9565
|
*
|
|
9262
|
-
* Costs 10 credits.
|
|
9263
|
-
*
|
|
9264
9566
|
* @param params - Search parameters including location, filters, and pagination.
|
|
9265
9567
|
* @returns Search results with listing cards and pagination metadata.
|
|
9266
9568
|
* @throws AuthenticationError - If the API key is invalid.
|
|
@@ -9293,8 +9595,6 @@ var ListingsClient2 = class {
|
|
|
9293
9595
|
/**
|
|
9294
9596
|
* Get a single LoopNet listing's full detail by listing id.
|
|
9295
9597
|
*
|
|
9296
|
-
* Costs 12 credits.
|
|
9297
|
-
*
|
|
9298
9598
|
* @param listingId - The LoopNet listing id.
|
|
9299
9599
|
* @param params - Optional market selector.
|
|
9300
9600
|
* @returns Listing detail response.
|
|
@@ -9316,8 +9616,6 @@ var BrokersClient = class {
|
|
|
9316
9616
|
/**
|
|
9317
9617
|
* Get a LoopNet broker's profile and their active listings.
|
|
9318
9618
|
*
|
|
9319
|
-
* Costs 8 credits.
|
|
9320
|
-
*
|
|
9321
9619
|
* @param slug - The broker's profile URL slug.
|
|
9322
9620
|
* @param brokerId - The LoopNet broker id.
|
|
9323
9621
|
* @param params - Optional market selector.
|
|
@@ -9417,8 +9715,6 @@ var DepopClient = class {
|
|
|
9417
9715
|
/**
|
|
9418
9716
|
* Search Depop for products.
|
|
9419
9717
|
*
|
|
9420
|
-
* Costs 10 credits.
|
|
9421
|
-
*
|
|
9422
9718
|
* @param query - Search keywords (required).
|
|
9423
9719
|
* @param options - Optional parameters (market, perPage, page, price/brand/
|
|
9424
9720
|
* size/colour/condition/gender filters, sort).
|
|
@@ -9447,8 +9743,6 @@ var DepopClient = class {
|
|
|
9447
9743
|
/**
|
|
9448
9744
|
* Get a single Depop product's full detail by slug.
|
|
9449
9745
|
*
|
|
9450
|
-
* Costs 10 credits.
|
|
9451
|
-
*
|
|
9452
9746
|
* @param slug - The Depop product slug.
|
|
9453
9747
|
* @param options - Optional parameters (market).
|
|
9454
9748
|
* @returns Full product detail.
|
|
@@ -9462,8 +9756,6 @@ var DepopClient = class {
|
|
|
9462
9756
|
/**
|
|
9463
9757
|
* Get a Depop shop / seller profile by username.
|
|
9464
9758
|
*
|
|
9465
|
-
* Costs 10 credits.
|
|
9466
|
-
*
|
|
9467
9759
|
* @param username - The Depop seller username.
|
|
9468
9760
|
* @param options - Optional parameters (market).
|
|
9469
9761
|
* @returns Shop profile.
|
|
@@ -9477,8 +9769,6 @@ var DepopClient = class {
|
|
|
9477
9769
|
/**
|
|
9478
9770
|
* Get a Depop seller's products.
|
|
9479
9771
|
*
|
|
9480
|
-
* Costs 10 credits.
|
|
9481
|
-
*
|
|
9482
9772
|
* @param username - The Depop seller username.
|
|
9483
9773
|
* @param options - Optional parameters (market, perPage, page).
|
|
9484
9774
|
* @returns User products response with product cards and pagination meta.
|
|
@@ -9524,8 +9814,6 @@ var WallapopClient = class {
|
|
|
9524
9814
|
* Needs a query, a `categoryId`, or both — unless `nextPage` is given, in
|
|
9525
9815
|
* which case every other parameter is ignored.
|
|
9526
9816
|
*
|
|
9527
|
-
* Costs 5 credits.
|
|
9528
|
-
*
|
|
9529
9817
|
* @param query - Search text, e.g. "iphone 14" (optional with `categoryId` or `nextPage`).
|
|
9530
9818
|
* @param options - Optional parameters (market, location/radius, category,
|
|
9531
9819
|
* price, condition, brand/model/colour, cars filters, sort, cursor).
|
|
@@ -9567,8 +9855,6 @@ var WallapopClient = class {
|
|
|
9567
9855
|
/**
|
|
9568
9856
|
* Get a single listing's full detail.
|
|
9569
9857
|
*
|
|
9570
|
-
* Costs 5 credits.
|
|
9571
|
-
*
|
|
9572
9858
|
* @param itemId - Listing id (e.g. "nzxeknm5x562") or listing slug.
|
|
9573
9859
|
* @param options - Optional parameters (market).
|
|
9574
9860
|
* @returns Full listing detail with attributes, counters and location.
|
|
@@ -9584,8 +9870,6 @@ var WallapopClient = class {
|
|
|
9584
9870
|
* Get a seller's profile with ratings, sales counters, response rate and
|
|
9585
9871
|
* verifications.
|
|
9586
9872
|
*
|
|
9587
|
-
* Costs 5 credits.
|
|
9588
|
-
*
|
|
9589
9873
|
* @param userId - User id (e.g. "dqjwdd53wwzo") or profile slug (e.g. "alexc-25115753").
|
|
9590
9874
|
* @param options - Optional parameters (market).
|
|
9591
9875
|
* @returns User profile.
|
|
@@ -9600,8 +9884,6 @@ var WallapopClient = class {
|
|
|
9600
9884
|
/**
|
|
9601
9885
|
* Get a seller's live listings (40 per page).
|
|
9602
9886
|
*
|
|
9603
|
-
* Costs 5 credits.
|
|
9604
|
-
*
|
|
9605
9887
|
* @param userId - User id or profile slug.
|
|
9606
9888
|
* @param options - Optional parameters (market, nextPage).
|
|
9607
9889
|
* @returns The seller's listings and the next-page cursor.
|
|
@@ -9616,8 +9898,6 @@ var WallapopClient = class {
|
|
|
9616
9898
|
/**
|
|
9617
9899
|
* Get the reviews a seller received, newest first (40 per page).
|
|
9618
9900
|
*
|
|
9619
|
-
* Costs 5 credits.
|
|
9620
|
-
*
|
|
9621
9901
|
* @param userId - User id or profile slug.
|
|
9622
9902
|
* @param options - Optional parameters (market, nextPage).
|
|
9623
9903
|
* @returns Reviews and the next-page cursor.
|
|
@@ -9632,8 +9912,6 @@ var WallapopClient = class {
|
|
|
9632
9912
|
/**
|
|
9633
9913
|
* Get Wallapop's search-box suggestions for a partial query.
|
|
9634
9914
|
*
|
|
9635
|
-
* Costs 1 credit.
|
|
9636
|
-
*
|
|
9637
9915
|
* @param query - Partial search text, e.g. "bici".
|
|
9638
9916
|
* @param options - Optional parameters (market).
|
|
9639
9917
|
* @returns Autocomplete suggestions.
|
|
@@ -9646,8 +9924,6 @@ var WallapopClient = class {
|
|
|
9646
9924
|
/**
|
|
9647
9925
|
* Get the full category tree; ids are usable as the search `categoryId`.
|
|
9648
9926
|
*
|
|
9649
|
-
* Costs 1 credit.
|
|
9650
|
-
*
|
|
9651
9927
|
* @param options - Optional parameters (market — localises names).
|
|
9652
9928
|
* @returns Category tree.
|
|
9653
9929
|
*/
|
|
@@ -9660,8 +9936,6 @@ var WallapopClient = class {
|
|
|
9660
9936
|
* Get the search filters Wallapop offers for a category and/or query,
|
|
9661
9937
|
* with their option ids.
|
|
9662
9938
|
*
|
|
9663
|
-
* Costs 2 credits.
|
|
9664
|
-
*
|
|
9665
9939
|
* @param options - Optional parameters (categoryId, query, market).
|
|
9666
9940
|
* @returns Available filters.
|
|
9667
9941
|
*/
|
|
@@ -9678,8 +9952,6 @@ var WallapopClient = class {
|
|
|
9678
9952
|
* Get a filter's long option list (brands, models) that Wallapop serves
|
|
9679
9953
|
* separately — filters flagged `options_endpoint` in `listFilters`.
|
|
9680
9954
|
*
|
|
9681
|
-
* Costs 2 credits.
|
|
9682
|
-
*
|
|
9683
9955
|
* @param filterId - Filter id, e.g. "brand".
|
|
9684
9956
|
* @param options - Optional parameters (categoryId, query, market).
|
|
9685
9957
|
* @returns The filter's options.
|
|
@@ -9884,7 +10156,7 @@ var AskClient = class {
|
|
|
9884
10156
|
/**
|
|
9885
10157
|
* Ask ChatGPT a question and get the answer with its sources.
|
|
9886
10158
|
*
|
|
9887
|
-
*
|
|
10159
|
+
* Typical latency is 20-25s ungrounded, 30-70s with web search.
|
|
9888
10160
|
*
|
|
9889
10161
|
* @param params - Ask parameters.
|
|
9890
10162
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
@@ -9929,8 +10201,6 @@ var BrandClient = class {
|
|
|
9929
10201
|
/**
|
|
9930
10202
|
* Analyse how a brand shows up in ChatGPT's answer to a prompt.
|
|
9931
10203
|
*
|
|
9932
|
-
* Costs 25 credits.
|
|
9933
|
-
*
|
|
9934
10204
|
* @param params - Brand-visibility parameters.
|
|
9935
10205
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
9936
10206
|
* @param params.brand - The brand name to look for in the answer.
|
|
@@ -9981,8 +10251,6 @@ var ReferenceClient16 = class {
|
|
|
9981
10251
|
/**
|
|
9982
10252
|
* Get the models chatgpt.com currently offers.
|
|
9983
10253
|
*
|
|
9984
|
-
* Costs 1 credit.
|
|
9985
|
-
*
|
|
9986
10254
|
* @param params - Optional parameters.
|
|
9987
10255
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
9988
10256
|
* @returns The available models.
|
|
@@ -10181,6 +10449,8 @@ var ScrapeBadger = class {
|
|
|
10181
10449
|
apartments;
|
|
10182
10450
|
/** App_Store API client. (Generated from the OpenAPI spec.) */
|
|
10183
10451
|
app_store;
|
|
10452
|
+
/** Asos API client. (Generated from the OpenAPI spec.) */
|
|
10453
|
+
asos;
|
|
10184
10454
|
/** Instagram scraper API client — users, media, search, hashtags, locations, audio */
|
|
10185
10455
|
instagram;
|
|
10186
10456
|
/** Redfin scraper API client — search, property, agent, autocomplete, markets (redfin.com, US) */
|
|
@@ -10190,13 +10460,19 @@ var ScrapeBadger = class {
|
|
|
10190
10460
|
account;
|
|
10191
10461
|
/** Airbnb API client. (Generated from the OpenAPI spec.) */
|
|
10192
10462
|
airbnb;
|
|
10463
|
+
/** Aliexpress API client. (Generated from the OpenAPI spec.) */
|
|
10464
|
+
aliexpress;
|
|
10193
10465
|
amazon;
|
|
10194
10466
|
/** Shopee scraper API client — 6 endpoints across 11 markets */
|
|
10195
10467
|
shopee;
|
|
10468
|
+
/** Target API client. (Generated from the OpenAPI spec.) */
|
|
10469
|
+
target;
|
|
10196
10470
|
/** TikTok scraper API client — 26 endpoints */
|
|
10197
10471
|
tiktok;
|
|
10198
10472
|
/** eBay scraper API client — 12 endpoints across 18 markets */
|
|
10199
10473
|
ebay;
|
|
10474
|
+
/** Etsy API client. (Generated from the OpenAPI spec.) */
|
|
10475
|
+
etsy;
|
|
10200
10476
|
/** Facebook API client. (Generated from the OpenAPI spec.) */
|
|
10201
10477
|
facebook;
|
|
10202
10478
|
/** Walmart scraper API client — 11 endpoints (walmart.com, US-only) */
|
|
@@ -10211,6 +10487,8 @@ var ScrapeBadger = class {
|
|
|
10211
10487
|
booking;
|
|
10212
10488
|
/** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
|
|
10213
10489
|
baidu;
|
|
10490
|
+
/** Bestbuy API client. (Generated from the OpenAPI spec.) */
|
|
10491
|
+
bestbuy;
|
|
10214
10492
|
/** Naver scraper API client — 55 endpoints (search, places, shopping, stores, content, reviews, products, shopping live; naver.com, South Korea) */
|
|
10215
10493
|
naver;
|
|
10216
10494
|
/** Yahoo scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) across 35 markets */
|
|
@@ -10284,14 +10562,18 @@ var ScrapeBadger = class {
|
|
|
10284
10562
|
this.reddit = new RedditClient(this.baseClient);
|
|
10285
10563
|
this.apartments = new ApartmentsClient(this.baseClient);
|
|
10286
10564
|
this.app_store = new AppStoreClient(this.baseClient);
|
|
10565
|
+
this.asos = new AsosClient(this.baseClient);
|
|
10287
10566
|
this.instagram = new InstagramClient(this.baseClient);
|
|
10288
10567
|
this.redfin = new RedfinClient(this.baseClient);
|
|
10289
10568
|
this.account = new AccountClient(this.baseClient);
|
|
10290
10569
|
this.airbnb = new AirbnbClient(this.baseClient);
|
|
10570
|
+
this.aliexpress = new AliexpressClient(this.baseClient);
|
|
10291
10571
|
this.amazon = new AmazonClient(this.baseClient);
|
|
10292
10572
|
this.shopee = new ShopeeClient(this.baseClient);
|
|
10573
|
+
this.target = new TargetClient(this.baseClient);
|
|
10293
10574
|
this.tiktok = new TikTokClient(this.baseClient);
|
|
10294
10575
|
this.ebay = new EbayClient(this.baseClient);
|
|
10576
|
+
this.etsy = new EtsyClient(this.baseClient);
|
|
10295
10577
|
this.facebook = new FacebookClient(this.baseClient);
|
|
10296
10578
|
this.walmart = new WalmartClient(this.baseClient);
|
|
10297
10579
|
this.gumtree = new GumtreeClient(this.baseClient);
|
|
@@ -10299,6 +10581,7 @@ var ScrapeBadger = class {
|
|
|
10299
10581
|
this.bing = new BingClient(this.baseClient);
|
|
10300
10582
|
this.booking = new BookingClient(this.baseClient);
|
|
10301
10583
|
this.baidu = new BaiduClient(this.baseClient);
|
|
10584
|
+
this.bestbuy = new BestbuyClient(this.baseClient);
|
|
10302
10585
|
this.naver = new NaverClient(this.baseClient);
|
|
10303
10586
|
this.yahoo = new YahooClient(this.baseClient);
|
|
10304
10587
|
this.yandex = new YandexClient(this.baseClient);
|