@getanyapi/sdk 0.117.1 → 0.118.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.d.cts CHANGED
@@ -5780,7 +5780,7 @@ declare class BookingNamespace {
5780
5780
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
5781
5781
  *
5782
5782
  * @example
5783
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-15", checkOut: "2026-11-17", limit: 3 });
5783
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-16", checkOut: "2026-11-18", limit: 3 });
5784
5784
  */
5785
5785
  search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
5786
5786
  }
@@ -18434,9 +18434,13 @@ interface FacebookSearchPostsInput {
18434
18434
  */
18435
18435
  limit?: number;
18436
18436
  /**
18437
- * Optional location to narrow results; include both city and country for best matches (e.g. 'Paris, France').
18437
+ * Optional place name; include both city and country for best matches (e.g. 'Paris, France'). Uses Facebook's place filter, which favors posts tagged at that place rather than every post by people who live there, and can still return some posts from elsewhere.
18438
18438
  */
18439
18439
  location?: string;
18440
+ /**
18441
+ * Optional Facebook place ID, used instead of location when you already have it (e.g. '110774245616525' for Paris, France). Filters the same way as location.
18442
+ */
18443
+ locationId?: string;
18440
18444
  /**
18441
18445
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
18442
18446
  * Range: minimum 1.
@@ -23858,7 +23862,7 @@ declare class GoogleHotelsNamespace {
23858
23862
  * Price: $0.0015 per request.
23859
23863
  *
23860
23864
  * @example
23861
- * const res = await client.googleHotels.details({ checkIn: "2026-11-15", checkOut: "2026-11-17", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
23865
+ * const res = await client.googleHotels.details({ checkIn: "2026-11-16", checkOut: "2026-11-18", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
23862
23866
  */
23863
23867
  details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
23864
23868
  /**
@@ -23869,7 +23873,7 @@ declare class GoogleHotelsNamespace {
23869
23873
  * Price: $0.0015 per request.
23870
23874
  *
23871
23875
  * @example
23872
- * const res = await client.googleHotels.search({ checkIn: "2026-11-15", checkOut: "2026-11-17", country: "us", query: "hotels near times square new york" });
23876
+ * const res = await client.googleHotels.search({ checkIn: "2026-11-16", checkOut: "2026-11-18", country: "us", query: "hotels near times square new york" });
23873
23877
  */
23874
23878
  search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
23875
23879
  }
@@ -48225,7 +48229,7 @@ declare class RedditNamespace {
48225
48229
  *
48226
48230
  * Fetch posts from a subreddit listing (hot, new, or top).
48227
48231
  *
48228
- * Price: $0.00038 per request.
48232
+ * Price: $0.0008 per request.
48229
48233
  *
48230
48234
  * @example
48231
48235
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
package/dist/index.d.ts CHANGED
@@ -5780,7 +5780,7 @@ declare class BookingNamespace {
5780
5780
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
5781
5781
  *
5782
5782
  * @example
5783
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-15", checkOut: "2026-11-17", limit: 3 });
5783
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-16", checkOut: "2026-11-18", limit: 3 });
5784
5784
  */
5785
5785
  search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
5786
5786
  }
@@ -18434,9 +18434,13 @@ interface FacebookSearchPostsInput {
18434
18434
  */
18435
18435
  limit?: number;
18436
18436
  /**
18437
- * Optional location to narrow results; include both city and country for best matches (e.g. 'Paris, France').
18437
+ * Optional place name; include both city and country for best matches (e.g. 'Paris, France'). Uses Facebook's place filter, which favors posts tagged at that place rather than every post by people who live there, and can still return some posts from elsewhere.
18438
18438
  */
18439
18439
  location?: string;
18440
+ /**
18441
+ * Optional Facebook place ID, used instead of location when you already have it (e.g. '110774245616525' for Paris, France). Filters the same way as location.
18442
+ */
18443
+ locationId?: string;
18440
18444
  /**
18441
18445
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
18442
18446
  * Range: minimum 1.
@@ -23858,7 +23862,7 @@ declare class GoogleHotelsNamespace {
23858
23862
  * Price: $0.0015 per request.
23859
23863
  *
23860
23864
  * @example
23861
- * const res = await client.googleHotels.details({ checkIn: "2026-11-15", checkOut: "2026-11-17", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
23865
+ * const res = await client.googleHotels.details({ checkIn: "2026-11-16", checkOut: "2026-11-18", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
23862
23866
  */
23863
23867
  details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
23864
23868
  /**
@@ -23869,7 +23873,7 @@ declare class GoogleHotelsNamespace {
23869
23873
  * Price: $0.0015 per request.
23870
23874
  *
23871
23875
  * @example
23872
- * const res = await client.googleHotels.search({ checkIn: "2026-11-15", checkOut: "2026-11-17", country: "us", query: "hotels near times square new york" });
23876
+ * const res = await client.googleHotels.search({ checkIn: "2026-11-16", checkOut: "2026-11-18", country: "us", query: "hotels near times square new york" });
23873
23877
  */
23874
23878
  search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
23875
23879
  }
@@ -48225,7 +48229,7 @@ declare class RedditNamespace {
48225
48229
  *
48226
48230
  * Fetch posts from a subreddit listing (hot, new, or top).
48227
48231
  *
48228
- * Price: $0.00038 per request.
48232
+ * Price: $0.0008 per request.
48229
48233
  *
48230
48234
  * @example
48231
48235
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
package/dist/index.js CHANGED
@@ -1491,7 +1491,7 @@ var BookingNamespace = class {
1491
1491
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
1492
1492
  *
1493
1493
  * @example
1494
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-15", checkOut: "2026-11-17", limit: 3 });
1494
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-16", checkOut: "2026-11-18", limit: 3 });
1495
1495
  */
1496
1496
  search(input, options) {
1497
1497
  return this._core.run("booking.search", input, options);
@@ -3544,7 +3544,7 @@ var GoogleHotelsNamespace = class {
3544
3544
  * Price: $0.0015 per request.
3545
3545
  *
3546
3546
  * @example
3547
- * const res = await client.googleHotels.details({ checkIn: "2026-11-15", checkOut: "2026-11-17", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
3547
+ * const res = await client.googleHotels.details({ checkIn: "2026-11-16", checkOut: "2026-11-18", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
3548
3548
  */
3549
3549
  details(input, options) {
3550
3550
  return this._core.run("google_hotels.details", input, options);
@@ -3557,7 +3557,7 @@ var GoogleHotelsNamespace = class {
3557
3557
  * Price: $0.0015 per request.
3558
3558
  *
3559
3559
  * @example
3560
- * const res = await client.googleHotels.search({ checkIn: "2026-11-15", checkOut: "2026-11-17", country: "us", query: "hotels near times square new york" });
3560
+ * const res = await client.googleHotels.search({ checkIn: "2026-11-16", checkOut: "2026-11-18", country: "us", query: "hotels near times square new york" });
3561
3561
  */
3562
3562
  search(input, options) {
3563
3563
  return this._core.run("google_hotels.search", input, options);
@@ -5708,7 +5708,7 @@ var RedditNamespace = class {
5708
5708
  *
5709
5709
  * Fetch posts from a subreddit listing (hot, new, or top).
5710
5710
  *
5711
- * Price: $0.00038 per request.
5711
+ * Price: $0.0008 per request.
5712
5712
  *
5713
5713
  * @example
5714
5714
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });