@getanyapi/sdk 0.146.11 → 0.147.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.
package/dist/index.d.cts CHANGED
@@ -7761,7 +7761,7 @@ declare class BookingNamespace {
7761
7761
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
7762
7762
  *
7763
7763
  * @example
7764
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-03", checkOut: "2026-12-05", limit: 3 });
7764
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-04", checkOut: "2026-12-06", limit: 3 });
7765
7765
  */
7766
7766
  search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
7767
7767
  }
@@ -25441,7 +25441,7 @@ declare class GoogleNamespace {
25441
25441
  *
25442
25442
  * Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
25443
25443
  *
25444
- * Price: $0.0015 per request.
25444
+ * Price: $0.0018 per request.
25445
25445
  *
25446
25446
  * @example
25447
25447
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -25587,7 +25587,7 @@ declare class GoogleNamespace {
25587
25587
  *
25588
25588
  * Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
25589
25589
  *
25590
- * Price: $0.024 per request.
25590
+ * Price: $0.0018 per request.
25591
25591
  *
25592
25592
  * @example
25593
25593
  * const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
@@ -26518,7 +26518,7 @@ declare class GoogleHotelsNamespace {
26518
26518
  * Price: $0.0015 per request.
26519
26519
  *
26520
26520
  * @example
26521
- * const res = await client.googleHotels.details({ checkIn: "2026-12-03", checkOut: "2026-12-05", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
26521
+ * const res = await client.googleHotels.details({ checkIn: "2026-12-04", checkOut: "2026-12-06", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
26522
26522
  */
26523
26523
  details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
26524
26524
  /**
@@ -26529,7 +26529,7 @@ declare class GoogleHotelsNamespace {
26529
26529
  * Price: $0.0015 per request.
26530
26530
  *
26531
26531
  * @example
26532
- * const res = await client.googleHotels.search({ checkIn: "2026-12-03", checkOut: "2026-12-05", country: "us", query: "hotels near times square new york" });
26532
+ * const res = await client.googleHotels.search({ checkIn: "2026-12-04", checkOut: "2026-12-06", country: "us", query: "hotels near times square new york" });
26533
26533
  */
26534
26534
  search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
26535
26535
  }
@@ -33441,6 +33441,10 @@ interface LinkedinAdsSearchInput {
33441
33441
  * Comma-separated two-letter country codes (e.g. "US,CA,MX").
33442
33442
  */
33443
33443
  countries?: string;
33444
+ /**
33445
+ * Opaque pagination cursor from a previous response's `nextCursor`; omit for the first page.
33446
+ */
33447
+ cursor?: string;
33444
33448
  /**
33445
33449
  * Search end date in YYYY-MM-DD format. Today or a later date is moved back to yesterday in UTC when your range overlaps LinkedIn's accepted dates. When you send startDate without endDate, the search ends yesterday in UTC, the latest day LinkedIn accepts.
33446
33450
  */
@@ -33454,7 +33458,7 @@ interface LinkedinAdsSearchInput {
33454
33458
  */
33455
33459
  keyword?: string;
33456
33460
  /**
33457
- * Opaque pagination token from a previous response's nextCursor.
33461
+ * Legacy pagination alias. Prefer `cursor`; omit both fields for the first page.
33458
33462
  */
33459
33463
  paginationToken?: string;
33460
33464
  /**
@@ -33510,7 +33514,7 @@ interface LinkedinAdsSearchData {
33510
33514
  * Populated whenever the provider has data for the entity.
33511
33515
  */
33512
33516
  ads: LinkedinAdsSearchAd[];
33513
- nextCursor: string;
33517
+ nextCursor: string | null;
33514
33518
  totalAds: number;
33515
33519
  }
33516
33520
  /**
@@ -39338,6 +39342,13 @@ declare class LinkedinNamespace {
39338
39342
  * const res = await client.linkedin.adsSearch({ company: "microsoft" });
39339
39343
  */
39340
39344
  adsSearch(input: LinkedinAdsSearchInput, options?: RequestOptions): Promise<RunResult<LinkedinAdsSearchData>>;
39345
+ /**
39346
+ * Iterate every result of LinkedIn Ad Search across pages.
39347
+ *
39348
+ * Yields items directly; call `.pages()` on the return value to walk whole
39349
+ * result pages instead (each carries its own costUsd).
39350
+ */
39351
+ iterAdsSearch(input: LinkedinAdsSearchInput, options?: RequestOptions): Paginator<LinkedinAdsSearchAd, RunResult<LinkedinAdsSearchData>>;
39341
39352
  /**
39342
39353
  * LinkedIn Article
39343
39354
  *
package/dist/index.d.ts CHANGED
@@ -7761,7 +7761,7 @@ declare class BookingNamespace {
7761
7761
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
7762
7762
  *
7763
7763
  * @example
7764
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-03", checkOut: "2026-12-05", limit: 3 });
7764
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-04", checkOut: "2026-12-06", limit: 3 });
7765
7765
  */
7766
7766
  search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
7767
7767
  }
@@ -25441,7 +25441,7 @@ declare class GoogleNamespace {
25441
25441
  *
25442
25442
  * Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
25443
25443
  *
25444
- * Price: $0.0015 per request.
25444
+ * Price: $0.0018 per request.
25445
25445
  *
25446
25446
  * @example
25447
25447
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -25587,7 +25587,7 @@ declare class GoogleNamespace {
25587
25587
  *
25588
25588
  * Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
25589
25589
  *
25590
- * Price: $0.024 per request.
25590
+ * Price: $0.0018 per request.
25591
25591
  *
25592
25592
  * @example
25593
25593
  * const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
@@ -26518,7 +26518,7 @@ declare class GoogleHotelsNamespace {
26518
26518
  * Price: $0.0015 per request.
26519
26519
  *
26520
26520
  * @example
26521
- * const res = await client.googleHotels.details({ checkIn: "2026-12-03", checkOut: "2026-12-05", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
26521
+ * const res = await client.googleHotels.details({ checkIn: "2026-12-04", checkOut: "2026-12-06", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
26522
26522
  */
26523
26523
  details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
26524
26524
  /**
@@ -26529,7 +26529,7 @@ declare class GoogleHotelsNamespace {
26529
26529
  * Price: $0.0015 per request.
26530
26530
  *
26531
26531
  * @example
26532
- * const res = await client.googleHotels.search({ checkIn: "2026-12-03", checkOut: "2026-12-05", country: "us", query: "hotels near times square new york" });
26532
+ * const res = await client.googleHotels.search({ checkIn: "2026-12-04", checkOut: "2026-12-06", country: "us", query: "hotels near times square new york" });
26533
26533
  */
26534
26534
  search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
26535
26535
  }
@@ -33441,6 +33441,10 @@ interface LinkedinAdsSearchInput {
33441
33441
  * Comma-separated two-letter country codes (e.g. "US,CA,MX").
33442
33442
  */
33443
33443
  countries?: string;
33444
+ /**
33445
+ * Opaque pagination cursor from a previous response's `nextCursor`; omit for the first page.
33446
+ */
33447
+ cursor?: string;
33444
33448
  /**
33445
33449
  * Search end date in YYYY-MM-DD format. Today or a later date is moved back to yesterday in UTC when your range overlaps LinkedIn's accepted dates. When you send startDate without endDate, the search ends yesterday in UTC, the latest day LinkedIn accepts.
33446
33450
  */
@@ -33454,7 +33458,7 @@ interface LinkedinAdsSearchInput {
33454
33458
  */
33455
33459
  keyword?: string;
33456
33460
  /**
33457
- * Opaque pagination token from a previous response's nextCursor.
33461
+ * Legacy pagination alias. Prefer `cursor`; omit both fields for the first page.
33458
33462
  */
33459
33463
  paginationToken?: string;
33460
33464
  /**
@@ -33510,7 +33514,7 @@ interface LinkedinAdsSearchData {
33510
33514
  * Populated whenever the provider has data for the entity.
33511
33515
  */
33512
33516
  ads: LinkedinAdsSearchAd[];
33513
- nextCursor: string;
33517
+ nextCursor: string | null;
33514
33518
  totalAds: number;
33515
33519
  }
33516
33520
  /**
@@ -39338,6 +39342,13 @@ declare class LinkedinNamespace {
39338
39342
  * const res = await client.linkedin.adsSearch({ company: "microsoft" });
39339
39343
  */
39340
39344
  adsSearch(input: LinkedinAdsSearchInput, options?: RequestOptions): Promise<RunResult<LinkedinAdsSearchData>>;
39345
+ /**
39346
+ * Iterate every result of LinkedIn Ad Search across pages.
39347
+ *
39348
+ * Yields items directly; call `.pages()` on the return value to walk whole
39349
+ * result pages instead (each carries its own costUsd).
39350
+ */
39351
+ iterAdsSearch(input: LinkedinAdsSearchInput, options?: RequestOptions): Paginator<LinkedinAdsSearchAd, RunResult<LinkedinAdsSearchData>>;
39341
39352
  /**
39342
39353
  * LinkedIn Article
39343
39354
  *
package/dist/index.js CHANGED
@@ -1671,7 +1671,7 @@ var BookingNamespace = class {
1671
1671
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
1672
1672
  *
1673
1673
  * @example
1674
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-03", checkOut: "2026-12-05", limit: 3 });
1674
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-04", checkOut: "2026-12-06", limit: 3 });
1675
1675
  */
1676
1676
  search(input, options) {
1677
1677
  return this._core.run("booking.search", input, options);
@@ -3491,7 +3491,7 @@ var GoogleNamespace = class {
3491
3491
  *
3492
3492
  * Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
3493
3493
  *
3494
- * Price: $0.0015 per request.
3494
+ * Price: $0.0018 per request.
3495
3495
  *
3496
3496
  * @example
3497
3497
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -3679,7 +3679,7 @@ var GoogleNamespace = class {
3679
3679
  *
3680
3680
  * Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
3681
3681
  *
3682
- * Price: $0.024 per request.
3682
+ * Price: $0.0018 per request.
3683
3683
  *
3684
3684
  * @example
3685
3685
  * const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
@@ -3826,7 +3826,7 @@ var GoogleHotelsNamespace = class {
3826
3826
  * Price: $0.0015 per request.
3827
3827
  *
3828
3828
  * @example
3829
- * const res = await client.googleHotels.details({ checkIn: "2026-12-03", checkOut: "2026-12-05", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
3829
+ * const res = await client.googleHotels.details({ checkIn: "2026-12-04", checkOut: "2026-12-06", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
3830
3830
  */
3831
3831
  details(input, options) {
3832
3832
  return this._core.run("google_hotels.details", input, options);
@@ -3839,7 +3839,7 @@ var GoogleHotelsNamespace = class {
3839
3839
  * Price: $0.0015 per request.
3840
3840
  *
3841
3841
  * @example
3842
- * const res = await client.googleHotels.search({ checkIn: "2026-12-03", checkOut: "2026-12-05", country: "us", query: "hotels near times square new york" });
3842
+ * const res = await client.googleHotels.search({ checkIn: "2026-12-04", checkOut: "2026-12-06", country: "us", query: "hotels near times square new york" });
3843
3843
  */
3844
3844
  search(input, options) {
3845
3845
  return this._core.run("google_hotels.search", input, options);
@@ -4788,6 +4788,22 @@ var LinkedinNamespace = class {
4788
4788
  adsSearch(input, options) {
4789
4789
  return this._core.run("linkedin.ads_search", input, options);
4790
4790
  }
4791
+ /**
4792
+ * Iterate every result of LinkedIn Ad Search across pages.
4793
+ *
4794
+ * Yields items directly; call `.pages()` on the return value to walk whole
4795
+ * result pages instead (each carries its own costUsd).
4796
+ */
4797
+ iterAdsSearch(input, options) {
4798
+ return paginate(
4799
+ this._core,
4800
+ "linkedin.ads_search",
4801
+ input,
4802
+ "ads",
4803
+ false,
4804
+ options
4805
+ );
4806
+ }
4791
4807
  /**
4792
4808
  * LinkedIn Article
4793
4809
  *