scrapebadger 0.70.0 → 0.73.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 CHANGED
@@ -111,6 +111,7 @@ Etsy and AliExpress category navigation is separate from search: their search me
111
111
  | **eBay** | 12 endpoints across 18 markets — search, search by image, completed/sold listings, item detail, item reviews, seller profile/items/feedback, category browse, categories, autocomplete, markets | [eBay Guide](docs/ebay.md) |
112
112
  | **Walmart** | 11 endpoints (walmart.com, US-only) — search, category browse, deals feed, autocomplete, product detail, reviews, seller profile/products, store detail with nearby stores, markets |
113
113
  | **Gumtree** | 9 endpoints across gumtree.com, gumtree.com.au and gumtree.co.za (`market: "uk"` default, `"au"`, `"za"`) — search (category, location/postcode radius, price, seller type, urgent/photos, category-specific filters), search filters with live counts, listing detail (full vehicle spec, seller rating/verification, masked phone), seller listings, keyword and location autocomplete, location and category trees, markets. E.g. `client.gumtree.search({ market: "au", category: "18320", location: "3003435", distance: 10 })` or `client.gumtree.search({ market: "za", category: "p6dnh", location: "dkp8y" })` (za ids are refs) | [Gumtree Docs](https://docs.scrapebadger.com/gumtree/overview) |
114
+ | **AutoScout24** | 4 endpoints — search, listing detail (URL or UUID), filters, markets | [AutoScout24 Docs](https://docs.scrapebadger.com/autoscout24/overview) |
114
115
  | **Bing** | 6 endpoints — web search (with ads + related searches), image search, video search, news vertical, autocomplete, markets |
115
116
  | **DuckDuckGo** | 7 endpoints — web search (with instant-answer abstract), image search, news vertical, video search, autocomplete, instant answers, regions |
116
117
  | **Yahoo** | 6 endpoints across 35 markets — web search (with ads + related searches), image search, video search, news vertical, autocomplete, markets | [Yahoo Docs](https://docs.scrapebadger.com/yahoo/overview) |
@@ -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.70.0";
12
+ var SDK_VERSION = "0.73.0";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -3801,6 +3801,10 @@ var GoogleClient = class {
3801
3801
  async googleFlightsCalendarCheapestFarePerDate(params = {}) {
3802
3802
  return this._gen.request("/v1/google/flights/calendar", { params });
3803
3803
  }
3804
+ /** Google Light web search. Generated from the OpenAPI spec; returns the raw response object. */
3805
+ async googleLightWebSearch(params = {}) {
3806
+ return this._gen.request("/v1/google/light/search", { params });
3807
+ }
3804
3808
  // --- END generated by sdk/codegen/facade ---
3805
3809
  };
3806
3810
 
@@ -4624,6 +4628,26 @@ var AsosClient = class {
4624
4628
  }
4625
4629
  };
4626
4630
 
4631
+ // src/autoscout24/client.ts
4632
+ var Autoscout24Client = class {
4633
+ client;
4634
+ constructor(client) {
4635
+ this.client = client;
4636
+ }
4637
+ /** List search filters. Generated from the OpenAPI spec; returns the raw response object. */
4638
+ async listSearchFilters(params = {}) {
4639
+ return this.client.request("/v1/autoscout24/filters", { params });
4640
+ }
4641
+ /** List markets. Generated from the OpenAPI spec; returns the raw response object. */
4642
+ async listMarkets(params = {}) {
4643
+ return this.client.request("/v1/autoscout24/markets", { params });
4644
+ }
4645
+ /** Search vehicles. Generated from the OpenAPI spec; returns the raw response object. */
4646
+ async searchVehicles(params = {}) {
4647
+ return this.client.request("/v1/autoscout24/search", { params });
4648
+ }
4649
+ };
4650
+
4627
4651
  // src/instagram/users.ts
4628
4652
  var UsersClient4 = class {
4629
4653
  client;
@@ -5026,6 +5050,18 @@ var AccountClient = class {
5026
5050
  async getAccountInfo(params = {}) {
5027
5051
  return this.client.request("/v1/account/me", { params });
5028
5052
  }
5053
+ /** Get the webhook signing secret. Generated from the OpenAPI spec; returns the raw response object. */
5054
+ async getTheWebhookSigningSecret(params = {}) {
5055
+ return this.client.request("/v1/account/webhook-secret", { params });
5056
+ }
5057
+ /** Rotate the webhook signing secret. Generated from the OpenAPI spec; returns the raw response object. */
5058
+ async rotateTheWebhookSigningSecret(body, params = {}) {
5059
+ return this.client.request("/v1/account/webhook-secret/rotate", {
5060
+ method: "POST",
5061
+ params,
5062
+ body
5063
+ });
5064
+ }
5029
5065
  };
5030
5066
 
5031
5067
  // src/agent/client.ts
@@ -6588,6 +6624,10 @@ var FacebookClient = class {
6588
6624
  async listLocations(params = {}) {
6589
6625
  return this.client.request("/v1/facebook/marketplace/locations", { params });
6590
6626
  }
6627
+ /** Resolve a town/postcode to a Marketplace location. Generated from the OpenAPI spec; returns the raw response object. */
6628
+ async resolveATownPostcodeToAMarketplaceLocation(params = {}) {
6629
+ return this.client.request("/v1/facebook/marketplace/locations/resolve", { params });
6630
+ }
6591
6631
  /** Search Marketplace. Generated from the OpenAPI spec; returns the raw response object. */
6592
6632
  async searchMarketplace(params = {}) {
6593
6633
  return this.client.request("/v1/facebook/marketplace/search", { params });
@@ -7368,6 +7408,38 @@ var BookingClient = class {
7368
7408
  }
7369
7409
  };
7370
7410
 
7411
+ // src/brave/client.ts
7412
+ var BraveClient = class {
7413
+ client;
7414
+ constructor(client) {
7415
+ this.client = client;
7416
+ }
7417
+ /** Autocomplete. Generated from the OpenAPI spec; returns the raw response object. */
7418
+ async autocomplete(params = {}) {
7419
+ return this.client.request("/v1/brave/autocomplete", { params });
7420
+ }
7421
+ /** Image search. Generated from the OpenAPI spec; returns the raw response object. */
7422
+ async imageSearch(params = {}) {
7423
+ return this.client.request("/v1/brave/images", { params });
7424
+ }
7425
+ /** List supported locales. Generated from the OpenAPI spec; returns the raw response object. */
7426
+ async listSupportedLocales(params = {}) {
7427
+ return this.client.request("/v1/brave/locales", { params });
7428
+ }
7429
+ /** News search. Generated from the OpenAPI spec; returns the raw response object. */
7430
+ async newsSearch(params = {}) {
7431
+ return this.client.request("/v1/brave/news", { params });
7432
+ }
7433
+ /** Web search. Generated from the OpenAPI spec; returns the raw response object. */
7434
+ async webSearch(params = {}) {
7435
+ return this.client.request("/v1/brave/search", { params });
7436
+ }
7437
+ /** Video search. Generated from the OpenAPI spec; returns the raw response object. */
7438
+ async videoSearch(params = {}) {
7439
+ return this.client.request("/v1/brave/videos", { params });
7440
+ }
7441
+ };
7442
+
7371
7443
  // src/baidu/client.ts
7372
7444
  var BaiduClient = class {
7373
7445
  client;
@@ -7439,6 +7511,18 @@ var BaiduClient = class {
7439
7511
  }
7440
7512
  };
7441
7513
 
7514
+ // src/batch/client.ts
7515
+ var BatchClient = class {
7516
+ client;
7517
+ constructor(client) {
7518
+ this.client = client;
7519
+ }
7520
+ /** Submit a batch of async requests. Generated from the OpenAPI spec; returns the raw response object. */
7521
+ async submitABatchOfAsyncRequests(body, params = {}) {
7522
+ return this.client.request("/v1/batch", { method: "POST", params, body });
7523
+ }
7524
+ };
7525
+
7442
7526
  // src/bestbuy/client.ts
7443
7527
  var BestbuyClient = class {
7444
7528
  client;
@@ -10599,9 +10683,35 @@ var GeminiClient = class {
10599
10683
  // --- END generated by sdk/codegen/facade ---
10600
10684
  };
10601
10685
 
10686
+ // src/github/client.ts
10687
+ var GithubClient = class {
10688
+ client;
10689
+ constructor(client) {
10690
+ this.client = client;
10691
+ }
10692
+ /** Get public default-branch repository detail without query options. */
10693
+ async getRepository(owner, repo) {
10694
+ if ([owner, repo].some((value) => value === "." || value === "..")) {
10695
+ throw new TypeError("owner and repo must not be dot path segments");
10696
+ }
10697
+ return this.client.request(
10698
+ `/v1/github/repositories/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}`
10699
+ );
10700
+ }
10701
+ /** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
10702
+ async getProfile(username, params = {}) {
10703
+ return this.client.request(`/v1/github/profiles/${username}`, { params });
10704
+ }
10705
+ };
10706
+
10602
10707
  // src/client.ts
10603
10708
  var ScrapeBadger = class {
10604
10709
  baseClient;
10710
+ /** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
10711
+ async endpoints() {
10712
+ const result = await this.baseClient.request("/api/public/endpoint-catalog");
10713
+ return result.endpoints;
10714
+ }
10605
10715
  /** Twitter API client */
10606
10716
  twitter;
10607
10717
  /** Web scraping API client */
@@ -10622,6 +10732,8 @@ var ScrapeBadger = class {
10622
10732
  app_store;
10623
10733
  /** Asos API client. (Generated from the OpenAPI spec.) */
10624
10734
  asos;
10735
+ /** Autoscout24 API client. (Generated from the OpenAPI spec.) */
10736
+ autoscout24;
10625
10737
  /** Instagram scraper API client — users, media, search, hashtags, locations, audio */
10626
10738
  instagram;
10627
10739
  /** Redfin scraper API client — search, property, agent, autocomplete, markets (redfin.com, US) */
@@ -10662,8 +10774,12 @@ var ScrapeBadger = class {
10662
10774
  bing;
10663
10775
  /** Booking API client. (Generated from the OpenAPI spec.) */
10664
10776
  booking;
10777
+ /** Brave API client. (Generated from the OpenAPI spec.) */
10778
+ brave;
10665
10779
  /** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
10666
10780
  baidu;
10781
+ /** Batch API client. (Generated from the OpenAPI spec.) */
10782
+ batch;
10667
10783
  /** Bestbuy API client. (Generated from the OpenAPI spec.) */
10668
10784
  bestbuy;
10669
10785
  /** Naver scraper API client — 55 endpoints (search, places, shopping, stores, content, reviews, products, shopping live; naver.com, South Korea) */
@@ -10698,6 +10814,8 @@ var ScrapeBadger = class {
10698
10814
  copilot;
10699
10815
  /** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
10700
10816
  gemini;
10817
+ /** Github API client. (Generated from the OpenAPI spec.) */
10818
+ github;
10701
10819
  /**
10702
10820
  * Create a new ScrapeBadger client.
10703
10821
  *
@@ -10742,6 +10860,7 @@ var ScrapeBadger = class {
10742
10860
  this.apartments = new ApartmentsClient(this.baseClient);
10743
10861
  this.app_store = new AppStoreClient(this.baseClient);
10744
10862
  this.asos = new AsosClient(this.baseClient);
10863
+ this.autoscout24 = new Autoscout24Client(this.baseClient);
10745
10864
  this.instagram = new InstagramClient(this.baseClient);
10746
10865
  this.redfin = new RedfinClient(this.baseClient);
10747
10866
  this.account = new AccountClient(this.baseClient);
@@ -10762,7 +10881,9 @@ var ScrapeBadger = class {
10762
10881
  this.duckduckgo = new DuckDuckGoClient(this.baseClient);
10763
10882
  this.bing = new BingClient(this.baseClient);
10764
10883
  this.booking = new BookingClient(this.baseClient);
10884
+ this.brave = new BraveClient(this.baseClient);
10765
10885
  this.baidu = new BaiduClient(this.baseClient);
10886
+ this.batch = new BatchClient(this.baseClient);
10766
10887
  this.bestbuy = new BestbuyClient(this.baseClient);
10767
10888
  this.naver = new NaverClient(this.baseClient);
10768
10889
  this.yahoo = new YahooClient(this.baseClient);
@@ -10780,6 +10901,7 @@ var ScrapeBadger = class {
10780
10901
  this.chatgpt = new ChatGPTClient(this.baseClient);
10781
10902
  this.copilot = new CopilotClient(this.baseClient);
10782
10903
  this.gemini = new GeminiClient(this.baseClient);
10904
+ this.github = new GithubClient(this.baseClient);
10783
10905
  }
10784
10906
  };
10785
10907
 
@@ -10953,5 +11075,5 @@ exports.ZillowReferenceClient = ReferenceClient14;
10953
11075
  exports.ZillowSearchClient = SearchClient18;
10954
11076
  exports.collectAll = collectAll;
10955
11077
  exports.verifyWebhookSignature = verifyWebhookSignature;
10956
- //# sourceMappingURL=index.js.map
10957
- //# sourceMappingURL=index.js.map
11078
+ //# sourceMappingURL=index.cjs.map
11079
+ //# sourceMappingURL=index.cjs.map