@getanyapi/sdk 0.126.4 → 0.126.6
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 +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1956,7 +1956,7 @@ declare class AmazonNamespace {
|
|
|
1956
1956
|
*
|
|
1957
1957
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
1958
1958
|
*
|
|
1959
|
-
* Price: $0.
|
|
1959
|
+
* Price: $0.0013 per request.
|
|
1960
1960
|
*
|
|
1961
1961
|
* @example
|
|
1962
1962
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -6600,7 +6600,7 @@ declare class BookingNamespace {
|
|
|
6600
6600
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
6601
6601
|
*
|
|
6602
6602
|
* @example
|
|
6603
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
6603
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-20", checkOut: "2026-11-22", limit: 3 });
|
|
6604
6604
|
*/
|
|
6605
6605
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
6606
6606
|
}
|
|
@@ -14819,7 +14819,7 @@ declare class EmailNamespace {
|
|
|
14819
14819
|
*
|
|
14820
14820
|
* Find a person's work email address from their name and company domain.
|
|
14821
14821
|
*
|
|
14822
|
-
* Price: $0.
|
|
14822
|
+
* Price: $0.0154 per request.
|
|
14823
14823
|
*
|
|
14824
14824
|
* @example
|
|
14825
14825
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -23874,7 +23874,7 @@ declare class GoogleNamespace {
|
|
|
23874
23874
|
*
|
|
23875
23875
|
* 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.
|
|
23876
23876
|
*
|
|
23877
|
-
* Price: $0.
|
|
23877
|
+
* Price: $0.0015 per request.
|
|
23878
23878
|
*
|
|
23879
23879
|
* @example
|
|
23880
23880
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -24031,7 +24031,7 @@ declare class GoogleNamespace {
|
|
|
24031
24031
|
*
|
|
24032
24032
|
* Google Trends interest over time for up to 5 search terms compared on one 0-100 scale, where 100 is the peak search interest of any term in the window. Returns one series per term, in the order you sent them, with a value for every time bucket. Choose the country or region with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Interest over time only, not related queries or regions.
|
|
24033
24033
|
*
|
|
24034
|
-
* Price: $0.
|
|
24034
|
+
* Price: $0.018 per request.
|
|
24035
24035
|
*
|
|
24036
24036
|
* @example
|
|
24037
24037
|
* const res = await client.google.trends({ keywords: ["coffee", "tea"], geo: "US", timeframe: "12m" });
|
|
@@ -24936,7 +24936,7 @@ declare class GoogleHotelsNamespace {
|
|
|
24936
24936
|
* Price: $0.0015 per request.
|
|
24937
24937
|
*
|
|
24938
24938
|
* @example
|
|
24939
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
24939
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-20", checkOut: "2026-11-22", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
24940
24940
|
*/
|
|
24941
24941
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
24942
24942
|
/**
|
|
@@ -24947,7 +24947,7 @@ declare class GoogleHotelsNamespace {
|
|
|
24947
24947
|
* Price: $0.0015 per request.
|
|
24948
24948
|
*
|
|
24949
24949
|
* @example
|
|
24950
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
24950
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-20", checkOut: "2026-11-22", country: "us", query: "hotels near times square new york" });
|
|
24951
24951
|
*/
|
|
24952
24952
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
24953
24953
|
}
|
|
@@ -71849,7 +71849,7 @@ declare class YoutubeNamespace {
|
|
|
71849
71849
|
*
|
|
71850
71850
|
* Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
|
|
71851
71851
|
*
|
|
71852
|
-
* Price: $0.
|
|
71852
|
+
* Price: $0.002 per request.
|
|
71853
71853
|
*
|
|
71854
71854
|
* @example
|
|
71855
71855
|
* const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
package/dist/index.d.ts
CHANGED
|
@@ -1956,7 +1956,7 @@ declare class AmazonNamespace {
|
|
|
1956
1956
|
*
|
|
1957
1957
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
1958
1958
|
*
|
|
1959
|
-
* Price: $0.
|
|
1959
|
+
* Price: $0.0013 per request.
|
|
1960
1960
|
*
|
|
1961
1961
|
* @example
|
|
1962
1962
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -6600,7 +6600,7 @@ declare class BookingNamespace {
|
|
|
6600
6600
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
6601
6601
|
*
|
|
6602
6602
|
* @example
|
|
6603
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
6603
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-20", checkOut: "2026-11-22", limit: 3 });
|
|
6604
6604
|
*/
|
|
6605
6605
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
6606
6606
|
}
|
|
@@ -14819,7 +14819,7 @@ declare class EmailNamespace {
|
|
|
14819
14819
|
*
|
|
14820
14820
|
* Find a person's work email address from their name and company domain.
|
|
14821
14821
|
*
|
|
14822
|
-
* Price: $0.
|
|
14822
|
+
* Price: $0.0154 per request.
|
|
14823
14823
|
*
|
|
14824
14824
|
* @example
|
|
14825
14825
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -23874,7 +23874,7 @@ declare class GoogleNamespace {
|
|
|
23874
23874
|
*
|
|
23875
23875
|
* 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.
|
|
23876
23876
|
*
|
|
23877
|
-
* Price: $0.
|
|
23877
|
+
* Price: $0.0015 per request.
|
|
23878
23878
|
*
|
|
23879
23879
|
* @example
|
|
23880
23880
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -24031,7 +24031,7 @@ declare class GoogleNamespace {
|
|
|
24031
24031
|
*
|
|
24032
24032
|
* Google Trends interest over time for up to 5 search terms compared on one 0-100 scale, where 100 is the peak search interest of any term in the window. Returns one series per term, in the order you sent them, with a value for every time bucket. Choose the country or region with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Interest over time only, not related queries or regions.
|
|
24033
24033
|
*
|
|
24034
|
-
* Price: $0.
|
|
24034
|
+
* Price: $0.018 per request.
|
|
24035
24035
|
*
|
|
24036
24036
|
* @example
|
|
24037
24037
|
* const res = await client.google.trends({ keywords: ["coffee", "tea"], geo: "US", timeframe: "12m" });
|
|
@@ -24936,7 +24936,7 @@ declare class GoogleHotelsNamespace {
|
|
|
24936
24936
|
* Price: $0.0015 per request.
|
|
24937
24937
|
*
|
|
24938
24938
|
* @example
|
|
24939
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
24939
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-20", checkOut: "2026-11-22", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
24940
24940
|
*/
|
|
24941
24941
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
24942
24942
|
/**
|
|
@@ -24947,7 +24947,7 @@ declare class GoogleHotelsNamespace {
|
|
|
24947
24947
|
* Price: $0.0015 per request.
|
|
24948
24948
|
*
|
|
24949
24949
|
* @example
|
|
24950
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
24950
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-20", checkOut: "2026-11-22", country: "us", query: "hotels near times square new york" });
|
|
24951
24951
|
*/
|
|
24952
24952
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
24953
24953
|
}
|
|
@@ -71849,7 +71849,7 @@ declare class YoutubeNamespace {
|
|
|
71849
71849
|
*
|
|
71850
71850
|
* Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
|
|
71851
71851
|
*
|
|
71852
|
-
* Price: $0.
|
|
71852
|
+
* Price: $0.002 per request.
|
|
71853
71853
|
*
|
|
71854
71854
|
* @example
|
|
71855
71855
|
* const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
package/dist/index.js
CHANGED
|
@@ -1211,7 +1211,7 @@ var AmazonNamespace = class {
|
|
|
1211
1211
|
*
|
|
1212
1212
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
1213
1213
|
*
|
|
1214
|
-
* Price: $0.
|
|
1214
|
+
* Price: $0.0013 per request.
|
|
1215
1215
|
*
|
|
1216
1216
|
* @example
|
|
1217
1217
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -1572,7 +1572,7 @@ var BookingNamespace = class {
|
|
|
1572
1572
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1573
1573
|
*
|
|
1574
1574
|
* @example
|
|
1575
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
1575
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-20", checkOut: "2026-11-22", limit: 3 });
|
|
1576
1576
|
*/
|
|
1577
1577
|
search(input, options) {
|
|
1578
1578
|
return this._core.run("booking.search", input, options);
|
|
@@ -2158,7 +2158,7 @@ var EmailNamespace = class {
|
|
|
2158
2158
|
*
|
|
2159
2159
|
* Find a person's work email address from their name and company domain.
|
|
2160
2160
|
*
|
|
2161
|
-
* Price: $0.
|
|
2161
|
+
* Price: $0.0154 per request.
|
|
2162
2162
|
*
|
|
2163
2163
|
* @example
|
|
2164
2164
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -3332,7 +3332,7 @@ var GoogleNamespace = class {
|
|
|
3332
3332
|
*
|
|
3333
3333
|
* 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.
|
|
3334
3334
|
*
|
|
3335
|
-
* Price: $0.
|
|
3335
|
+
* Price: $0.0015 per request.
|
|
3336
3336
|
*
|
|
3337
3337
|
* @example
|
|
3338
3338
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -3533,7 +3533,7 @@ var GoogleNamespace = class {
|
|
|
3533
3533
|
*
|
|
3534
3534
|
* Google Trends interest over time for up to 5 search terms compared on one 0-100 scale, where 100 is the peak search interest of any term in the window. Returns one series per term, in the order you sent them, with a value for every time bucket. Choose the country or region with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Interest over time only, not related queries or regions.
|
|
3535
3535
|
*
|
|
3536
|
-
* Price: $0.
|
|
3536
|
+
* Price: $0.018 per request.
|
|
3537
3537
|
*
|
|
3538
3538
|
* @example
|
|
3539
3539
|
* const res = await client.google.trends({ keywords: ["coffee", "tea"], geo: "US", timeframe: "12m" });
|
|
@@ -3667,7 +3667,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3667
3667
|
* Price: $0.0015 per request.
|
|
3668
3668
|
*
|
|
3669
3669
|
* @example
|
|
3670
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3670
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-20", checkOut: "2026-11-22", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3671
3671
|
*/
|
|
3672
3672
|
details(input, options) {
|
|
3673
3673
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3680,7 +3680,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3680
3680
|
* Price: $0.0015 per request.
|
|
3681
3681
|
*
|
|
3682
3682
|
* @example
|
|
3683
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3683
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-20", checkOut: "2026-11-22", country: "us", query: "hotels near times square new york" });
|
|
3684
3684
|
*/
|
|
3685
3685
|
search(input, options) {
|
|
3686
3686
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -9131,7 +9131,7 @@ var YoutubeNamespace = class {
|
|
|
9131
9131
|
*
|
|
9132
9132
|
* Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
|
|
9133
9133
|
*
|
|
9134
|
-
* Price: $0.
|
|
9134
|
+
* Price: $0.002 per request.
|
|
9135
9135
|
*
|
|
9136
9136
|
* @example
|
|
9137
9137
|
* const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|