@getanyapi/sdk 0.153.1 → 0.154.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 +26 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -14
- package/dist/index.d.ts +71 -14
- package/dist/index.js +26 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1701,7 +1701,7 @@ var BookingNamespace = class {
|
|
|
1701
1701
|
*
|
|
1702
1702
|
* Search Booking.com stays by destination and dates with optional guest and room occupancy and get hotel results (name, price, review score, location) as normalized JSON.
|
|
1703
1703
|
*
|
|
1704
|
-
* Price: $0.
|
|
1704
|
+
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1705
1705
|
*
|
|
1706
1706
|
* @example
|
|
1707
1707
|
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-16", checkOut: "2026-12-18", limit: 3 });
|
|
@@ -2869,7 +2869,7 @@ var FacebookNamespace = class {
|
|
|
2869
2869
|
*
|
|
2870
2870
|
* Fetch recent posts from any public Facebook group by URL: text, author, reactions, and comment counts.
|
|
2871
2871
|
*
|
|
2872
|
-
* Price: $0.
|
|
2872
|
+
* Price: $0.00072 per request.
|
|
2873
2873
|
*
|
|
2874
2874
|
* @example
|
|
2875
2875
|
* const res = await client.facebook.groupPosts({ url: "https://www.facebook.com/groups/instantpotcommunity/" });
|
|
@@ -3824,7 +3824,7 @@ var GoogleNamespace = class {
|
|
|
3824
3824
|
*
|
|
3825
3825
|
* 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.
|
|
3826
3826
|
*
|
|
3827
|
-
* Price: $0.
|
|
3827
|
+
* Price: $0.024 per request.
|
|
3828
3828
|
*
|
|
3829
3829
|
* @example
|
|
3830
3830
|
* const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
|
|
@@ -5704,7 +5704,7 @@ var MapsNamespace = class {
|
|
|
5704
5704
|
*
|
|
5705
5705
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
5706
5706
|
*
|
|
5707
|
-
* Price: $0.
|
|
5707
|
+
* Price: $0.00148 per request.
|
|
5708
5708
|
*
|
|
5709
5709
|
* @example
|
|
5710
5710
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3 });
|
|
@@ -6474,7 +6474,7 @@ var RedditNamespace = class {
|
|
|
6474
6474
|
*
|
|
6475
6475
|
* Get a Reddit user's profile picture URL, karma, and account age by username. The cheapest Reddit user lookup; use reddit.profile for bio, trophies, and post and comment counts.
|
|
6476
6476
|
*
|
|
6477
|
-
* Price: $0.
|
|
6477
|
+
* Price: $0.00036 per request.
|
|
6478
6478
|
*
|
|
6479
6479
|
* @example
|
|
6480
6480
|
* const res = await client.reddit.avatar({ username: "spez" });
|
|
@@ -6500,7 +6500,7 @@ var RedditNamespace = class {
|
|
|
6500
6500
|
*
|
|
6501
6501
|
* List the comments on a Reddit post by URL (author, body, score, timestamp, parent comment). Replies carry the parentId of the comment they answer.
|
|
6502
6502
|
*
|
|
6503
|
-
* Price: $0.
|
|
6503
|
+
* Price: $0.00058 per request.
|
|
6504
6504
|
*
|
|
6505
6505
|
* @example
|
|
6506
6506
|
* const res = await client.reddit.postComments({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -6584,7 +6584,7 @@ var RedditNamespace = class {
|
|
|
6584
6584
|
*
|
|
6585
6585
|
* Fetch a subreddit's metadata (weekly active users, description, and category).
|
|
6586
6586
|
*
|
|
6587
|
-
* Price: $0.
|
|
6587
|
+
* Price: $0.00036 per request.
|
|
6588
6588
|
*
|
|
6589
6589
|
* @example
|
|
6590
6590
|
* const res = await client.reddit.subredditDetails({ subreddit: "programming" });
|
|
@@ -8782,7 +8782,7 @@ var TrustpilotNamespace = class {
|
|
|
8782
8782
|
*
|
|
8783
8783
|
* Pull Trustpilot reviews for any company by brand name: star ratings, review text, dates, and reviewer details as clean JSON.
|
|
8784
8784
|
*
|
|
8785
|
-
* Price: $0.
|
|
8785
|
+
* Price: $0.00214 per request.
|
|
8786
8786
|
*
|
|
8787
8787
|
* @example
|
|
8788
8788
|
* const res = await client.trustpilot.reviews({ company: "stripe.com", limit: 3 });
|
|
@@ -9144,7 +9144,7 @@ var TwitterNamespace = class {
|
|
|
9144
9144
|
*
|
|
9145
9145
|
* Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
|
|
9146
9146
|
*
|
|
9147
|
-
* Price: $0.
|
|
9147
|
+
* Price: $0.00044 per request.
|
|
9148
9148
|
*
|
|
9149
9149
|
* @example
|
|
9150
9150
|
* const res = await client.twitter.userPosts({ handle: "levelsio" });
|
|
@@ -9173,7 +9173,7 @@ var TwitterNamespace = class {
|
|
|
9173
9173
|
*
|
|
9174
9174
|
* Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
|
|
9175
9175
|
*
|
|
9176
|
-
* Price: $0.
|
|
9176
|
+
* Price: $0.00044 per request.
|
|
9177
9177
|
*
|
|
9178
9178
|
* @example
|
|
9179
9179
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
@@ -9590,6 +9590,19 @@ var YoutubeNamespace = class {
|
|
|
9590
9590
|
options
|
|
9591
9591
|
);
|
|
9592
9592
|
}
|
|
9593
|
+
/**
|
|
9594
|
+
* YouTube Channel Contact Email
|
|
9595
|
+
*
|
|
9596
|
+
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. A lookup the source has not revealed yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key.
|
|
9597
|
+
*
|
|
9598
|
+
* Price: $0.132 per request plus $0 per result (maximum $0.132).
|
|
9599
|
+
*
|
|
9600
|
+
* @example
|
|
9601
|
+
* const res = await client.youtube.channelContact({ handle: "@mkbhd" });
|
|
9602
|
+
*/
|
|
9603
|
+
channelContact(input, options) {
|
|
9604
|
+
return this._core.run("youtube.channel_contact", input, options);
|
|
9605
|
+
}
|
|
9593
9606
|
/**
|
|
9594
9607
|
* YouTube Channel Live Streams
|
|
9595
9608
|
*
|
|
@@ -9763,7 +9776,7 @@ var YoutubeNamespace = class {
|
|
|
9763
9776
|
*
|
|
9764
9777
|
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
|
|
9765
9778
|
*
|
|
9766
|
-
* Price: $0.
|
|
9779
|
+
* Price: $0.00048 per request.
|
|
9767
9780
|
*
|
|
9768
9781
|
* @example
|
|
9769
9782
|
* const res = await client.youtube.search({ query: "how to cook rice" });
|
|
@@ -9863,7 +9876,7 @@ var YoutubeNamespace = class {
|
|
|
9863
9876
|
*
|
|
9864
9877
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
9865
9878
|
*
|
|
9866
|
-
* Price: $0.
|
|
9879
|
+
* Price: $0.00078 per request.
|
|
9867
9880
|
*
|
|
9868
9881
|
* @example
|
|
9869
9882
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -9876,7 +9889,7 @@ var YoutubeNamespace = class {
|
|
|
9876
9889
|
*
|
|
9877
9890
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
9878
9891
|
*
|
|
9879
|
-
* Price: $0.
|
|
9892
|
+
* Price: $0.00078 per request.
|
|
9880
9893
|
*
|
|
9881
9894
|
* @example
|
|
9882
9895
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|