scrapebadger 0.70.0 → 0.72.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.js → index.cjs} +111 -3
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +94 -2
- package/dist/index.d.ts +94 -2
- package/dist/index.mjs +109 -1
- package/dist/index.mjs.map +1 -1
- package/dist/twitter/{index.js → index.cjs} +2 -2
- package/dist/twitter/index.cjs.map +1 -0
- package/package.json +8 -8
- package/dist/index.js.map +0 -1
- package/dist/twitter/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -2774,6 +2774,8 @@ declare class GoogleClient {
|
|
|
2774
2774
|
googleAiOverviewInlineSerpBlock(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
2775
2775
|
/** Google Flights calendar — cheapest fare per date. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2776
2776
|
googleFlightsCalendarCheapestFarePerDate(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
2777
|
+
/** Google Light web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2778
|
+
googleLightWebSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
2777
2779
|
}
|
|
2778
2780
|
|
|
2779
2781
|
/**
|
|
@@ -4535,6 +4537,22 @@ declare class AsosClient {
|
|
|
4535
4537
|
getStockAndPrices(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4536
4538
|
}
|
|
4537
4539
|
|
|
4540
|
+
/**
|
|
4541
|
+
* Autoscout24 API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
4542
|
+
*/
|
|
4543
|
+
|
|
4544
|
+
/** Client for all Autoscout24 API operations. (Generated from the OpenAPI spec.) */
|
|
4545
|
+
declare class Autoscout24Client {
|
|
4546
|
+
private readonly client;
|
|
4547
|
+
constructor(client: BaseClient);
|
|
4548
|
+
/** List search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4549
|
+
listSearchFilters(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4550
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4551
|
+
listMarkets(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4552
|
+
/** Search vehicles. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4553
|
+
searchVehicles(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4554
|
+
}
|
|
4555
|
+
|
|
4538
4556
|
/**
|
|
4539
4557
|
* TypeScript types for Instagram API responses.
|
|
4540
4558
|
*
|
|
@@ -5478,6 +5496,10 @@ declare class AccountClient {
|
|
|
5478
5496
|
constructor(client: BaseClient);
|
|
5479
5497
|
/** Get account info. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5480
5498
|
getAccountInfo(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
5499
|
+
/** Get the webhook signing secret. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5500
|
+
getTheWebhookSigningSecret(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
5501
|
+
/** Rotate the webhook signing secret. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5502
|
+
rotateTheWebhookSigningSecret(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
5481
5503
|
}
|
|
5482
5504
|
|
|
5483
5505
|
/**
|
|
@@ -9384,6 +9406,8 @@ declare class FacebookClient {
|
|
|
9384
9406
|
getAMarketplaceItem(itemId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
9385
9407
|
/** List locations. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9386
9408
|
listLocations(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
9409
|
+
/** Resolve a town/postcode to a Marketplace location. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9410
|
+
resolveATownPostcodeToAMarketplaceLocation(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
9387
9411
|
/** Search Marketplace. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9388
9412
|
searchMarketplace(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
9389
9413
|
/** Get page detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
@@ -11619,6 +11643,28 @@ declare class BookingClient {
|
|
|
11619
11643
|
searchProperties(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11620
11644
|
}
|
|
11621
11645
|
|
|
11646
|
+
/**
|
|
11647
|
+
* Brave API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
11648
|
+
*/
|
|
11649
|
+
|
|
11650
|
+
/** Client for all Brave API operations. (Generated from the OpenAPI spec.) */
|
|
11651
|
+
declare class BraveClient {
|
|
11652
|
+
private readonly client;
|
|
11653
|
+
constructor(client: BaseClient);
|
|
11654
|
+
/** Autocomplete. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11655
|
+
autocomplete(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11656
|
+
/** Image search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11657
|
+
imageSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11658
|
+
/** List supported locales. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11659
|
+
listSupportedLocales(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11660
|
+
/** News search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11661
|
+
newsSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11662
|
+
/** Web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11663
|
+
webSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11664
|
+
/** Video search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11665
|
+
videoSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11666
|
+
}
|
|
11667
|
+
|
|
11622
11668
|
/**
|
|
11623
11669
|
* TypeScript types for Baidu API responses.
|
|
11624
11670
|
*
|
|
@@ -11881,6 +11927,18 @@ declare class BaiduClient {
|
|
|
11881
11927
|
autocomplete(query: string): Promise<BaiduAutocompleteResponse>;
|
|
11882
11928
|
}
|
|
11883
11929
|
|
|
11930
|
+
/**
|
|
11931
|
+
* Batch API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
11932
|
+
*/
|
|
11933
|
+
|
|
11934
|
+
/** Client for all Batch API operations. (Generated from the OpenAPI spec.) */
|
|
11935
|
+
declare class BatchClient {
|
|
11936
|
+
private readonly client;
|
|
11937
|
+
constructor(client: BaseClient);
|
|
11938
|
+
/** Submit a batch of async requests. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11939
|
+
submitABatchOfAsyncRequests(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11940
|
+
}
|
|
11941
|
+
|
|
11884
11942
|
/**
|
|
11885
11943
|
* Bestbuy API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
11886
11944
|
*/
|
|
@@ -17904,7 +17962,7 @@ declare class LoopNetClient {
|
|
|
17904
17962
|
}
|
|
17905
17963
|
|
|
17906
17964
|
/**
|
|
17907
|
-
* Perplexity API client.
|
|
17965
|
+
* Perplexity API client. Hand-maintained compatibility adapter.
|
|
17908
17966
|
*/
|
|
17909
17967
|
|
|
17910
17968
|
/**
|
|
@@ -17915,10 +17973,24 @@ declare class LoopNetClient {
|
|
|
17915
17973
|
* to answer only from an exit in `country` (required with it); when none
|
|
17916
17974
|
* answers in time the call fails with HTTP 503 `country_unavailable` and is
|
|
17917
17975
|
* not billed. On the POST forms, put `strict_country: true` in the body.
|
|
17976
|
+
*
|
|
17977
|
+
* `location` is where the asker is, so Perplexity answers a local-sounding
|
|
17978
|
+
* question ("best dentist") for that place instead of the exit IP's city. It
|
|
17979
|
+
* does not change the exit: `country` still picks the exit and language. The
|
|
17980
|
+
* response `location` is the canonical form that was sent (`null` when unset).
|
|
17981
|
+
* On the POST forms, put `location: "tokyo"` in the body.
|
|
17918
17982
|
*/
|
|
17919
17983
|
type PerplexityParams = Record<string, string | number | boolean | undefined> & {
|
|
17920
17984
|
/** Answer only from an exit in `country`, never another one. Sent only when true. */
|
|
17921
17985
|
strictCountry?: boolean;
|
|
17986
|
+
/**
|
|
17987
|
+
* Where the asker is: a city slug (`"tokyo"`, `"osaka"`, `"seoul"`,
|
|
17988
|
+
* `"new-york"`, `"london"`, ...; case-insensitive, spaces and underscores
|
|
17989
|
+
* fold to hyphens) or `"lat,lng"` in decimal degrees (`"35.6812,139.7671"`).
|
|
17990
|
+
* Any other value fails with HTTP 400; the API holds the city list, so the
|
|
17991
|
+
* SDK sends it as given. Sent only when set.
|
|
17992
|
+
*/
|
|
17993
|
+
location?: string;
|
|
17922
17994
|
};
|
|
17923
17995
|
/** Client for all Perplexity API operations. (Generated from the OpenAPI spec.) */
|
|
17924
17996
|
declare class PerplexityClient {
|
|
@@ -19699,7 +19771,7 @@ declare class ChatGPTClient {
|
|
|
19699
19771
|
}
|
|
19700
19772
|
|
|
19701
19773
|
/**
|
|
19702
|
-
* Copilot API client.
|
|
19774
|
+
* Copilot API client. Hand-maintained compatibility adapter.
|
|
19703
19775
|
*/
|
|
19704
19776
|
|
|
19705
19777
|
/**
|
|
@@ -20090,6 +20162,18 @@ declare class GeminiClient {
|
|
|
20090
20162
|
measureABrandSVisibilityInAGeminiAnswerPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
20091
20163
|
}
|
|
20092
20164
|
|
|
20165
|
+
/**
|
|
20166
|
+
* Github API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
20167
|
+
*/
|
|
20168
|
+
|
|
20169
|
+
/** Client for all Github API operations. (Generated from the OpenAPI spec.) */
|
|
20170
|
+
declare class GithubClient {
|
|
20171
|
+
private readonly client;
|
|
20172
|
+
constructor(client: BaseClient);
|
|
20173
|
+
/** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
20174
|
+
getProfile(username: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
20175
|
+
}
|
|
20176
|
+
|
|
20093
20177
|
/**
|
|
20094
20178
|
* Main ScrapeBadger client.
|
|
20095
20179
|
*
|
|
@@ -20150,6 +20234,8 @@ declare class ScrapeBadger {
|
|
|
20150
20234
|
readonly app_store: AppStoreClient;
|
|
20151
20235
|
/** Asos API client. (Generated from the OpenAPI spec.) */
|
|
20152
20236
|
readonly asos: AsosClient;
|
|
20237
|
+
/** Autoscout24 API client. (Generated from the OpenAPI spec.) */
|
|
20238
|
+
readonly autoscout24: Autoscout24Client;
|
|
20153
20239
|
/** Instagram scraper API client — users, media, search, hashtags, locations, audio */
|
|
20154
20240
|
readonly instagram: InstagramClient;
|
|
20155
20241
|
/** Redfin scraper API client — search, property, agent, autocomplete, markets (redfin.com, US) */
|
|
@@ -20190,8 +20276,12 @@ declare class ScrapeBadger {
|
|
|
20190
20276
|
readonly bing: BingClient;
|
|
20191
20277
|
/** Booking API client. (Generated from the OpenAPI spec.) */
|
|
20192
20278
|
readonly booking: BookingClient;
|
|
20279
|
+
/** Brave API client. (Generated from the OpenAPI spec.) */
|
|
20280
|
+
readonly brave: BraveClient;
|
|
20193
20281
|
/** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
|
|
20194
20282
|
readonly baidu: BaiduClient;
|
|
20283
|
+
/** Batch API client. (Generated from the OpenAPI spec.) */
|
|
20284
|
+
readonly batch: BatchClient;
|
|
20195
20285
|
/** Bestbuy API client. (Generated from the OpenAPI spec.) */
|
|
20196
20286
|
readonly bestbuy: BestbuyClient;
|
|
20197
20287
|
/** Naver scraper API client — 55 endpoints (search, places, shopping, stores, content, reviews, products, shopping live; naver.com, South Korea) */
|
|
@@ -20226,6 +20316,8 @@ declare class ScrapeBadger {
|
|
|
20226
20316
|
readonly copilot: CopilotClient;
|
|
20227
20317
|
/** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
|
|
20228
20318
|
readonly gemini: GeminiClient;
|
|
20319
|
+
/** Github API client. (Generated from the OpenAPI spec.) */
|
|
20320
|
+
readonly github: GithubClient;
|
|
20229
20321
|
/**
|
|
20230
20322
|
* Create a new ScrapeBadger client.
|
|
20231
20323
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2774,6 +2774,8 @@ declare class GoogleClient {
|
|
|
2774
2774
|
googleAiOverviewInlineSerpBlock(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
2775
2775
|
/** Google Flights calendar — cheapest fare per date. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2776
2776
|
googleFlightsCalendarCheapestFarePerDate(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
2777
|
+
/** Google Light web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2778
|
+
googleLightWebSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
2777
2779
|
}
|
|
2778
2780
|
|
|
2779
2781
|
/**
|
|
@@ -4535,6 +4537,22 @@ declare class AsosClient {
|
|
|
4535
4537
|
getStockAndPrices(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4536
4538
|
}
|
|
4537
4539
|
|
|
4540
|
+
/**
|
|
4541
|
+
* Autoscout24 API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
4542
|
+
*/
|
|
4543
|
+
|
|
4544
|
+
/** Client for all Autoscout24 API operations. (Generated from the OpenAPI spec.) */
|
|
4545
|
+
declare class Autoscout24Client {
|
|
4546
|
+
private readonly client;
|
|
4547
|
+
constructor(client: BaseClient);
|
|
4548
|
+
/** List search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4549
|
+
listSearchFilters(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4550
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4551
|
+
listMarkets(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4552
|
+
/** Search vehicles. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4553
|
+
searchVehicles(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
4554
|
+
}
|
|
4555
|
+
|
|
4538
4556
|
/**
|
|
4539
4557
|
* TypeScript types for Instagram API responses.
|
|
4540
4558
|
*
|
|
@@ -5478,6 +5496,10 @@ declare class AccountClient {
|
|
|
5478
5496
|
constructor(client: BaseClient);
|
|
5479
5497
|
/** Get account info. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5480
5498
|
getAccountInfo(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
5499
|
+
/** Get the webhook signing secret. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5500
|
+
getTheWebhookSigningSecret(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
5501
|
+
/** Rotate the webhook signing secret. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5502
|
+
rotateTheWebhookSigningSecret(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
5481
5503
|
}
|
|
5482
5504
|
|
|
5483
5505
|
/**
|
|
@@ -9384,6 +9406,8 @@ declare class FacebookClient {
|
|
|
9384
9406
|
getAMarketplaceItem(itemId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
9385
9407
|
/** List locations. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9386
9408
|
listLocations(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
9409
|
+
/** Resolve a town/postcode to a Marketplace location. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9410
|
+
resolveATownPostcodeToAMarketplaceLocation(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
9387
9411
|
/** Search Marketplace. Generated from the OpenAPI spec; returns the raw response object. */
|
|
9388
9412
|
searchMarketplace(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
9389
9413
|
/** Get page detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
@@ -11619,6 +11643,28 @@ declare class BookingClient {
|
|
|
11619
11643
|
searchProperties(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11620
11644
|
}
|
|
11621
11645
|
|
|
11646
|
+
/**
|
|
11647
|
+
* Brave API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
11648
|
+
*/
|
|
11649
|
+
|
|
11650
|
+
/** Client for all Brave API operations. (Generated from the OpenAPI spec.) */
|
|
11651
|
+
declare class BraveClient {
|
|
11652
|
+
private readonly client;
|
|
11653
|
+
constructor(client: BaseClient);
|
|
11654
|
+
/** Autocomplete. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11655
|
+
autocomplete(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11656
|
+
/** Image search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11657
|
+
imageSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11658
|
+
/** List supported locales. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11659
|
+
listSupportedLocales(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11660
|
+
/** News search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11661
|
+
newsSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11662
|
+
/** Web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11663
|
+
webSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11664
|
+
/** Video search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11665
|
+
videoSearch(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11666
|
+
}
|
|
11667
|
+
|
|
11622
11668
|
/**
|
|
11623
11669
|
* TypeScript types for Baidu API responses.
|
|
11624
11670
|
*
|
|
@@ -11881,6 +11927,18 @@ declare class BaiduClient {
|
|
|
11881
11927
|
autocomplete(query: string): Promise<BaiduAutocompleteResponse>;
|
|
11882
11928
|
}
|
|
11883
11929
|
|
|
11930
|
+
/**
|
|
11931
|
+
* Batch API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
11932
|
+
*/
|
|
11933
|
+
|
|
11934
|
+
/** Client for all Batch API operations. (Generated from the OpenAPI spec.) */
|
|
11935
|
+
declare class BatchClient {
|
|
11936
|
+
private readonly client;
|
|
11937
|
+
constructor(client: BaseClient);
|
|
11938
|
+
/** Submit a batch of async requests. Generated from the OpenAPI spec; returns the raw response object. */
|
|
11939
|
+
submitABatchOfAsyncRequests(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
11940
|
+
}
|
|
11941
|
+
|
|
11884
11942
|
/**
|
|
11885
11943
|
* Bestbuy API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
11886
11944
|
*/
|
|
@@ -17904,7 +17962,7 @@ declare class LoopNetClient {
|
|
|
17904
17962
|
}
|
|
17905
17963
|
|
|
17906
17964
|
/**
|
|
17907
|
-
* Perplexity API client.
|
|
17965
|
+
* Perplexity API client. Hand-maintained compatibility adapter.
|
|
17908
17966
|
*/
|
|
17909
17967
|
|
|
17910
17968
|
/**
|
|
@@ -17915,10 +17973,24 @@ declare class LoopNetClient {
|
|
|
17915
17973
|
* to answer only from an exit in `country` (required with it); when none
|
|
17916
17974
|
* answers in time the call fails with HTTP 503 `country_unavailable` and is
|
|
17917
17975
|
* not billed. On the POST forms, put `strict_country: true` in the body.
|
|
17976
|
+
*
|
|
17977
|
+
* `location` is where the asker is, so Perplexity answers a local-sounding
|
|
17978
|
+
* question ("best dentist") for that place instead of the exit IP's city. It
|
|
17979
|
+
* does not change the exit: `country` still picks the exit and language. The
|
|
17980
|
+
* response `location` is the canonical form that was sent (`null` when unset).
|
|
17981
|
+
* On the POST forms, put `location: "tokyo"` in the body.
|
|
17918
17982
|
*/
|
|
17919
17983
|
type PerplexityParams = Record<string, string | number | boolean | undefined> & {
|
|
17920
17984
|
/** Answer only from an exit in `country`, never another one. Sent only when true. */
|
|
17921
17985
|
strictCountry?: boolean;
|
|
17986
|
+
/**
|
|
17987
|
+
* Where the asker is: a city slug (`"tokyo"`, `"osaka"`, `"seoul"`,
|
|
17988
|
+
* `"new-york"`, `"london"`, ...; case-insensitive, spaces and underscores
|
|
17989
|
+
* fold to hyphens) or `"lat,lng"` in decimal degrees (`"35.6812,139.7671"`).
|
|
17990
|
+
* Any other value fails with HTTP 400; the API holds the city list, so the
|
|
17991
|
+
* SDK sends it as given. Sent only when set.
|
|
17992
|
+
*/
|
|
17993
|
+
location?: string;
|
|
17922
17994
|
};
|
|
17923
17995
|
/** Client for all Perplexity API operations. (Generated from the OpenAPI spec.) */
|
|
17924
17996
|
declare class PerplexityClient {
|
|
@@ -19699,7 +19771,7 @@ declare class ChatGPTClient {
|
|
|
19699
19771
|
}
|
|
19700
19772
|
|
|
19701
19773
|
/**
|
|
19702
|
-
* Copilot API client.
|
|
19774
|
+
* Copilot API client. Hand-maintained compatibility adapter.
|
|
19703
19775
|
*/
|
|
19704
19776
|
|
|
19705
19777
|
/**
|
|
@@ -20090,6 +20162,18 @@ declare class GeminiClient {
|
|
|
20090
20162
|
measureABrandSVisibilityInAGeminiAnswerPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
20091
20163
|
}
|
|
20092
20164
|
|
|
20165
|
+
/**
|
|
20166
|
+
* Github API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
20167
|
+
*/
|
|
20168
|
+
|
|
20169
|
+
/** Client for all Github API operations. (Generated from the OpenAPI spec.) */
|
|
20170
|
+
declare class GithubClient {
|
|
20171
|
+
private readonly client;
|
|
20172
|
+
constructor(client: BaseClient);
|
|
20173
|
+
/** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
20174
|
+
getProfile(username: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
20175
|
+
}
|
|
20176
|
+
|
|
20093
20177
|
/**
|
|
20094
20178
|
* Main ScrapeBadger client.
|
|
20095
20179
|
*
|
|
@@ -20150,6 +20234,8 @@ declare class ScrapeBadger {
|
|
|
20150
20234
|
readonly app_store: AppStoreClient;
|
|
20151
20235
|
/** Asos API client. (Generated from the OpenAPI spec.) */
|
|
20152
20236
|
readonly asos: AsosClient;
|
|
20237
|
+
/** Autoscout24 API client. (Generated from the OpenAPI spec.) */
|
|
20238
|
+
readonly autoscout24: Autoscout24Client;
|
|
20153
20239
|
/** Instagram scraper API client — users, media, search, hashtags, locations, audio */
|
|
20154
20240
|
readonly instagram: InstagramClient;
|
|
20155
20241
|
/** Redfin scraper API client — search, property, agent, autocomplete, markets (redfin.com, US) */
|
|
@@ -20190,8 +20276,12 @@ declare class ScrapeBadger {
|
|
|
20190
20276
|
readonly bing: BingClient;
|
|
20191
20277
|
/** Booking API client. (Generated from the OpenAPI spec.) */
|
|
20192
20278
|
readonly booking: BookingClient;
|
|
20279
|
+
/** Brave API client. (Generated from the OpenAPI spec.) */
|
|
20280
|
+
readonly brave: BraveClient;
|
|
20193
20281
|
/** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
|
|
20194
20282
|
readonly baidu: BaiduClient;
|
|
20283
|
+
/** Batch API client. (Generated from the OpenAPI spec.) */
|
|
20284
|
+
readonly batch: BatchClient;
|
|
20195
20285
|
/** Bestbuy API client. (Generated from the OpenAPI spec.) */
|
|
20196
20286
|
readonly bestbuy: BestbuyClient;
|
|
20197
20287
|
/** Naver scraper API client — 55 endpoints (search, places, shopping, stores, content, reviews, products, shopping live; naver.com, South Korea) */
|
|
@@ -20226,6 +20316,8 @@ declare class ScrapeBadger {
|
|
|
20226
20316
|
readonly copilot: CopilotClient;
|
|
20227
20317
|
/** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
|
|
20228
20318
|
readonly gemini: GeminiClient;
|
|
20319
|
+
/** Github API client. (Generated from the OpenAPI spec.) */
|
|
20320
|
+
readonly github: GithubClient;
|
|
20229
20321
|
/**
|
|
20230
20322
|
* Create a new ScrapeBadger client.
|
|
20231
20323
|
*
|
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.72.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -3795,6 +3795,10 @@ var GoogleClient = class {
|
|
|
3795
3795
|
async googleFlightsCalendarCheapestFarePerDate(params = {}) {
|
|
3796
3796
|
return this._gen.request("/v1/google/flights/calendar", { params });
|
|
3797
3797
|
}
|
|
3798
|
+
/** Google Light web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3799
|
+
async googleLightWebSearch(params = {}) {
|
|
3800
|
+
return this._gen.request("/v1/google/light/search", { params });
|
|
3801
|
+
}
|
|
3798
3802
|
// --- END generated by sdk/codegen/facade ---
|
|
3799
3803
|
};
|
|
3800
3804
|
|
|
@@ -4618,6 +4622,26 @@ var AsosClient = class {
|
|
|
4618
4622
|
}
|
|
4619
4623
|
};
|
|
4620
4624
|
|
|
4625
|
+
// src/autoscout24/client.ts
|
|
4626
|
+
var Autoscout24Client = class {
|
|
4627
|
+
client;
|
|
4628
|
+
constructor(client) {
|
|
4629
|
+
this.client = client;
|
|
4630
|
+
}
|
|
4631
|
+
/** List search filters. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4632
|
+
async listSearchFilters(params = {}) {
|
|
4633
|
+
return this.client.request("/v1/autoscout24/filters", { params });
|
|
4634
|
+
}
|
|
4635
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4636
|
+
async listMarkets(params = {}) {
|
|
4637
|
+
return this.client.request("/v1/autoscout24/markets", { params });
|
|
4638
|
+
}
|
|
4639
|
+
/** Search vehicles. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4640
|
+
async searchVehicles(params = {}) {
|
|
4641
|
+
return this.client.request("/v1/autoscout24/search", { params });
|
|
4642
|
+
}
|
|
4643
|
+
};
|
|
4644
|
+
|
|
4621
4645
|
// src/instagram/users.ts
|
|
4622
4646
|
var UsersClient4 = class {
|
|
4623
4647
|
client;
|
|
@@ -5020,6 +5044,18 @@ var AccountClient = class {
|
|
|
5020
5044
|
async getAccountInfo(params = {}) {
|
|
5021
5045
|
return this.client.request("/v1/account/me", { params });
|
|
5022
5046
|
}
|
|
5047
|
+
/** Get the webhook signing secret. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5048
|
+
async getTheWebhookSigningSecret(params = {}) {
|
|
5049
|
+
return this.client.request("/v1/account/webhook-secret", { params });
|
|
5050
|
+
}
|
|
5051
|
+
/** Rotate the webhook signing secret. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5052
|
+
async rotateTheWebhookSigningSecret(body, params = {}) {
|
|
5053
|
+
return this.client.request("/v1/account/webhook-secret/rotate", {
|
|
5054
|
+
method: "POST",
|
|
5055
|
+
params,
|
|
5056
|
+
body
|
|
5057
|
+
});
|
|
5058
|
+
}
|
|
5023
5059
|
};
|
|
5024
5060
|
|
|
5025
5061
|
// src/agent/client.ts
|
|
@@ -6582,6 +6618,10 @@ var FacebookClient = class {
|
|
|
6582
6618
|
async listLocations(params = {}) {
|
|
6583
6619
|
return this.client.request("/v1/facebook/marketplace/locations", { params });
|
|
6584
6620
|
}
|
|
6621
|
+
/** Resolve a town/postcode to a Marketplace location. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6622
|
+
async resolveATownPostcodeToAMarketplaceLocation(params = {}) {
|
|
6623
|
+
return this.client.request("/v1/facebook/marketplace/locations/resolve", { params });
|
|
6624
|
+
}
|
|
6585
6625
|
/** Search Marketplace. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6586
6626
|
async searchMarketplace(params = {}) {
|
|
6587
6627
|
return this.client.request("/v1/facebook/marketplace/search", { params });
|
|
@@ -7362,6 +7402,38 @@ var BookingClient = class {
|
|
|
7362
7402
|
}
|
|
7363
7403
|
};
|
|
7364
7404
|
|
|
7405
|
+
// src/brave/client.ts
|
|
7406
|
+
var BraveClient = class {
|
|
7407
|
+
client;
|
|
7408
|
+
constructor(client) {
|
|
7409
|
+
this.client = client;
|
|
7410
|
+
}
|
|
7411
|
+
/** Autocomplete. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7412
|
+
async autocomplete(params = {}) {
|
|
7413
|
+
return this.client.request("/v1/brave/autocomplete", { params });
|
|
7414
|
+
}
|
|
7415
|
+
/** Image search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7416
|
+
async imageSearch(params = {}) {
|
|
7417
|
+
return this.client.request("/v1/brave/images", { params });
|
|
7418
|
+
}
|
|
7419
|
+
/** List supported locales. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7420
|
+
async listSupportedLocales(params = {}) {
|
|
7421
|
+
return this.client.request("/v1/brave/locales", { params });
|
|
7422
|
+
}
|
|
7423
|
+
/** News search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7424
|
+
async newsSearch(params = {}) {
|
|
7425
|
+
return this.client.request("/v1/brave/news", { params });
|
|
7426
|
+
}
|
|
7427
|
+
/** Web search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7428
|
+
async webSearch(params = {}) {
|
|
7429
|
+
return this.client.request("/v1/brave/search", { params });
|
|
7430
|
+
}
|
|
7431
|
+
/** Video search. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7432
|
+
async videoSearch(params = {}) {
|
|
7433
|
+
return this.client.request("/v1/brave/videos", { params });
|
|
7434
|
+
}
|
|
7435
|
+
};
|
|
7436
|
+
|
|
7365
7437
|
// src/baidu/client.ts
|
|
7366
7438
|
var BaiduClient = class {
|
|
7367
7439
|
client;
|
|
@@ -7433,6 +7505,18 @@ var BaiduClient = class {
|
|
|
7433
7505
|
}
|
|
7434
7506
|
};
|
|
7435
7507
|
|
|
7508
|
+
// src/batch/client.ts
|
|
7509
|
+
var BatchClient = class {
|
|
7510
|
+
client;
|
|
7511
|
+
constructor(client) {
|
|
7512
|
+
this.client = client;
|
|
7513
|
+
}
|
|
7514
|
+
/** Submit a batch of async requests. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7515
|
+
async submitABatchOfAsyncRequests(body, params = {}) {
|
|
7516
|
+
return this.client.request("/v1/batch", { method: "POST", params, body });
|
|
7517
|
+
}
|
|
7518
|
+
};
|
|
7519
|
+
|
|
7436
7520
|
// src/bestbuy/client.ts
|
|
7437
7521
|
var BestbuyClient = class {
|
|
7438
7522
|
client;
|
|
@@ -10593,6 +10677,18 @@ var GeminiClient = class {
|
|
|
10593
10677
|
// --- END generated by sdk/codegen/facade ---
|
|
10594
10678
|
};
|
|
10595
10679
|
|
|
10680
|
+
// src/github/client.ts
|
|
10681
|
+
var GithubClient = class {
|
|
10682
|
+
client;
|
|
10683
|
+
constructor(client) {
|
|
10684
|
+
this.client = client;
|
|
10685
|
+
}
|
|
10686
|
+
/** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10687
|
+
async getProfile(username, params = {}) {
|
|
10688
|
+
return this.client.request(`/v1/github/profiles/${username}`, { params });
|
|
10689
|
+
}
|
|
10690
|
+
};
|
|
10691
|
+
|
|
10596
10692
|
// src/client.ts
|
|
10597
10693
|
var ScrapeBadger = class {
|
|
10598
10694
|
baseClient;
|
|
@@ -10616,6 +10712,8 @@ var ScrapeBadger = class {
|
|
|
10616
10712
|
app_store;
|
|
10617
10713
|
/** Asos API client. (Generated from the OpenAPI spec.) */
|
|
10618
10714
|
asos;
|
|
10715
|
+
/** Autoscout24 API client. (Generated from the OpenAPI spec.) */
|
|
10716
|
+
autoscout24;
|
|
10619
10717
|
/** Instagram scraper API client — users, media, search, hashtags, locations, audio */
|
|
10620
10718
|
instagram;
|
|
10621
10719
|
/** Redfin scraper API client — search, property, agent, autocomplete, markets (redfin.com, US) */
|
|
@@ -10656,8 +10754,12 @@ var ScrapeBadger = class {
|
|
|
10656
10754
|
bing;
|
|
10657
10755
|
/** Booking API client. (Generated from the OpenAPI spec.) */
|
|
10658
10756
|
booking;
|
|
10757
|
+
/** Brave API client. (Generated from the OpenAPI spec.) */
|
|
10758
|
+
brave;
|
|
10659
10759
|
/** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
|
|
10660
10760
|
baidu;
|
|
10761
|
+
/** Batch API client. (Generated from the OpenAPI spec.) */
|
|
10762
|
+
batch;
|
|
10661
10763
|
/** Bestbuy API client. (Generated from the OpenAPI spec.) */
|
|
10662
10764
|
bestbuy;
|
|
10663
10765
|
/** Naver scraper API client — 55 endpoints (search, places, shopping, stores, content, reviews, products, shopping live; naver.com, South Korea) */
|
|
@@ -10692,6 +10794,8 @@ var ScrapeBadger = class {
|
|
|
10692
10794
|
copilot;
|
|
10693
10795
|
/** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
|
|
10694
10796
|
gemini;
|
|
10797
|
+
/** Github API client. (Generated from the OpenAPI spec.) */
|
|
10798
|
+
github;
|
|
10695
10799
|
/**
|
|
10696
10800
|
* Create a new ScrapeBadger client.
|
|
10697
10801
|
*
|
|
@@ -10736,6 +10840,7 @@ var ScrapeBadger = class {
|
|
|
10736
10840
|
this.apartments = new ApartmentsClient(this.baseClient);
|
|
10737
10841
|
this.app_store = new AppStoreClient(this.baseClient);
|
|
10738
10842
|
this.asos = new AsosClient(this.baseClient);
|
|
10843
|
+
this.autoscout24 = new Autoscout24Client(this.baseClient);
|
|
10739
10844
|
this.instagram = new InstagramClient(this.baseClient);
|
|
10740
10845
|
this.redfin = new RedfinClient(this.baseClient);
|
|
10741
10846
|
this.account = new AccountClient(this.baseClient);
|
|
@@ -10756,7 +10861,9 @@ var ScrapeBadger = class {
|
|
|
10756
10861
|
this.duckduckgo = new DuckDuckGoClient(this.baseClient);
|
|
10757
10862
|
this.bing = new BingClient(this.baseClient);
|
|
10758
10863
|
this.booking = new BookingClient(this.baseClient);
|
|
10864
|
+
this.brave = new BraveClient(this.baseClient);
|
|
10759
10865
|
this.baidu = new BaiduClient(this.baseClient);
|
|
10866
|
+
this.batch = new BatchClient(this.baseClient);
|
|
10760
10867
|
this.bestbuy = new BestbuyClient(this.baseClient);
|
|
10761
10868
|
this.naver = new NaverClient(this.baseClient);
|
|
10762
10869
|
this.yahoo = new YahooClient(this.baseClient);
|
|
@@ -10774,6 +10881,7 @@ var ScrapeBadger = class {
|
|
|
10774
10881
|
this.chatgpt = new ChatGPTClient(this.baseClient);
|
|
10775
10882
|
this.copilot = new CopilotClient(this.baseClient);
|
|
10776
10883
|
this.gemini = new GeminiClient(this.baseClient);
|
|
10884
|
+
this.github = new GithubClient(this.baseClient);
|
|
10777
10885
|
}
|
|
10778
10886
|
};
|
|
10779
10887
|
|