scrapebadger 0.77.1 → 0.79.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/dist/index.cjs 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.77.0";
12
+ var SDK_VERSION = "0.79.0";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -3794,10 +3794,6 @@ var GoogleClient = class {
3794
3794
  async googleFlightsCalendarCheapestFarePerDate(params = {}) {
3795
3795
  return this._gen.request("/v1/google/flights/calendar", { params });
3796
3796
  }
3797
- /** Google Light web search. Generated from the OpenAPI spec; returns the raw response object. */
3798
- async googleLightWebSearch(params = {}) {
3799
- return this._gen.request("/v1/google/light/search", { params });
3800
- }
3801
3797
  // --- END generated by sdk/codegen/facade ---
3802
3798
  };
3803
3799
 
@@ -3849,6 +3845,38 @@ var GooglePlayClient = class {
3849
3845
  }
3850
3846
  };
3851
3847
 
3848
+ // src/grok/client.ts
3849
+ var GrokClient = class {
3850
+ client;
3851
+ constructor(client) {
3852
+ this.client = client;
3853
+ }
3854
+ /** Ask Grok a question. Generated from the OpenAPI spec; returns the raw response object. */
3855
+ async askGrokAQuestion(params = {}) {
3856
+ return this.client.request("/v1/grok/ask", { params });
3857
+ }
3858
+ /** Ask Grok a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
3859
+ async askGrokAQuestionPost(body, params = {}) {
3860
+ return this.client.request("/v1/grok/ask", { method: "POST", params, body });
3861
+ }
3862
+ /** Measure brand visibility in Grok. Generated from the OpenAPI spec; returns the raw response object. */
3863
+ async measureBrandVisibilityInGrok(params = {}) {
3864
+ return this.client.request("/v1/grok/brand-visibility", { params });
3865
+ }
3866
+ /** Measure brand visibility in Grok (POST). Generated from the OpenAPI spec; returns the raw response object. */
3867
+ async measureBrandVisibilityInGrokPost(body, params = {}) {
3868
+ return this.client.request("/v1/grok/brand-visibility", { method: "POST", params, body });
3869
+ }
3870
+ /** Get a Grok conversation. Generated from the OpenAPI spec; returns the raw response object. */
3871
+ async getAGrokConversation(conversationId, params = {}) {
3872
+ return this.client.request(`/v1/grok/conversations/${conversationId}`, { params });
3873
+ }
3874
+ /** List Grok assistant modes. Generated from the OpenAPI spec; returns the raw response object. */
3875
+ async listGrokAssistantModes(params = {}) {
3876
+ return this.client.request("/v1/grok/models", { params });
3877
+ }
3878
+ };
3879
+
3852
3880
  // src/idealista/client.ts
3853
3881
  var IdealistaClient = class {
3854
3882
  client;
@@ -3871,11 +3899,7 @@ var IdealistaClient = class {
3871
3899
  async getPropertyDetail(propertyCode, params = {}) {
3872
3900
  return this.client.request(`/v1/idealista/properties/${propertyCode}`, { params });
3873
3901
  }
3874
- /**
3875
- * Get listing engagement stats.
3876
- * @deprecated Idealista withdrew public per-ad stats on 2026-11-10; the operation is marked deprecated in the OpenAPI spec, answers an error, and will be removed in a future release.
3877
- * Generated from the OpenAPI spec; returns the raw response object.
3878
- */
3902
+ /** Get listing engagement stats. Generated from the OpenAPI spec; returns the raw response object. */
3879
3903
  async getListingEngagementStats(propertyCode, params = {}) {
3880
3904
  return this.client.request(`/v1/idealista/properties/${propertyCode}/stats`, { params });
3881
3905
  }
@@ -6643,9 +6667,7 @@ var FacebookClient = class {
6643
6667
  async resolveATownPostcodeToAMarketplaceLocation(params = {}) {
6644
6668
  return this.client.request("/v1/facebook/marketplace/locations/resolve", { params });
6645
6669
  }
6646
- /** Search public Marketplace. Use strict_filters: true to enforce radius (km) and age,
6647
- * include_details: true for descriptions/photos. Continuations cover price ranges;
6648
- * search_info reports partial coverage. Sort all collected pages for newest first. */
6670
+ /** Search Marketplace. Generated from the OpenAPI spec; returns the raw response object. */
6649
6671
  async searchMarketplace(params = {}) {
6650
6672
  return this.client.request("/v1/facebook/marketplace/search", { params });
6651
6673
  }
@@ -9932,6 +9954,26 @@ var LoopNetClient = class {
9932
9954
  }
9933
9955
  };
9934
9956
 
9957
+ // src/meta_ai/client.ts
9958
+ var MetaAiClient = class {
9959
+ client;
9960
+ constructor(client) {
9961
+ this.client = client;
9962
+ }
9963
+ /** Ask Meta AI a question. Generated from the OpenAPI spec; returns the raw response object. */
9964
+ async askMetaAiAQuestion(params = {}) {
9965
+ return this.client.request("/v1/meta-ai/ask", { params });
9966
+ }
9967
+ /** Ask Meta AI a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
9968
+ async askMetaAiAQuestionPost(body, params = {}) {
9969
+ return this.client.request("/v1/meta-ai/ask", { method: "POST", params, body });
9970
+ }
9971
+ /** List Meta AI assistant modes. Generated from the OpenAPI spec; returns the raw response object. */
9972
+ async listMetaAiAssistantModes(params = {}) {
9973
+ return this.client.request("/v1/meta-ai/models", { params });
9974
+ }
9975
+ };
9976
+
9935
9977
  // src/perplexity/client.ts
9936
9978
  function toQuery(params) {
9937
9979
  const { strictCountry, ...rest } = params;
@@ -10340,6 +10382,18 @@ var LinkedInClient = class {
10340
10382
  params: { country: options.country ?? "us" }
10341
10383
  });
10342
10384
  }
10385
+ /**
10386
+ * Get a full profile through the server-owned authenticated projection.
10387
+ *
10388
+ * @param publicId - The profile's public id (URL slug).
10389
+ * @param options - Optional parameters (country).
10390
+ * @returns Full profile with richer verticals and position pagination.
10391
+ */
10392
+ async getFullProfile(publicId, options = {}) {
10393
+ return this.client.request(`/v1/linkedin/profiles/${publicId}/full`, {
10394
+ params: { country: options.country ?? "us" }
10395
+ });
10396
+ }
10343
10397
  /**
10344
10398
  * Get a public LinkedIn post (activity share).
10345
10399
  *
@@ -10755,6 +10809,8 @@ var ScrapeBadger = class {
10755
10809
  google;
10756
10810
  /** Google_Play API client. (Generated from the OpenAPI spec.) */
10757
10811
  google_play;
10812
+ /** Grok API client. (Generated from the OpenAPI spec.) */
10813
+ grok;
10758
10814
  /** Idealista API client. (Generated from the OpenAPI spec.) */
10759
10815
  idealista;
10760
10816
  /** Reddit scraper API client */
@@ -10838,6 +10894,8 @@ var ScrapeBadger = class {
10838
10894
  immobiliare;
10839
10895
  /** LoopNet scraper API client — commercial real estate across US/CA/UK/FR/ES (search, listing, broker, markets, property types) */
10840
10896
  loopnet;
10897
+ /** Meta_Ai API client. (Generated from the OpenAPI spec.) */
10898
+ meta_ai;
10841
10899
  /** Perplexity API client. (Generated from the OpenAPI spec.) */
10842
10900
  perplexity;
10843
10901
  /** Depop scraper API client — search, product, user, user products, markets (www.depop.com, 10 markets) */
@@ -10893,6 +10951,7 @@ var ScrapeBadger = class {
10893
10951
  this.vinted = new VintedClient(this.baseClient);
10894
10952
  this.google = new GoogleClient(this.baseClient);
10895
10953
  this.google_play = new GooglePlayClient(this.baseClient);
10954
+ this.grok = new GrokClient(this.baseClient);
10896
10955
  this.idealista = new IdealistaClient(this.baseClient);
10897
10956
  this.reddit = new RedditClient(this.baseClient);
10898
10957
  this.apartments = new ApartmentsClient(this.baseClient);
@@ -10933,6 +10992,7 @@ var ScrapeBadger = class {
10933
10992
  this.zillow = new ZillowClient(this.baseClient);
10934
10993
  this.immobiliare = new ImmobiliareClient(this.baseClient);
10935
10994
  this.loopnet = new LoopNetClient(this.baseClient);
10995
+ this.meta_ai = new MetaAiClient(this.baseClient);
10936
10996
  this.perplexity = new PerplexityClient(this.baseClient);
10937
10997
  this.depop = new DepopClient(this.baseClient);
10938
10998
  this.wallapop = new WallapopClient(this.baseClient);