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 +73 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +167 -21
- package/dist/index.d.ts +167 -21
- package/dist/index.mjs +73 -13
- package/dist/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.79.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -3788,10 +3788,6 @@ var GoogleClient = class {
|
|
|
3788
3788
|
async googleFlightsCalendarCheapestFarePerDate(params = {}) {
|
|
3789
3789
|
return this._gen.request("/v1/google/flights/calendar", { params });
|
|
3790
3790
|
}
|
|
3791
|
-
/** Google Light web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3792
|
-
async googleLightWebSearch(params = {}) {
|
|
3793
|
-
return this._gen.request("/v1/google/light/search", { params });
|
|
3794
|
-
}
|
|
3795
3791
|
// --- END generated by sdk/codegen/facade ---
|
|
3796
3792
|
};
|
|
3797
3793
|
|
|
@@ -3843,6 +3839,38 @@ var GooglePlayClient = class {
|
|
|
3843
3839
|
}
|
|
3844
3840
|
};
|
|
3845
3841
|
|
|
3842
|
+
// src/grok/client.ts
|
|
3843
|
+
var GrokClient = class {
|
|
3844
|
+
client;
|
|
3845
|
+
constructor(client) {
|
|
3846
|
+
this.client = client;
|
|
3847
|
+
}
|
|
3848
|
+
/** Ask Grok a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3849
|
+
async askGrokAQuestion(params = {}) {
|
|
3850
|
+
return this.client.request("/v1/grok/ask", { params });
|
|
3851
|
+
}
|
|
3852
|
+
/** Ask Grok a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
3853
|
+
async askGrokAQuestionPost(body, params = {}) {
|
|
3854
|
+
return this.client.request("/v1/grok/ask", { method: "POST", params, body });
|
|
3855
|
+
}
|
|
3856
|
+
/** Measure brand visibility in Grok. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3857
|
+
async measureBrandVisibilityInGrok(params = {}) {
|
|
3858
|
+
return this.client.request("/v1/grok/brand-visibility", { params });
|
|
3859
|
+
}
|
|
3860
|
+
/** Measure brand visibility in Grok (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
3861
|
+
async measureBrandVisibilityInGrokPost(body, params = {}) {
|
|
3862
|
+
return this.client.request("/v1/grok/brand-visibility", { method: "POST", params, body });
|
|
3863
|
+
}
|
|
3864
|
+
/** Get a Grok conversation. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3865
|
+
async getAGrokConversation(conversationId, params = {}) {
|
|
3866
|
+
return this.client.request(`/v1/grok/conversations/${conversationId}`, { params });
|
|
3867
|
+
}
|
|
3868
|
+
/** List Grok assistant modes. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3869
|
+
async listGrokAssistantModes(params = {}) {
|
|
3870
|
+
return this.client.request("/v1/grok/models", { params });
|
|
3871
|
+
}
|
|
3872
|
+
};
|
|
3873
|
+
|
|
3846
3874
|
// src/idealista/client.ts
|
|
3847
3875
|
var IdealistaClient = class {
|
|
3848
3876
|
client;
|
|
@@ -3865,11 +3893,7 @@ var IdealistaClient = class {
|
|
|
3865
3893
|
async getPropertyDetail(propertyCode, params = {}) {
|
|
3866
3894
|
return this.client.request(`/v1/idealista/properties/${propertyCode}`, { params });
|
|
3867
3895
|
}
|
|
3868
|
-
/**
|
|
3869
|
-
* Get listing engagement stats.
|
|
3870
|
-
* @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.
|
|
3871
|
-
* Generated from the OpenAPI spec; returns the raw response object.
|
|
3872
|
-
*/
|
|
3896
|
+
/** Get listing engagement stats. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3873
3897
|
async getListingEngagementStats(propertyCode, params = {}) {
|
|
3874
3898
|
return this.client.request(`/v1/idealista/properties/${propertyCode}/stats`, { params });
|
|
3875
3899
|
}
|
|
@@ -6637,9 +6661,7 @@ var FacebookClient = class {
|
|
|
6637
6661
|
async resolveATownPostcodeToAMarketplaceLocation(params = {}) {
|
|
6638
6662
|
return this.client.request("/v1/facebook/marketplace/locations/resolve", { params });
|
|
6639
6663
|
}
|
|
6640
|
-
/** Search
|
|
6641
|
-
* include_details: true for descriptions/photos. Continuations cover price ranges;
|
|
6642
|
-
* search_info reports partial coverage. Sort all collected pages for newest first. */
|
|
6664
|
+
/** Search Marketplace. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6643
6665
|
async searchMarketplace(params = {}) {
|
|
6644
6666
|
return this.client.request("/v1/facebook/marketplace/search", { params });
|
|
6645
6667
|
}
|
|
@@ -9926,6 +9948,26 @@ var LoopNetClient = class {
|
|
|
9926
9948
|
}
|
|
9927
9949
|
};
|
|
9928
9950
|
|
|
9951
|
+
// src/meta_ai/client.ts
|
|
9952
|
+
var MetaAiClient = class {
|
|
9953
|
+
client;
|
|
9954
|
+
constructor(client) {
|
|
9955
|
+
this.client = client;
|
|
9956
|
+
}
|
|
9957
|
+
/** Ask Meta AI a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9958
|
+
async askMetaAiAQuestion(params = {}) {
|
|
9959
|
+
return this.client.request("/v1/meta-ai/ask", { params });
|
|
9960
|
+
}
|
|
9961
|
+
/** Ask Meta AI a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
9962
|
+
async askMetaAiAQuestionPost(body, params = {}) {
|
|
9963
|
+
return this.client.request("/v1/meta-ai/ask", { method: "POST", params, body });
|
|
9964
|
+
}
|
|
9965
|
+
/** List Meta AI assistant modes. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9966
|
+
async listMetaAiAssistantModes(params = {}) {
|
|
9967
|
+
return this.client.request("/v1/meta-ai/models", { params });
|
|
9968
|
+
}
|
|
9969
|
+
};
|
|
9970
|
+
|
|
9929
9971
|
// src/perplexity/client.ts
|
|
9930
9972
|
function toQuery(params) {
|
|
9931
9973
|
const { strictCountry, ...rest } = params;
|
|
@@ -10334,6 +10376,18 @@ var LinkedInClient = class {
|
|
|
10334
10376
|
params: { country: options.country ?? "us" }
|
|
10335
10377
|
});
|
|
10336
10378
|
}
|
|
10379
|
+
/**
|
|
10380
|
+
* Get a full profile through the server-owned authenticated projection.
|
|
10381
|
+
*
|
|
10382
|
+
* @param publicId - The profile's public id (URL slug).
|
|
10383
|
+
* @param options - Optional parameters (country).
|
|
10384
|
+
* @returns Full profile with richer verticals and position pagination.
|
|
10385
|
+
*/
|
|
10386
|
+
async getFullProfile(publicId, options = {}) {
|
|
10387
|
+
return this.client.request(`/v1/linkedin/profiles/${publicId}/full`, {
|
|
10388
|
+
params: { country: options.country ?? "us" }
|
|
10389
|
+
});
|
|
10390
|
+
}
|
|
10337
10391
|
/**
|
|
10338
10392
|
* Get a public LinkedIn post (activity share).
|
|
10339
10393
|
*
|
|
@@ -10749,6 +10803,8 @@ var ScrapeBadger = class {
|
|
|
10749
10803
|
google;
|
|
10750
10804
|
/** Google_Play API client. (Generated from the OpenAPI spec.) */
|
|
10751
10805
|
google_play;
|
|
10806
|
+
/** Grok API client. (Generated from the OpenAPI spec.) */
|
|
10807
|
+
grok;
|
|
10752
10808
|
/** Idealista API client. (Generated from the OpenAPI spec.) */
|
|
10753
10809
|
idealista;
|
|
10754
10810
|
/** Reddit scraper API client */
|
|
@@ -10832,6 +10888,8 @@ var ScrapeBadger = class {
|
|
|
10832
10888
|
immobiliare;
|
|
10833
10889
|
/** LoopNet scraper API client — commercial real estate across US/CA/UK/FR/ES (search, listing, broker, markets, property types) */
|
|
10834
10890
|
loopnet;
|
|
10891
|
+
/** Meta_Ai API client. (Generated from the OpenAPI spec.) */
|
|
10892
|
+
meta_ai;
|
|
10835
10893
|
/** Perplexity API client. (Generated from the OpenAPI spec.) */
|
|
10836
10894
|
perplexity;
|
|
10837
10895
|
/** Depop scraper API client — search, product, user, user products, markets (www.depop.com, 10 markets) */
|
|
@@ -10887,6 +10945,7 @@ var ScrapeBadger = class {
|
|
|
10887
10945
|
this.vinted = new VintedClient(this.baseClient);
|
|
10888
10946
|
this.google = new GoogleClient(this.baseClient);
|
|
10889
10947
|
this.google_play = new GooglePlayClient(this.baseClient);
|
|
10948
|
+
this.grok = new GrokClient(this.baseClient);
|
|
10890
10949
|
this.idealista = new IdealistaClient(this.baseClient);
|
|
10891
10950
|
this.reddit = new RedditClient(this.baseClient);
|
|
10892
10951
|
this.apartments = new ApartmentsClient(this.baseClient);
|
|
@@ -10927,6 +10986,7 @@ var ScrapeBadger = class {
|
|
|
10927
10986
|
this.zillow = new ZillowClient(this.baseClient);
|
|
10928
10987
|
this.immobiliare = new ImmobiliareClient(this.baseClient);
|
|
10929
10988
|
this.loopnet = new LoopNetClient(this.baseClient);
|
|
10989
|
+
this.meta_ai = new MetaAiClient(this.baseClient);
|
|
10930
10990
|
this.perplexity = new PerplexityClient(this.baseClient);
|
|
10931
10991
|
this.depop = new DepopClient(this.baseClient);
|
|
10932
10992
|
this.wallapop = new WallapopClient(this.baseClient);
|