@getanyapi/sdk 0.147.7 → 0.148.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.cjs +64 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +432 -3
- package/dist/index.d.ts +432 -3
- package/dist/index.js +62 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -62,6 +62,7 @@ __export(index_exports, {
|
|
|
62
62
|
GlassdoorNamespace: () => GlassdoorNamespace,
|
|
63
63
|
GoogleAdsNamespace: () => GoogleAdsNamespace,
|
|
64
64
|
GoogleFinanceNamespace: () => GoogleFinanceNamespace,
|
|
65
|
+
GoogleFlightsNamespace: () => GoogleFlightsNamespace,
|
|
65
66
|
GoogleHotelsNamespace: () => GoogleHotelsNamespace,
|
|
66
67
|
GoogleNamespace: () => GoogleNamespace,
|
|
67
68
|
GoogleShoppingNamespace: () => GoogleShoppingNamespace,
|
|
@@ -121,6 +122,7 @@ __export(index_exports, {
|
|
|
121
122
|
UnsplashNamespace: () => UnsplashNamespace,
|
|
122
123
|
UpstreamError: () => UpstreamError,
|
|
123
124
|
UpworkNamespace: () => UpworkNamespace,
|
|
125
|
+
VrboNamespace: () => VrboNamespace,
|
|
124
126
|
WalmartNamespace: () => WalmartNamespace,
|
|
125
127
|
WebNamespace: () => WebNamespace,
|
|
126
128
|
WeiboNamespace: () => WeiboNamespace,
|
|
@@ -1724,7 +1726,7 @@ var BingNamespace = class {
|
|
|
1724
1726
|
*
|
|
1725
1727
|
* Ask Microsoft Copilot (the AI answer in Bing) a question and get its web-grounded answer with the sources it cites as clean JSON - for tracking how Copilot answers and which sites it cites.
|
|
1726
1728
|
*
|
|
1727
|
-
* Price: $0.
|
|
1729
|
+
* Price: $0.00644 per request.
|
|
1728
1730
|
*
|
|
1729
1731
|
* @example
|
|
1730
1732
|
* const res = await client.bing.copilot({ prompt: "what is the capital of australia and why" });
|
|
@@ -3949,6 +3951,27 @@ var GoogleFinanceNamespace = class {
|
|
|
3949
3951
|
}
|
|
3950
3952
|
};
|
|
3951
3953
|
|
|
3954
|
+
// src/generated/platforms/google_flights.ts
|
|
3955
|
+
var GoogleFlightsNamespace = class {
|
|
3956
|
+
constructor(_core) {
|
|
3957
|
+
this._core = _core;
|
|
3958
|
+
}
|
|
3959
|
+
_core;
|
|
3960
|
+
/**
|
|
3961
|
+
* Google Flights Search
|
|
3962
|
+
*
|
|
3963
|
+
* Search Google Flights between two airports on a date and get about 20 itineraries: price, airline, stops, total duration, CO2 emissions against the typical figure for the route, and every leg's airline code, flight number, airports, local departure and arrival times and duration, as normalized JSON. Filter by cabin class, stops, airlines and maximum price. One-way searches return the total fare for all passengers. With a returnDate, each result is an outbound option priced at the cheapest round trip that starts with it (priceType round_trip_starting); the return flights are not included.
|
|
3964
|
+
*
|
|
3965
|
+
* Price: $0.001 per request.
|
|
3966
|
+
*
|
|
3967
|
+
* @example
|
|
3968
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-04", destination: "LHR", origin: "JFK" });
|
|
3969
|
+
*/
|
|
3970
|
+
search(input, options) {
|
|
3971
|
+
return this._core.run("google_flights.search", input, options);
|
|
3972
|
+
}
|
|
3973
|
+
};
|
|
3974
|
+
|
|
3952
3975
|
// src/generated/platforms/google_hotels.ts
|
|
3953
3976
|
var GoogleHotelsNamespace = class {
|
|
3954
3977
|
constructor(_core) {
|
|
@@ -4647,7 +4670,7 @@ var InstagramNamespace = class {
|
|
|
4647
4670
|
*
|
|
4648
4671
|
* List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
|
|
4649
4672
|
*
|
|
4650
|
-
* Price: $0.
|
|
4673
|
+
* Price: $0.027 per request.
|
|
4651
4674
|
*
|
|
4652
4675
|
* @example
|
|
4653
4676
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
|
@@ -8941,6 +8964,27 @@ var UpworkNamespace = class {
|
|
|
8941
8964
|
}
|
|
8942
8965
|
};
|
|
8943
8966
|
|
|
8967
|
+
// src/generated/platforms/vrbo.ts
|
|
8968
|
+
var VrboNamespace = class {
|
|
8969
|
+
constructor(_core) {
|
|
8970
|
+
this._core = _core;
|
|
8971
|
+
}
|
|
8972
|
+
_core;
|
|
8973
|
+
/**
|
|
8974
|
+
* Vrbo Search
|
|
8975
|
+
*
|
|
8976
|
+
* Search Vrbo vacation rentals by destination and dates, with guest, bedroom, bed, bathroom and price filters, and get up to 50 listings per call: Vrbo property ID and link, name, summary line, property type, bedrooms, beds, guest rating and review count, nightly and total stay price with the original nightly price before any discount, and photos as normalized JSON. Page with offset; the price is the same whatever the limit.
|
|
8977
|
+
*
|
|
8978
|
+
* Price: $0.001 per request.
|
|
8979
|
+
*
|
|
8980
|
+
* @example
|
|
8981
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-04", checkOut: "2026-12-07", location: "Lake Tahoe", adults: 2, limit: 5 });
|
|
8982
|
+
*/
|
|
8983
|
+
search(input, options) {
|
|
8984
|
+
return this._core.run("vrbo.search", input, options);
|
|
8985
|
+
}
|
|
8986
|
+
};
|
|
8987
|
+
|
|
8944
8988
|
// src/generated/platforms/walmart.ts
|
|
8945
8989
|
var WalmartNamespace = class {
|
|
8946
8990
|
constructor(_core) {
|
|
@@ -10042,6 +10086,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10042
10086
|
this._core
|
|
10043
10087
|
);
|
|
10044
10088
|
}
|
|
10089
|
+
/**
|
|
10090
|
+
* Typed methods for the google_flights platform.
|
|
10091
|
+
*/
|
|
10092
|
+
get googleFlights() {
|
|
10093
|
+
return this._namespaces["googleFlights"] ??= new GoogleFlightsNamespace(
|
|
10094
|
+
this._core
|
|
10095
|
+
);
|
|
10096
|
+
}
|
|
10045
10097
|
/**
|
|
10046
10098
|
* Typed methods for the google_hotels platform.
|
|
10047
10099
|
*/
|
|
@@ -10438,6 +10490,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10438
10490
|
this._core
|
|
10439
10491
|
);
|
|
10440
10492
|
}
|
|
10493
|
+
/**
|
|
10494
|
+
* Typed methods for the vrbo platform.
|
|
10495
|
+
*/
|
|
10496
|
+
get vrbo() {
|
|
10497
|
+
return this._namespaces["vrbo"] ??= new VrboNamespace(
|
|
10498
|
+
this._core
|
|
10499
|
+
);
|
|
10500
|
+
}
|
|
10441
10501
|
/**
|
|
10442
10502
|
* Typed methods for the walmart platform.
|
|
10443
10503
|
*/
|
|
@@ -10547,6 +10607,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10547
10607
|
GlassdoorNamespace,
|
|
10548
10608
|
GoogleAdsNamespace,
|
|
10549
10609
|
GoogleFinanceNamespace,
|
|
10610
|
+
GoogleFlightsNamespace,
|
|
10550
10611
|
GoogleHotelsNamespace,
|
|
10551
10612
|
GoogleNamespace,
|
|
10552
10613
|
GoogleShoppingNamespace,
|
|
@@ -10606,6 +10667,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
10606
10667
|
UnsplashNamespace,
|
|
10607
10668
|
UpstreamError,
|
|
10608
10669
|
UpworkNamespace,
|
|
10670
|
+
VrboNamespace,
|
|
10609
10671
|
WalmartNamespace,
|
|
10610
10672
|
WebNamespace,
|
|
10611
10673
|
WeiboNamespace,
|