@getanyapi/sdk 0.101.6 → 0.103.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 +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +351 -30
- package/dist/index.d.ts +351 -30
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1553,7 +1553,7 @@ var BookingNamespace = class {
|
|
|
1553
1553
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1554
1554
|
*
|
|
1555
1555
|
* @example
|
|
1556
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
1556
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-15", checkOut: "2026-11-17", limit: 3 });
|
|
1557
1557
|
*/
|
|
1558
1558
|
search(input, options) {
|
|
1559
1559
|
return this._core.run("booking.search", input, options);
|
|
@@ -3177,7 +3177,7 @@ var GoogleNamespace = class {
|
|
|
3177
3177
|
*
|
|
3178
3178
|
* 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.
|
|
3179
3179
|
*
|
|
3180
|
-
* Price: $0.
|
|
3180
|
+
* Price: $0.0015 per request.
|
|
3181
3181
|
*
|
|
3182
3182
|
* @example
|
|
3183
3183
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -3281,7 +3281,7 @@ var GoogleNamespace = class {
|
|
|
3281
3281
|
*
|
|
3282
3282
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
3283
3283
|
*
|
|
3284
|
-
* Price: $0.
|
|
3284
|
+
* Price: $0.0004 per request.
|
|
3285
3285
|
*
|
|
3286
3286
|
* @example
|
|
3287
3287
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -3457,7 +3457,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3457
3457
|
* Price: $0.0015 per request.
|
|
3458
3458
|
*
|
|
3459
3459
|
* @example
|
|
3460
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3460
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-15", checkOut: "2026-11-17", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3461
3461
|
*/
|
|
3462
3462
|
details(input, options) {
|
|
3463
3463
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3470,7 +3470,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3470
3470
|
* Price: $0.0015 per request.
|
|
3471
3471
|
*
|
|
3472
3472
|
* @example
|
|
3473
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3473
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-15", checkOut: "2026-11-17", country: "us", query: "hotels near times square new york" });
|
|
3474
3474
|
*/
|
|
3475
3475
|
search(input, options) {
|
|
3476
3476
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -4693,7 +4693,7 @@ var LinkedinNamespace = class {
|
|
|
4693
4693
|
*
|
|
4694
4694
|
* Lightweight profile: name, avatar, location, followers, and a basic experience/education list (company + dates only, no job titles, descriptions, or skills; past companies may be redacted). For full experience detail, skills, certifications, connections, and verified flags use linkedin.profile.
|
|
4695
4695
|
*
|
|
4696
|
-
* Price: $0.
|
|
4696
|
+
* Price: $0.0008 per request.
|
|
4697
4697
|
*
|
|
4698
4698
|
* @example
|
|
4699
4699
|
* const res = await client.linkedin.profileThin({ url: "https://www.linkedin.com/in/williamhgates" });
|
|
@@ -5485,7 +5485,7 @@ var RedditNamespace = class {
|
|
|
5485
5485
|
*
|
|
5486
5486
|
* Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON.
|
|
5487
5487
|
*
|
|
5488
|
-
* Price: $0.
|
|
5488
|
+
* Price: $0.0005 per request.
|
|
5489
5489
|
*
|
|
5490
5490
|
* @example
|
|
5491
5491
|
* const res = await client.reddit.post({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -5540,7 +5540,7 @@ var RedditNamespace = class {
|
|
|
5540
5540
|
*
|
|
5541
5541
|
* Fetch a Reddit user's public profile (karma split, post and comment counts, bio, avatar, account age) by username.
|
|
5542
5542
|
*
|
|
5543
|
-
* Price: $0.
|
|
5543
|
+
* Price: $0.0008 per request.
|
|
5544
5544
|
*
|
|
5545
5545
|
* @example
|
|
5546
5546
|
* const res = await client.reddit.profile({ username: "spez" });
|
|
@@ -5553,7 +5553,7 @@ var RedditNamespace = class {
|
|
|
5553
5553
|
*
|
|
5554
5554
|
* Search Reddit posts across all subreddits by query.
|
|
5555
5555
|
*
|
|
5556
|
-
* Price: $0.
|
|
5556
|
+
* Price: $0.00035 per request.
|
|
5557
5557
|
*
|
|
5558
5558
|
* @example
|
|
5559
5559
|
* const res = await client.reddit.search({ query: "mechanical keyboard" });
|
|
@@ -5624,7 +5624,7 @@ var RedditNamespace = class {
|
|
|
5624
5624
|
*
|
|
5625
5625
|
* Search posts within a single subreddit by query, sort, and timeframe.
|
|
5626
5626
|
*
|
|
5627
|
-
* Price: $0.
|
|
5627
|
+
* Price: $0.00035 per request.
|
|
5628
5628
|
*
|
|
5629
5629
|
* @example
|
|
5630
5630
|
* const res = await client.reddit.subredditSearch({ subreddit: "Fitness", query: "push ups" });
|
|
@@ -6639,7 +6639,7 @@ var TiktokNamespace = class {
|
|
|
6639
6639
|
*
|
|
6640
6640
|
* Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).
|
|
6641
6641
|
*
|
|
6642
|
-
* Price: $0.
|
|
6642
|
+
* Price: $0.0012 per request.
|
|
6643
6643
|
*
|
|
6644
6644
|
* @example
|
|
6645
6645
|
* const res = await client.tiktok.adLibrarySearch({ query: "spotify" });
|
|
@@ -7794,7 +7794,7 @@ var TwitterNamespace = class {
|
|
|
7794
7794
|
*
|
|
7795
7795
|
* Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
|
|
7796
7796
|
*
|
|
7797
|
-
* Price: $0.
|
|
7797
|
+
* Price: $0.0007 per request.
|
|
7798
7798
|
*
|
|
7799
7799
|
* @example
|
|
7800
7800
|
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|
|
@@ -8250,7 +8250,7 @@ var YoutubeNamespace = class {
|
|
|
8250
8250
|
*
|
|
8251
8251
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
8252
8252
|
*
|
|
8253
|
-
* Price: $0.
|
|
8253
|
+
* Price: $0.00045 per request.
|
|
8254
8254
|
*
|
|
8255
8255
|
* @example
|
|
8256
8256
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -8573,7 +8573,7 @@ var YoutubeNamespace = class {
|
|
|
8573
8573
|
*
|
|
8574
8574
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
8575
8575
|
*
|
|
8576
|
-
* Price: $0.
|
|
8576
|
+
* Price: $0.0008 per request.
|
|
8577
8577
|
*
|
|
8578
8578
|
* @example
|
|
8579
8579
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -8586,7 +8586,7 @@ var YoutubeNamespace = class {
|
|
|
8586
8586
|
*
|
|
8587
8587
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
8588
8588
|
*
|
|
8589
|
-
* Price: $0.
|
|
8589
|
+
* Price: $0.0012 per request.
|
|
8590
8590
|
*
|
|
8591
8591
|
* @example
|
|
8592
8592
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|