scrapebadger 0.60.1 → 0.61.1

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.
@@ -2141,6 +2141,51 @@ declare class ValidationError extends ScrapeBadgerError {
2141
2141
  readonly errors: Record<string, string[]> | undefined;
2142
2142
  constructor(message?: string, errors?: Record<string, string[]>);
2143
2143
  }
2144
+ /** Why the Web Scraping API reported a target as blocked (SCR-306). */
2145
+ type BlockKind = "antibot" | "captcha" | "rate_limit" | "ip_ban" | "geo_block" | "auth_wall" | "empty" | "other";
2146
+ /** The CAPTCHA gating a blocked page. */
2147
+ interface BlockingCaptcha {
2148
+ system: string;
2149
+ confidence: number;
2150
+ details?: string | null;
2151
+ version?: string | null;
2152
+ gate?: boolean;
2153
+ solvable?: boolean;
2154
+ params?: Record<string, unknown>;
2155
+ }
2156
+ /**
2157
+ * Raised when a web scrape hit an anti-bot wall on every attempt (HTTP 422,
2158
+ * `error: "blocking_page_detected"`). Extends `ValidationError`, which is
2159
+ * what this threw before 0.61.0, so existing handlers still match. Blocked
2160
+ * requests are not charged.
2161
+ *
2162
+ * @example
2163
+ * ```ts
2164
+ * try {
2165
+ * await client.web.scrape({ url: "https://example.com" });
2166
+ * } catch (err) {
2167
+ * if (err instanceof BlockedError) {
2168
+ * console.log(err.blockKind, err.vendor, err.captcha?.params);
2169
+ * }
2170
+ * }
2171
+ * ```
2172
+ */
2173
+ declare class BlockedError extends ValidationError {
2174
+ /** The wall's class; undefined on older responses */
2175
+ readonly blockKind: BlockKind | undefined;
2176
+ /** The protection vendor that served it, e.g. "cloudflare", "datadome", "aws_waf" */
2177
+ readonly vendor: string | undefined;
2178
+ /** The CAPTCHA gating the page when blockKind is "captcha" */
2179
+ readonly captcha: BlockingCaptcha | undefined;
2180
+ /** The scrape result the API returned with the block */
2181
+ readonly data: Record<string, unknown> | undefined;
2182
+ constructor(message?: string, details?: {
2183
+ blockKind?: BlockKind | null;
2184
+ vendor?: string | null;
2185
+ captcha?: BlockingCaptcha | null;
2186
+ data?: Record<string, unknown> | null;
2187
+ });
2188
+ }
2144
2189
  /**
2145
2190
  * Raised when an internal server error occurs.
2146
2191
  */
@@ -3175,4 +3220,4 @@ declare class TwitterClient {
3175
3220
  removeWebhookFromMonitor(webhookId: string, body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
3176
3221
  }
3177
3222
 
3178
- export { type PlaceTrends as $, AuthenticationError as A, BaseClient as B, ConflictError as C, type User as D, type UserAbout as E, type UserIds as F, GeoClient as G, type Hashtag as H, InsufficientCreditsError as I, type List as J, type CommunityBanner as K, ListsClient as L, type Media as M, NotFoundError as N, type CommunityRule as O, PermissionDeniedError as P, type QueryType as Q, type ResolvedConfig as R, type ScrapeBadgerConfig as S, TwitterClient as T, UsersClient as U, ValidationError as V, WebSocketStreamError as W, type Community as X, type CommunityMember as Y, type Trend as Z, type Location as _, ScrapeBadgerError as a, type Place as a0, type Article as a1, type CommunityNote as a2, type Space as a3, type Broadcast as a4, type ApiResponse as a5, type ListResponse as a6, type MonitorStatus as a7, type StreamMonitor as a8, type StreamMonitorList as a9, type CreateMonitorParams as aa, type UpdateMonitorParams as ab, type StreamTweet as ac, type ConnectedEvent as ad, type PingEvent as ae, type TweetEvent as af, type ErrorEvent as ag, type StreamEvent as ah, type StreamEventType as ai, type DeliveryLog as aj, type DeliveryLogList as ak, type BillingLog as al, type BillingLogList as am, type ConnectOptions as an, type FilterRuleStatus as ao, type FilterRuleResponse as ap, type FilterRuleCreate as aq, type FilterRuleUpdate as ar, type FilterRulePricingTier as as, type FilterRuleListResponse as at, type FilterRuleValidateResponse as au, type FilterRuleDeliveryLog as av, type FilterRuleDeliveryLogListResponse as aw, type FilterRulePricingTiersResponse as ax, RateLimitError as b, ServerError as c, TimeoutError as d, AccountRestrictedError as e, IPNotAllowedError as f, type PaginatedResponse as g, type PaginationOptions as h, type IteratorOptions as i, collectAll as j, TweetsClient as k, CommunitiesClient as l, TrendsClient as m, type GeoSearchOptions as n, StreamClient as o, type StreamEmitter as p, SpacesClient as q, type TrendCategory as r, type CommunityTweetType as s, type PollOption as t, type Poll as u, verifyWebhookSignature as v, type Url as w, type UserMention as x, type TweetPlace as y, type Tweet as z };
3223
+ export { type CommunityMember as $, AuthenticationError as A, BaseClient as B, ConflictError as C, type UserMention as D, type TweetPlace as E, type Tweet as F, GeoClient as G, type Hashtag as H, InsufficientCreditsError as I, type User as J, type UserAbout as K, ListsClient as L, type Media as M, NotFoundError as N, type UserIds as O, PermissionDeniedError as P, type QueryType as Q, type ResolvedConfig as R, type ScrapeBadgerConfig as S, TwitterClient as T, UsersClient as U, ValidationError as V, WebSocketStreamError as W, type List as X, type CommunityBanner as Y, type CommunityRule as Z, type Community as _, ScrapeBadgerError as a, type Trend as a0, type Location as a1, type PlaceTrends as a2, type Place as a3, type Article as a4, type CommunityNote as a5, type Space as a6, type Broadcast as a7, type ApiResponse as a8, type ListResponse as a9, type FilterRulePricingTiersResponse as aA, type MonitorStatus as aa, type StreamMonitor as ab, type StreamMonitorList as ac, type CreateMonitorParams as ad, type UpdateMonitorParams as ae, type StreamTweet as af, type ConnectedEvent as ag, type PingEvent as ah, type TweetEvent as ai, type ErrorEvent as aj, type StreamEvent as ak, type StreamEventType as al, type DeliveryLog as am, type DeliveryLogList as an, type BillingLog as ao, type BillingLogList as ap, type ConnectOptions as aq, type FilterRuleStatus as ar, type FilterRuleResponse as as, type FilterRuleCreate as at, type FilterRuleUpdate as au, type FilterRulePricingTier as av, type FilterRuleListResponse as aw, type FilterRuleValidateResponse as ax, type FilterRuleDeliveryLog as ay, type FilterRuleDeliveryLogListResponse as az, RateLimitError as b, BlockedError as c, ServerError as d, TimeoutError as e, AccountRestrictedError as f, IPNotAllowedError as g, type BlockKind as h, type BlockingCaptcha as i, type PaginatedResponse as j, type PaginationOptions as k, type IteratorOptions as l, collectAll as m, TweetsClient as n, CommunitiesClient as o, TrendsClient as p, type GeoSearchOptions as q, StreamClient as r, type StreamEmitter as s, SpacesClient as t, type TrendCategory as u, verifyWebhookSignature as v, type CommunityTweetType as w, type PollOption as x, type Poll as y, type Url as z };
@@ -2141,6 +2141,51 @@ declare class ValidationError extends ScrapeBadgerError {
2141
2141
  readonly errors: Record<string, string[]> | undefined;
2142
2142
  constructor(message?: string, errors?: Record<string, string[]>);
2143
2143
  }
2144
+ /** Why the Web Scraping API reported a target as blocked (SCR-306). */
2145
+ type BlockKind = "antibot" | "captcha" | "rate_limit" | "ip_ban" | "geo_block" | "auth_wall" | "empty" | "other";
2146
+ /** The CAPTCHA gating a blocked page. */
2147
+ interface BlockingCaptcha {
2148
+ system: string;
2149
+ confidence: number;
2150
+ details?: string | null;
2151
+ version?: string | null;
2152
+ gate?: boolean;
2153
+ solvable?: boolean;
2154
+ params?: Record<string, unknown>;
2155
+ }
2156
+ /**
2157
+ * Raised when a web scrape hit an anti-bot wall on every attempt (HTTP 422,
2158
+ * `error: "blocking_page_detected"`). Extends `ValidationError`, which is
2159
+ * what this threw before 0.61.0, so existing handlers still match. Blocked
2160
+ * requests are not charged.
2161
+ *
2162
+ * @example
2163
+ * ```ts
2164
+ * try {
2165
+ * await client.web.scrape({ url: "https://example.com" });
2166
+ * } catch (err) {
2167
+ * if (err instanceof BlockedError) {
2168
+ * console.log(err.blockKind, err.vendor, err.captcha?.params);
2169
+ * }
2170
+ * }
2171
+ * ```
2172
+ */
2173
+ declare class BlockedError extends ValidationError {
2174
+ /** The wall's class; undefined on older responses */
2175
+ readonly blockKind: BlockKind | undefined;
2176
+ /** The protection vendor that served it, e.g. "cloudflare", "datadome", "aws_waf" */
2177
+ readonly vendor: string | undefined;
2178
+ /** The CAPTCHA gating the page when blockKind is "captcha" */
2179
+ readonly captcha: BlockingCaptcha | undefined;
2180
+ /** The scrape result the API returned with the block */
2181
+ readonly data: Record<string, unknown> | undefined;
2182
+ constructor(message?: string, details?: {
2183
+ blockKind?: BlockKind | null;
2184
+ vendor?: string | null;
2185
+ captcha?: BlockingCaptcha | null;
2186
+ data?: Record<string, unknown> | null;
2187
+ });
2188
+ }
2144
2189
  /**
2145
2190
  * Raised when an internal server error occurs.
2146
2191
  */
@@ -3175,4 +3220,4 @@ declare class TwitterClient {
3175
3220
  removeWebhookFromMonitor(webhookId: string, body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
3176
3221
  }
3177
3222
 
3178
- export { type PlaceTrends as $, AuthenticationError as A, BaseClient as B, ConflictError as C, type User as D, type UserAbout as E, type UserIds as F, GeoClient as G, type Hashtag as H, InsufficientCreditsError as I, type List as J, type CommunityBanner as K, ListsClient as L, type Media as M, NotFoundError as N, type CommunityRule as O, PermissionDeniedError as P, type QueryType as Q, type ResolvedConfig as R, type ScrapeBadgerConfig as S, TwitterClient as T, UsersClient as U, ValidationError as V, WebSocketStreamError as W, type Community as X, type CommunityMember as Y, type Trend as Z, type Location as _, ScrapeBadgerError as a, type Place as a0, type Article as a1, type CommunityNote as a2, type Space as a3, type Broadcast as a4, type ApiResponse as a5, type ListResponse as a6, type MonitorStatus as a7, type StreamMonitor as a8, type StreamMonitorList as a9, type CreateMonitorParams as aa, type UpdateMonitorParams as ab, type StreamTweet as ac, type ConnectedEvent as ad, type PingEvent as ae, type TweetEvent as af, type ErrorEvent as ag, type StreamEvent as ah, type StreamEventType as ai, type DeliveryLog as aj, type DeliveryLogList as ak, type BillingLog as al, type BillingLogList as am, type ConnectOptions as an, type FilterRuleStatus as ao, type FilterRuleResponse as ap, type FilterRuleCreate as aq, type FilterRuleUpdate as ar, type FilterRulePricingTier as as, type FilterRuleListResponse as at, type FilterRuleValidateResponse as au, type FilterRuleDeliveryLog as av, type FilterRuleDeliveryLogListResponse as aw, type FilterRulePricingTiersResponse as ax, RateLimitError as b, ServerError as c, TimeoutError as d, AccountRestrictedError as e, IPNotAllowedError as f, type PaginatedResponse as g, type PaginationOptions as h, type IteratorOptions as i, collectAll as j, TweetsClient as k, CommunitiesClient as l, TrendsClient as m, type GeoSearchOptions as n, StreamClient as o, type StreamEmitter as p, SpacesClient as q, type TrendCategory as r, type CommunityTweetType as s, type PollOption as t, type Poll as u, verifyWebhookSignature as v, type Url as w, type UserMention as x, type TweetPlace as y, type Tweet as z };
3223
+ export { type CommunityMember as $, AuthenticationError as A, BaseClient as B, ConflictError as C, type UserMention as D, type TweetPlace as E, type Tweet as F, GeoClient as G, type Hashtag as H, InsufficientCreditsError as I, type User as J, type UserAbout as K, ListsClient as L, type Media as M, NotFoundError as N, type UserIds as O, PermissionDeniedError as P, type QueryType as Q, type ResolvedConfig as R, type ScrapeBadgerConfig as S, TwitterClient as T, UsersClient as U, ValidationError as V, WebSocketStreamError as W, type List as X, type CommunityBanner as Y, type CommunityRule as Z, type Community as _, ScrapeBadgerError as a, type Trend as a0, type Location as a1, type PlaceTrends as a2, type Place as a3, type Article as a4, type CommunityNote as a5, type Space as a6, type Broadcast as a7, type ApiResponse as a8, type ListResponse as a9, type FilterRulePricingTiersResponse as aA, type MonitorStatus as aa, type StreamMonitor as ab, type StreamMonitorList as ac, type CreateMonitorParams as ad, type UpdateMonitorParams as ae, type StreamTweet as af, type ConnectedEvent as ag, type PingEvent as ah, type TweetEvent as ai, type ErrorEvent as aj, type StreamEvent as ak, type StreamEventType as al, type DeliveryLog as am, type DeliveryLogList as an, type BillingLog as ao, type BillingLogList as ap, type ConnectOptions as aq, type FilterRuleStatus as ar, type FilterRuleResponse as as, type FilterRuleCreate as at, type FilterRuleUpdate as au, type FilterRulePricingTier as av, type FilterRuleListResponse as aw, type FilterRuleValidateResponse as ax, type FilterRuleDeliveryLog as ay, type FilterRuleDeliveryLogListResponse as az, RateLimitError as b, BlockedError as c, ServerError as d, TimeoutError as e, AccountRestrictedError as f, IPNotAllowedError as g, type BlockKind as h, type BlockingCaptcha as i, type PaginatedResponse as j, type PaginationOptions as k, type IteratorOptions as l, collectAll as m, TweetsClient as n, CommunitiesClient as o, TrendsClient as p, type GeoSearchOptions as q, StreamClient as r, type StreamEmitter as s, SpacesClient as t, type TrendCategory as u, verifyWebhookSignature as v, type CommunityTweetType as w, type PollOption as x, type Poll as y, type Url as z };
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-DBk60c2e.cjs';
2
- export { e as AccountRestrictedError, a5 as ApiResponse, a1 as Article, A as AuthenticationError, al as BillingLog, am as BillingLogList, a4 as Broadcast, l as CommunitiesClient, X as Community, K as CommunityBanner, Y as CommunityMember, a2 as CommunityNote, O as CommunityRule, s as CommunityTweetType, C as ConflictError, an as ConnectOptions, ad as ConnectedEvent, aa as CreateMonitorParams, aj as DeliveryLog, ak as DeliveryLogList, ag as ErrorEvent, aq as FilterRuleCreate, av as FilterRuleDeliveryLog, aw as FilterRuleDeliveryLogListResponse, at as FilterRuleListResponse, as as FilterRulePricingTier, ax as FilterRulePricingTiersResponse, ap as FilterRuleResponse, ao as FilterRuleStatus, ar as FilterRuleUpdate, au as FilterRuleValidateResponse, G as GeoClient, n as GeoSearchOptions, H as Hashtag, f as IPNotAllowedError, I as InsufficientCreditsError, i as IteratorOptions, J as List, a6 as ListResponse, L as ListsClient, _ as Location, M as Media, a7 as MonitorStatus, N as NotFoundError, g as PaginatedResponse, h as PaginationOptions, P as PermissionDeniedError, ae as PingEvent, a0 as Place, $ as PlaceTrends, u as Poll, t as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, c as ServerError, a3 as Space, q as SpacesClient, o as StreamClient, p as StreamEmitter, ah as StreamEvent, ai as StreamEventType, a8 as StreamMonitor, a9 as StreamMonitorList, ac as StreamTweet, d as TimeoutError, Z as Trend, r as TrendCategory, m as TrendsClient, z as Tweet, af as TweetEvent, y as TweetPlace, k as TweetsClient, ab as UpdateMonitorParams, w as Url, D as User, E as UserAbout, F as UserIds, x as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, j as collectAll, v as verifyWebhookSignature } from './index-DBk60c2e.cjs';
1
+ import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-MBQ1Ksjt.cjs';
2
+ export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-MBQ1Ksjt.cjs';
3
3
  import 'node:events';
4
4
 
5
5
  /**
@@ -43,7 +43,7 @@ interface ScrapeOptions {
43
43
  windowWidth?: number;
44
44
  /** Browser viewport height in pixels (240-4320) */
45
45
  windowHeight?: number;
46
- /** Record browser session as video (+3 credits) */
46
+ /** Record browser session as video (not billed on top; forces the browser engine) */
47
47
  video?: boolean;
48
48
  /** Attempt anti-bot bypass */
49
49
  antiBot?: boolean;
@@ -771,7 +771,7 @@ interface VintedSearchParams {
771
771
  * When set, each returned item gains a `seller_country_code` and the response
772
772
  * gains a top-level `seller_country` echo.
773
773
  *
774
- * Billing: a search is a flat 5 credits whatever filters you pass; seller
774
+ * Billing: a search is one flat price whatever filters you pass; seller
775
775
  * lookups are not billed on top.
776
776
  */
777
777
  seller_country?: string;
@@ -11396,8 +11396,6 @@ declare class BaiduClient {
11396
11396
  /**
11397
11397
  * Search baidu.com — the web SERP.
11398
11398
  *
11399
- * Costs 5 credits.
11400
- *
11401
11399
  * @param query - Search keywords, e.g. `"咖啡机"` or `"coffee machine"` (required).
11402
11400
  * @param options - Optional parameters (page, num, language, timeFrom, timeTo).
11403
11401
  * @returns Search response with organic results and Baidu's related searches.
@@ -11408,8 +11406,6 @@ declare class BaiduClient {
11408
11406
  /**
11409
11407
  * Search the Baidu news vertical.
11410
11408
  *
11411
- * Costs 5 credits.
11412
- *
11413
11409
  * @param query - Search keywords, e.g. `"人工智能"` (required).
11414
11410
  * @param options - Optional parameters (page, sort).
11415
11411
  * @returns News response with articles carrying publisher, date and real URLs.
@@ -11420,8 +11416,6 @@ declare class BaiduClient {
11420
11416
  /**
11421
11417
  * Search Baidu images.
11422
11418
  *
11423
- * Costs 5 credits.
11424
- *
11425
11419
  * @param query - Search keywords, e.g. `"猫"` (required).
11426
11420
  * @param options - Optional parameters (page). Baidu serves 30 images per page.
11427
11421
  * @returns Images response with full-size image URLs, Baidu-hosted thumbnail
@@ -11433,8 +11427,6 @@ declare class BaiduClient {
11433
11427
  /**
11434
11428
  * Baidu search-box suggestions — the cheapest call in this API.
11435
11429
  *
11436
- * Costs 1 credit.
11437
- *
11438
11430
  * @param query - Partial search term, e.g. `"咖啡"` or `"coff"` (required).
11439
11431
  * @returns Autocomplete response with Baidu's suggestions for the term.
11440
11432
  * @throws AuthenticationError - If the API key is invalid.
@@ -17244,8 +17236,6 @@ declare class SearchClient {
17244
17236
  /**
17245
17237
  * Search LoopNet for for-lease / for-sale / auction commercial listings.
17246
17238
  *
17247
- * Costs 10 credits.
17248
- *
17249
17239
  * @param params - Search parameters including location, filters, and pagination.
17250
17240
  * @returns Search results with listing cards and pagination metadata.
17251
17241
  * @throws AuthenticationError - If the API key is invalid.
@@ -17282,8 +17272,6 @@ declare class ListingsClient {
17282
17272
  /**
17283
17273
  * Get a single LoopNet listing's full detail by listing id.
17284
17274
  *
17285
- * Costs 12 credits.
17286
- *
17287
17275
  * @param listingId - The LoopNet listing id.
17288
17276
  * @param params - Optional market selector.
17289
17277
  * @returns Listing detail response.
@@ -17320,8 +17308,6 @@ declare class BrokersClient {
17320
17308
  /**
17321
17309
  * Get a LoopNet broker's profile and their active listings.
17322
17310
  *
17323
- * Costs 8 credits.
17324
- *
17325
17311
  * @param slug - The broker's profile URL slug.
17326
17312
  * @param brokerId - The LoopNet broker id.
17327
17313
  * @param params - Optional market selector.
@@ -17617,8 +17603,6 @@ declare class DepopClient {
17617
17603
  /**
17618
17604
  * Search Depop for products.
17619
17605
  *
17620
- * Costs 10 credits.
17621
- *
17622
17606
  * @param query - Search keywords (required).
17623
17607
  * @param options - Optional parameters (market, perPage, page, price/brand/
17624
17608
  * size/colour/condition/gender filters, sort).
@@ -17630,8 +17614,6 @@ declare class DepopClient {
17630
17614
  /**
17631
17615
  * Get a single Depop product's full detail by slug.
17632
17616
  *
17633
- * Costs 10 credits.
17634
- *
17635
17617
  * @param slug - The Depop product slug.
17636
17618
  * @param options - Optional parameters (market).
17637
17619
  * @returns Full product detail.
@@ -17641,8 +17623,6 @@ declare class DepopClient {
17641
17623
  /**
17642
17624
  * Get a Depop shop / seller profile by username.
17643
17625
  *
17644
- * Costs 10 credits.
17645
- *
17646
17626
  * @param username - The Depop seller username.
17647
17627
  * @param options - Optional parameters (market).
17648
17628
  * @returns Shop profile.
@@ -17652,8 +17632,6 @@ declare class DepopClient {
17652
17632
  /**
17653
17633
  * Get a Depop seller's products.
17654
17634
  *
17655
- * Costs 10 credits.
17656
- *
17657
17635
  * @param username - The Depop seller username.
17658
17636
  * @param options - Optional parameters (market, perPage, page).
17659
17637
  * @returns User products response with product cards and pagination meta.
@@ -18300,8 +18278,6 @@ declare class WallapopClient {
18300
18278
  * Needs a query, a `categoryId`, or both — unless `nextPage` is given, in
18301
18279
  * which case every other parameter is ignored.
18302
18280
  *
18303
- * Costs 5 credits.
18304
- *
18305
18281
  * @param query - Search text, e.g. "iphone 14" (optional with `categoryId` or `nextPage`).
18306
18282
  * @param options - Optional parameters (market, location/radius, category,
18307
18283
  * price, condition, brand/model/colour, cars filters, sort, cursor).
@@ -18313,8 +18289,6 @@ declare class WallapopClient {
18313
18289
  /**
18314
18290
  * Get a single listing's full detail.
18315
18291
  *
18316
- * Costs 5 credits.
18317
- *
18318
18292
  * @param itemId - Listing id (e.g. "nzxeknm5x562") or listing slug.
18319
18293
  * @param options - Optional parameters (market).
18320
18294
  * @returns Full listing detail with attributes, counters and location.
@@ -18325,8 +18299,6 @@ declare class WallapopClient {
18325
18299
  * Get a seller's profile with ratings, sales counters, response rate and
18326
18300
  * verifications.
18327
18301
  *
18328
- * Costs 5 credits.
18329
- *
18330
18302
  * @param userId - User id (e.g. "dqjwdd53wwzo") or profile slug (e.g. "alexc-25115753").
18331
18303
  * @param options - Optional parameters (market).
18332
18304
  * @returns User profile.
@@ -18336,8 +18308,6 @@ declare class WallapopClient {
18336
18308
  /**
18337
18309
  * Get a seller's live listings (40 per page).
18338
18310
  *
18339
- * Costs 5 credits.
18340
- *
18341
18311
  * @param userId - User id or profile slug.
18342
18312
  * @param options - Optional parameters (market, nextPage).
18343
18313
  * @returns The seller's listings and the next-page cursor.
@@ -18347,8 +18317,6 @@ declare class WallapopClient {
18347
18317
  /**
18348
18318
  * Get the reviews a seller received, newest first (40 per page).
18349
18319
  *
18350
- * Costs 5 credits.
18351
- *
18352
18320
  * @param userId - User id or profile slug.
18353
18321
  * @param options - Optional parameters (market, nextPage).
18354
18322
  * @returns Reviews and the next-page cursor.
@@ -18358,8 +18326,6 @@ declare class WallapopClient {
18358
18326
  /**
18359
18327
  * Get Wallapop's search-box suggestions for a partial query.
18360
18328
  *
18361
- * Costs 1 credit.
18362
- *
18363
18329
  * @param query - Partial search text, e.g. "bici".
18364
18330
  * @param options - Optional parameters (market).
18365
18331
  * @returns Autocomplete suggestions.
@@ -18368,8 +18334,6 @@ declare class WallapopClient {
18368
18334
  /**
18369
18335
  * Get the full category tree; ids are usable as the search `categoryId`.
18370
18336
  *
18371
- * Costs 1 credit.
18372
- *
18373
18337
  * @param options - Optional parameters (market — localises names).
18374
18338
  * @returns Category tree.
18375
18339
  */
@@ -18378,8 +18342,6 @@ declare class WallapopClient {
18378
18342
  * Get the search filters Wallapop offers for a category and/or query,
18379
18343
  * with their option ids.
18380
18344
  *
18381
- * Costs 2 credits.
18382
- *
18383
18345
  * @param options - Optional parameters (categoryId, query, market).
18384
18346
  * @returns Available filters.
18385
18347
  */
@@ -18388,8 +18350,6 @@ declare class WallapopClient {
18388
18350
  * Get a filter's long option list (brands, models) that Wallapop serves
18389
18351
  * separately — filters flagged `options_endpoint` in `listFilters`.
18390
18352
  *
18391
- * Costs 2 credits.
18392
- *
18393
18353
  * @param filterId - Filter id, e.g. "brand".
18394
18354
  * @param options - Optional parameters (categoryId, query, market).
18395
18355
  * @returns The filter's options.
@@ -19045,7 +19005,7 @@ declare class AskClient$1 {
19045
19005
  /**
19046
19006
  * Ask ChatGPT a question and get the answer with its sources.
19047
19007
  *
19048
- * Costs 20 credits. Typical latency is 20-25s ungrounded, 30-70s with web search.
19008
+ * Typical latency is 20-25s ungrounded, 30-70s with web search.
19049
19009
  *
19050
19010
  * @param params - Ask parameters.
19051
19011
  * @param params.prompt - The prompt to send (max 4096 characters).
@@ -19101,8 +19061,6 @@ declare class BrandClient$1 {
19101
19061
  /**
19102
19062
  * Analyse how a brand shows up in ChatGPT's answer to a prompt.
19103
19063
  *
19104
- * Costs 25 credits.
19105
- *
19106
19064
  * @param params - Brand-visibility parameters.
19107
19065
  * @param params.prompt - The prompt to send (max 4096 characters).
19108
19066
  * @param params.brand - The brand name to look for in the answer.
@@ -19157,8 +19115,6 @@ declare class ReferenceClient {
19157
19115
  /**
19158
19116
  * Get the models chatgpt.com currently offers.
19159
19117
  *
19160
- * Costs 1 credit.
19161
- *
19162
19118
  * @param params - Optional parameters.
19163
19119
  * @param params.country - ISO-3166 alpha-2 egress country (default: "US").
19164
19120
  * @returns The available models.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-DBk60c2e.js';
2
- export { e as AccountRestrictedError, a5 as ApiResponse, a1 as Article, A as AuthenticationError, al as BillingLog, am as BillingLogList, a4 as Broadcast, l as CommunitiesClient, X as Community, K as CommunityBanner, Y as CommunityMember, a2 as CommunityNote, O as CommunityRule, s as CommunityTweetType, C as ConflictError, an as ConnectOptions, ad as ConnectedEvent, aa as CreateMonitorParams, aj as DeliveryLog, ak as DeliveryLogList, ag as ErrorEvent, aq as FilterRuleCreate, av as FilterRuleDeliveryLog, aw as FilterRuleDeliveryLogListResponse, at as FilterRuleListResponse, as as FilterRulePricingTier, ax as FilterRulePricingTiersResponse, ap as FilterRuleResponse, ao as FilterRuleStatus, ar as FilterRuleUpdate, au as FilterRuleValidateResponse, G as GeoClient, n as GeoSearchOptions, H as Hashtag, f as IPNotAllowedError, I as InsufficientCreditsError, i as IteratorOptions, J as List, a6 as ListResponse, L as ListsClient, _ as Location, M as Media, a7 as MonitorStatus, N as NotFoundError, g as PaginatedResponse, h as PaginationOptions, P as PermissionDeniedError, ae as PingEvent, a0 as Place, $ as PlaceTrends, u as Poll, t as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, c as ServerError, a3 as Space, q as SpacesClient, o as StreamClient, p as StreamEmitter, ah as StreamEvent, ai as StreamEventType, a8 as StreamMonitor, a9 as StreamMonitorList, ac as StreamTweet, d as TimeoutError, Z as Trend, r as TrendCategory, m as TrendsClient, z as Tweet, af as TweetEvent, y as TweetPlace, k as TweetsClient, ab as UpdateMonitorParams, w as Url, D as User, E as UserAbout, F as UserIds, x as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, j as collectAll, v as verifyWebhookSignature } from './index-DBk60c2e.js';
1
+ import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-MBQ1Ksjt.js';
2
+ export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-MBQ1Ksjt.js';
3
3
  import 'node:events';
4
4
 
5
5
  /**
@@ -43,7 +43,7 @@ interface ScrapeOptions {
43
43
  windowWidth?: number;
44
44
  /** Browser viewport height in pixels (240-4320) */
45
45
  windowHeight?: number;
46
- /** Record browser session as video (+3 credits) */
46
+ /** Record browser session as video (not billed on top; forces the browser engine) */
47
47
  video?: boolean;
48
48
  /** Attempt anti-bot bypass */
49
49
  antiBot?: boolean;
@@ -771,7 +771,7 @@ interface VintedSearchParams {
771
771
  * When set, each returned item gains a `seller_country_code` and the response
772
772
  * gains a top-level `seller_country` echo.
773
773
  *
774
- * Billing: a search is a flat 5 credits whatever filters you pass; seller
774
+ * Billing: a search is one flat price whatever filters you pass; seller
775
775
  * lookups are not billed on top.
776
776
  */
777
777
  seller_country?: string;
@@ -11396,8 +11396,6 @@ declare class BaiduClient {
11396
11396
  /**
11397
11397
  * Search baidu.com — the web SERP.
11398
11398
  *
11399
- * Costs 5 credits.
11400
- *
11401
11399
  * @param query - Search keywords, e.g. `"咖啡机"` or `"coffee machine"` (required).
11402
11400
  * @param options - Optional parameters (page, num, language, timeFrom, timeTo).
11403
11401
  * @returns Search response with organic results and Baidu's related searches.
@@ -11408,8 +11406,6 @@ declare class BaiduClient {
11408
11406
  /**
11409
11407
  * Search the Baidu news vertical.
11410
11408
  *
11411
- * Costs 5 credits.
11412
- *
11413
11409
  * @param query - Search keywords, e.g. `"人工智能"` (required).
11414
11410
  * @param options - Optional parameters (page, sort).
11415
11411
  * @returns News response with articles carrying publisher, date and real URLs.
@@ -11420,8 +11416,6 @@ declare class BaiduClient {
11420
11416
  /**
11421
11417
  * Search Baidu images.
11422
11418
  *
11423
- * Costs 5 credits.
11424
- *
11425
11419
  * @param query - Search keywords, e.g. `"猫"` (required).
11426
11420
  * @param options - Optional parameters (page). Baidu serves 30 images per page.
11427
11421
  * @returns Images response with full-size image URLs, Baidu-hosted thumbnail
@@ -11433,8 +11427,6 @@ declare class BaiduClient {
11433
11427
  /**
11434
11428
  * Baidu search-box suggestions — the cheapest call in this API.
11435
11429
  *
11436
- * Costs 1 credit.
11437
- *
11438
11430
  * @param query - Partial search term, e.g. `"咖啡"` or `"coff"` (required).
11439
11431
  * @returns Autocomplete response with Baidu's suggestions for the term.
11440
11432
  * @throws AuthenticationError - If the API key is invalid.
@@ -17244,8 +17236,6 @@ declare class SearchClient {
17244
17236
  /**
17245
17237
  * Search LoopNet for for-lease / for-sale / auction commercial listings.
17246
17238
  *
17247
- * Costs 10 credits.
17248
- *
17249
17239
  * @param params - Search parameters including location, filters, and pagination.
17250
17240
  * @returns Search results with listing cards and pagination metadata.
17251
17241
  * @throws AuthenticationError - If the API key is invalid.
@@ -17282,8 +17272,6 @@ declare class ListingsClient {
17282
17272
  /**
17283
17273
  * Get a single LoopNet listing's full detail by listing id.
17284
17274
  *
17285
- * Costs 12 credits.
17286
- *
17287
17275
  * @param listingId - The LoopNet listing id.
17288
17276
  * @param params - Optional market selector.
17289
17277
  * @returns Listing detail response.
@@ -17320,8 +17308,6 @@ declare class BrokersClient {
17320
17308
  /**
17321
17309
  * Get a LoopNet broker's profile and their active listings.
17322
17310
  *
17323
- * Costs 8 credits.
17324
- *
17325
17311
  * @param slug - The broker's profile URL slug.
17326
17312
  * @param brokerId - The LoopNet broker id.
17327
17313
  * @param params - Optional market selector.
@@ -17617,8 +17603,6 @@ declare class DepopClient {
17617
17603
  /**
17618
17604
  * Search Depop for products.
17619
17605
  *
17620
- * Costs 10 credits.
17621
- *
17622
17606
  * @param query - Search keywords (required).
17623
17607
  * @param options - Optional parameters (market, perPage, page, price/brand/
17624
17608
  * size/colour/condition/gender filters, sort).
@@ -17630,8 +17614,6 @@ declare class DepopClient {
17630
17614
  /**
17631
17615
  * Get a single Depop product's full detail by slug.
17632
17616
  *
17633
- * Costs 10 credits.
17634
- *
17635
17617
  * @param slug - The Depop product slug.
17636
17618
  * @param options - Optional parameters (market).
17637
17619
  * @returns Full product detail.
@@ -17641,8 +17623,6 @@ declare class DepopClient {
17641
17623
  /**
17642
17624
  * Get a Depop shop / seller profile by username.
17643
17625
  *
17644
- * Costs 10 credits.
17645
- *
17646
17626
  * @param username - The Depop seller username.
17647
17627
  * @param options - Optional parameters (market).
17648
17628
  * @returns Shop profile.
@@ -17652,8 +17632,6 @@ declare class DepopClient {
17652
17632
  /**
17653
17633
  * Get a Depop seller's products.
17654
17634
  *
17655
- * Costs 10 credits.
17656
- *
17657
17635
  * @param username - The Depop seller username.
17658
17636
  * @param options - Optional parameters (market, perPage, page).
17659
17637
  * @returns User products response with product cards and pagination meta.
@@ -18300,8 +18278,6 @@ declare class WallapopClient {
18300
18278
  * Needs a query, a `categoryId`, or both — unless `nextPage` is given, in
18301
18279
  * which case every other parameter is ignored.
18302
18280
  *
18303
- * Costs 5 credits.
18304
- *
18305
18281
  * @param query - Search text, e.g. "iphone 14" (optional with `categoryId` or `nextPage`).
18306
18282
  * @param options - Optional parameters (market, location/radius, category,
18307
18283
  * price, condition, brand/model/colour, cars filters, sort, cursor).
@@ -18313,8 +18289,6 @@ declare class WallapopClient {
18313
18289
  /**
18314
18290
  * Get a single listing's full detail.
18315
18291
  *
18316
- * Costs 5 credits.
18317
- *
18318
18292
  * @param itemId - Listing id (e.g. "nzxeknm5x562") or listing slug.
18319
18293
  * @param options - Optional parameters (market).
18320
18294
  * @returns Full listing detail with attributes, counters and location.
@@ -18325,8 +18299,6 @@ declare class WallapopClient {
18325
18299
  * Get a seller's profile with ratings, sales counters, response rate and
18326
18300
  * verifications.
18327
18301
  *
18328
- * Costs 5 credits.
18329
- *
18330
18302
  * @param userId - User id (e.g. "dqjwdd53wwzo") or profile slug (e.g. "alexc-25115753").
18331
18303
  * @param options - Optional parameters (market).
18332
18304
  * @returns User profile.
@@ -18336,8 +18308,6 @@ declare class WallapopClient {
18336
18308
  /**
18337
18309
  * Get a seller's live listings (40 per page).
18338
18310
  *
18339
- * Costs 5 credits.
18340
- *
18341
18311
  * @param userId - User id or profile slug.
18342
18312
  * @param options - Optional parameters (market, nextPage).
18343
18313
  * @returns The seller's listings and the next-page cursor.
@@ -18347,8 +18317,6 @@ declare class WallapopClient {
18347
18317
  /**
18348
18318
  * Get the reviews a seller received, newest first (40 per page).
18349
18319
  *
18350
- * Costs 5 credits.
18351
- *
18352
18320
  * @param userId - User id or profile slug.
18353
18321
  * @param options - Optional parameters (market, nextPage).
18354
18322
  * @returns Reviews and the next-page cursor.
@@ -18358,8 +18326,6 @@ declare class WallapopClient {
18358
18326
  /**
18359
18327
  * Get Wallapop's search-box suggestions for a partial query.
18360
18328
  *
18361
- * Costs 1 credit.
18362
- *
18363
18329
  * @param query - Partial search text, e.g. "bici".
18364
18330
  * @param options - Optional parameters (market).
18365
18331
  * @returns Autocomplete suggestions.
@@ -18368,8 +18334,6 @@ declare class WallapopClient {
18368
18334
  /**
18369
18335
  * Get the full category tree; ids are usable as the search `categoryId`.
18370
18336
  *
18371
- * Costs 1 credit.
18372
- *
18373
18337
  * @param options - Optional parameters (market — localises names).
18374
18338
  * @returns Category tree.
18375
18339
  */
@@ -18378,8 +18342,6 @@ declare class WallapopClient {
18378
18342
  * Get the search filters Wallapop offers for a category and/or query,
18379
18343
  * with their option ids.
18380
18344
  *
18381
- * Costs 2 credits.
18382
- *
18383
18345
  * @param options - Optional parameters (categoryId, query, market).
18384
18346
  * @returns Available filters.
18385
18347
  */
@@ -18388,8 +18350,6 @@ declare class WallapopClient {
18388
18350
  * Get a filter's long option list (brands, models) that Wallapop serves
18389
18351
  * separately — filters flagged `options_endpoint` in `listFilters`.
18390
18352
  *
18391
- * Costs 2 credits.
18392
- *
18393
18353
  * @param filterId - Filter id, e.g. "brand".
18394
18354
  * @param options - Optional parameters (categoryId, query, market).
18395
18355
  * @returns The filter's options.
@@ -19045,7 +19005,7 @@ declare class AskClient$1 {
19045
19005
  /**
19046
19006
  * Ask ChatGPT a question and get the answer with its sources.
19047
19007
  *
19048
- * Costs 20 credits. Typical latency is 20-25s ungrounded, 30-70s with web search.
19008
+ * Typical latency is 20-25s ungrounded, 30-70s with web search.
19049
19009
  *
19050
19010
  * @param params - Ask parameters.
19051
19011
  * @param params.prompt - The prompt to send (max 4096 characters).
@@ -19101,8 +19061,6 @@ declare class BrandClient$1 {
19101
19061
  /**
19102
19062
  * Analyse how a brand shows up in ChatGPT's answer to a prompt.
19103
19063
  *
19104
- * Costs 25 credits.
19105
- *
19106
19064
  * @param params - Brand-visibility parameters.
19107
19065
  * @param params.prompt - The prompt to send (max 4096 characters).
19108
19066
  * @param params.brand - The brand name to look for in the answer.
@@ -19157,8 +19115,6 @@ declare class ReferenceClient {
19157
19115
  /**
19158
19116
  * Get the models chatgpt.com currently offers.
19159
19117
  *
19160
- * Costs 1 credit.
19161
- *
19162
19118
  * @param params - Optional parameters.
19163
19119
  * @param params.country - ISO-3166 alpha-2 egress country (default: "US").
19164
19120
  * @returns The available models.