@getanyapi/sdk 0.158.15 → 0.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3075,7 +3075,7 @@ declare class AmazonNamespace {
|
|
|
3075
3075
|
*
|
|
3076
3076
|
* Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
|
|
3077
3077
|
*
|
|
3078
|
-
* Price: $0.
|
|
3078
|
+
* Price: $0.0009 per request.
|
|
3079
3079
|
*
|
|
3080
3080
|
* @example
|
|
3081
3081
|
* const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
|
|
@@ -5274,7 +5274,7 @@ declare class BookingNamespace {
|
|
|
5274
5274
|
* Price: $0.0008 per request.
|
|
5275
5275
|
*
|
|
5276
5276
|
* @example
|
|
5277
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
5277
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-18", checkOut: "2026-12-20", limit: 3 });
|
|
5278
5278
|
*/
|
|
5279
5279
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5280
5280
|
}
|
|
@@ -24024,7 +24024,7 @@ declare class GoogleNamespace {
|
|
|
24024
24024
|
*
|
|
24025
24025
|
* 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.
|
|
24026
24026
|
*
|
|
24027
|
-
* Price: $0.
|
|
24027
|
+
* Price: $0.0018 per request.
|
|
24028
24028
|
*
|
|
24029
24029
|
* @example
|
|
24030
24030
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -25122,7 +25122,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25122
25122
|
* Price: $0.00085 per request.
|
|
25123
25123
|
*
|
|
25124
25124
|
* @example
|
|
25125
|
-
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-
|
|
25125
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-18", departureDateTo: "2027-01-16", destination: "LHR", origin: "JFK" });
|
|
25126
25126
|
*/
|
|
25127
25127
|
calendar(input: GoogleFlightsCalendarInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsCalendarData>>;
|
|
25128
25128
|
/**
|
|
@@ -25133,7 +25133,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25133
25133
|
* Price: $0.00085 per request.
|
|
25134
25134
|
*
|
|
25135
25135
|
* @example
|
|
25136
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
25136
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-18", destination: "LHR", origin: "JFK" });
|
|
25137
25137
|
*/
|
|
25138
25138
|
search(input: GoogleFlightsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsSearchData>>;
|
|
25139
25139
|
}
|
|
@@ -25468,7 +25468,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25468
25468
|
* Price: $0.0015 per request.
|
|
25469
25469
|
*
|
|
25470
25470
|
* @example
|
|
25471
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
25471
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-18", checkOut: "2026-12-20", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
25472
25472
|
*/
|
|
25473
25473
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
25474
25474
|
/**
|
|
@@ -25479,7 +25479,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25479
25479
|
* Price: $0.0015 per request.
|
|
25480
25480
|
*
|
|
25481
25481
|
* @example
|
|
25482
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
25482
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-18", checkOut: "2026-12-20", country: "us", query: "hotels near times square new york" });
|
|
25483
25483
|
*/
|
|
25484
25484
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
25485
25485
|
}
|
|
@@ -65985,7 +65985,7 @@ interface TiktokProfileContactInput {
|
|
|
65985
65985
|
/**
|
|
65986
65986
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `domain` or `sourceUrl`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
65987
65987
|
*/
|
|
65988
|
-
requireFields?: ("domain" | "sourceUrl")[];
|
|
65988
|
+
requireFields?: ("domain" | "domainHealth" | "private" | "sourceUrl")[];
|
|
65989
65989
|
/**
|
|
65990
65990
|
* Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
65991
65991
|
*/
|
|
@@ -66070,9 +66070,9 @@ interface TiktokProfileContactData {
|
|
|
66070
66070
|
*/
|
|
66071
66071
|
primaryEmail?: string;
|
|
66072
66072
|
/**
|
|
66073
|
-
* Whether the account is private.
|
|
66073
|
+
* Whether the account is private. Null when the source that served the request does not report it.
|
|
66074
66074
|
*/
|
|
66075
|
-
private?: boolean;
|
|
66075
|
+
private?: boolean | null;
|
|
66076
66076
|
/**
|
|
66077
66077
|
* Canonical URL of the TikTok profile.
|
|
66078
66078
|
*/
|
|
@@ -73768,7 +73768,7 @@ declare class VrboNamespace {
|
|
|
73768
73768
|
* Price: $0.00085 per request.
|
|
73769
73769
|
*
|
|
73770
73770
|
* @example
|
|
73771
|
-
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
73771
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-18", checkOut: "2026-12-21" });
|
|
73772
73772
|
*/
|
|
73773
73773
|
listing(input: VrboListingInput, options?: RequestOptions): Promise<RunResult<VrboListingData>>;
|
|
73774
73774
|
/**
|
|
@@ -73779,7 +73779,7 @@ declare class VrboNamespace {
|
|
|
73779
73779
|
* Price: $0.00085 per request.
|
|
73780
73780
|
*
|
|
73781
73781
|
* @example
|
|
73782
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
73782
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-18", checkOut: "2026-12-21", location: "Lake Tahoe", adults: 2 });
|
|
73783
73783
|
*/
|
|
73784
73784
|
search(input: VrboSearchInput, options?: RequestOptions): Promise<RunResult<VrboSearchData>>;
|
|
73785
73785
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3075,7 +3075,7 @@ declare class AmazonNamespace {
|
|
|
3075
3075
|
*
|
|
3076
3076
|
* Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
|
|
3077
3077
|
*
|
|
3078
|
-
* Price: $0.
|
|
3078
|
+
* Price: $0.0009 per request.
|
|
3079
3079
|
*
|
|
3080
3080
|
* @example
|
|
3081
3081
|
* const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
|
|
@@ -5274,7 +5274,7 @@ declare class BookingNamespace {
|
|
|
5274
5274
|
* Price: $0.0008 per request.
|
|
5275
5275
|
*
|
|
5276
5276
|
* @example
|
|
5277
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
5277
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-18", checkOut: "2026-12-20", limit: 3 });
|
|
5278
5278
|
*/
|
|
5279
5279
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5280
5280
|
}
|
|
@@ -24024,7 +24024,7 @@ declare class GoogleNamespace {
|
|
|
24024
24024
|
*
|
|
24025
24025
|
* 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.
|
|
24026
24026
|
*
|
|
24027
|
-
* Price: $0.
|
|
24027
|
+
* Price: $0.0018 per request.
|
|
24028
24028
|
*
|
|
24029
24029
|
* @example
|
|
24030
24030
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -25122,7 +25122,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25122
25122
|
* Price: $0.00085 per request.
|
|
25123
25123
|
*
|
|
25124
25124
|
* @example
|
|
25125
|
-
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-
|
|
25125
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-18", departureDateTo: "2027-01-16", destination: "LHR", origin: "JFK" });
|
|
25126
25126
|
*/
|
|
25127
25127
|
calendar(input: GoogleFlightsCalendarInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsCalendarData>>;
|
|
25128
25128
|
/**
|
|
@@ -25133,7 +25133,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25133
25133
|
* Price: $0.00085 per request.
|
|
25134
25134
|
*
|
|
25135
25135
|
* @example
|
|
25136
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
25136
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-18", destination: "LHR", origin: "JFK" });
|
|
25137
25137
|
*/
|
|
25138
25138
|
search(input: GoogleFlightsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsSearchData>>;
|
|
25139
25139
|
}
|
|
@@ -25468,7 +25468,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25468
25468
|
* Price: $0.0015 per request.
|
|
25469
25469
|
*
|
|
25470
25470
|
* @example
|
|
25471
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
25471
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-18", checkOut: "2026-12-20", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
25472
25472
|
*/
|
|
25473
25473
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
25474
25474
|
/**
|
|
@@ -25479,7 +25479,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25479
25479
|
* Price: $0.0015 per request.
|
|
25480
25480
|
*
|
|
25481
25481
|
* @example
|
|
25482
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
25482
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-18", checkOut: "2026-12-20", country: "us", query: "hotels near times square new york" });
|
|
25483
25483
|
*/
|
|
25484
25484
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
25485
25485
|
}
|
|
@@ -65985,7 +65985,7 @@ interface TiktokProfileContactInput {
|
|
|
65985
65985
|
/**
|
|
65986
65986
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `domain` or `sourceUrl`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
65987
65987
|
*/
|
|
65988
|
-
requireFields?: ("domain" | "sourceUrl")[];
|
|
65988
|
+
requireFields?: ("domain" | "domainHealth" | "private" | "sourceUrl")[];
|
|
65989
65989
|
/**
|
|
65990
65990
|
* Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
65991
65991
|
*/
|
|
@@ -66070,9 +66070,9 @@ interface TiktokProfileContactData {
|
|
|
66070
66070
|
*/
|
|
66071
66071
|
primaryEmail?: string;
|
|
66072
66072
|
/**
|
|
66073
|
-
* Whether the account is private.
|
|
66073
|
+
* Whether the account is private. Null when the source that served the request does not report it.
|
|
66074
66074
|
*/
|
|
66075
|
-
private?: boolean;
|
|
66075
|
+
private?: boolean | null;
|
|
66076
66076
|
/**
|
|
66077
66077
|
* Canonical URL of the TikTok profile.
|
|
66078
66078
|
*/
|
|
@@ -73768,7 +73768,7 @@ declare class VrboNamespace {
|
|
|
73768
73768
|
* Price: $0.00085 per request.
|
|
73769
73769
|
*
|
|
73770
73770
|
* @example
|
|
73771
|
-
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
73771
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-18", checkOut: "2026-12-21" });
|
|
73772
73772
|
*/
|
|
73773
73773
|
listing(input: VrboListingInput, options?: RequestOptions): Promise<RunResult<VrboListingData>>;
|
|
73774
73774
|
/**
|
|
@@ -73779,7 +73779,7 @@ declare class VrboNamespace {
|
|
|
73779
73779
|
* Price: $0.00085 per request.
|
|
73780
73780
|
*
|
|
73781
73781
|
* @example
|
|
73782
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
73782
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-18", checkOut: "2026-12-21", location: "Lake Tahoe", adults: 2 });
|
|
73783
73783
|
*/
|
|
73784
73784
|
search(input: VrboSearchInput, options?: RequestOptions): Promise<RunResult<VrboSearchData>>;
|
|
73785
73785
|
}
|
package/dist/index.js
CHANGED
|
@@ -1265,7 +1265,7 @@ var AmazonNamespace = class {
|
|
|
1265
1265
|
*
|
|
1266
1266
|
* Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
|
|
1267
1267
|
*
|
|
1268
|
-
* Price: $0.
|
|
1268
|
+
* Price: $0.0009 per request.
|
|
1269
1269
|
*
|
|
1270
1270
|
* @example
|
|
1271
1271
|
* const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
|
|
@@ -1566,7 +1566,7 @@ var BookingNamespace = class {
|
|
|
1566
1566
|
* Price: $0.0008 per request.
|
|
1567
1567
|
*
|
|
1568
1568
|
* @example
|
|
1569
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
1569
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-18", checkOut: "2026-12-20", limit: 3 });
|
|
1570
1570
|
*/
|
|
1571
1571
|
search(input, options) {
|
|
1572
1572
|
return this._core.run("booking.search", input, options);
|
|
@@ -3485,7 +3485,7 @@ var GoogleNamespace = class {
|
|
|
3485
3485
|
*
|
|
3486
3486
|
* 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.
|
|
3487
3487
|
*
|
|
3488
|
-
* Price: $0.
|
|
3488
|
+
* Price: $0.0018 per request.
|
|
3489
3489
|
*
|
|
3490
3490
|
* @example
|
|
3491
3491
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -3833,7 +3833,7 @@ var GoogleFlightsNamespace = class {
|
|
|
3833
3833
|
* Price: $0.00085 per request.
|
|
3834
3834
|
*
|
|
3835
3835
|
* @example
|
|
3836
|
-
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-
|
|
3836
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-18", departureDateTo: "2027-01-16", destination: "LHR", origin: "JFK" });
|
|
3837
3837
|
*/
|
|
3838
3838
|
calendar(input, options) {
|
|
3839
3839
|
return this._core.run("google_flights.calendar", input, options);
|
|
@@ -3846,7 +3846,7 @@ var GoogleFlightsNamespace = class {
|
|
|
3846
3846
|
* Price: $0.00085 per request.
|
|
3847
3847
|
*
|
|
3848
3848
|
* @example
|
|
3849
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
3849
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-18", destination: "LHR", origin: "JFK" });
|
|
3850
3850
|
*/
|
|
3851
3851
|
search(input, options) {
|
|
3852
3852
|
return this._core.run("google_flights.search", input, options);
|
|
@@ -3867,7 +3867,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3867
3867
|
* Price: $0.0015 per request.
|
|
3868
3868
|
*
|
|
3869
3869
|
* @example
|
|
3870
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
3870
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-18", checkOut: "2026-12-20", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3871
3871
|
*/
|
|
3872
3872
|
details(input, options) {
|
|
3873
3873
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3880,7 +3880,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3880
3880
|
* Price: $0.0015 per request.
|
|
3881
3881
|
*
|
|
3882
3882
|
* @example
|
|
3883
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
3883
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-18", checkOut: "2026-12-20", country: "us", query: "hotels near times square new york" });
|
|
3884
3884
|
*/
|
|
3885
3885
|
search(input, options) {
|
|
3886
3886
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -9117,7 +9117,7 @@ var VrboNamespace = class {
|
|
|
9117
9117
|
* Price: $0.00085 per request.
|
|
9118
9118
|
*
|
|
9119
9119
|
* @example
|
|
9120
|
-
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
9120
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-18", checkOut: "2026-12-21" });
|
|
9121
9121
|
*/
|
|
9122
9122
|
listing(input, options) {
|
|
9123
9123
|
return this._core.run("vrbo.listing", input, options);
|
|
@@ -9130,7 +9130,7 @@ var VrboNamespace = class {
|
|
|
9130
9130
|
* Price: $0.00085 per request.
|
|
9131
9131
|
*
|
|
9132
9132
|
* @example
|
|
9133
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
9133
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-18", checkOut: "2026-12-21", location: "Lake Tahoe", adults: 2 });
|
|
9134
9134
|
*/
|
|
9135
9135
|
search(input, options) {
|
|
9136
9136
|
return this._core.run("vrbo.search", input, options);
|