@getanyapi/sdk 0.100.1 → 0.101.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 +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1680 -1665
- package/dist/index.d.ts +1680 -1665
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1431,7 +1431,7 @@ var BookingNamespace = class {
|
|
|
1431
1431
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1432
1432
|
*
|
|
1433
1433
|
* @example
|
|
1434
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
1434
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-13", checkOut: "2026-11-15", limit: 3 });
|
|
1435
1435
|
*/
|
|
1436
1436
|
search(input, options) {
|
|
1437
1437
|
return this._core.run("booking.search", input, options);
|
|
@@ -1975,7 +1975,7 @@ var EmailNamespace = class {
|
|
|
1975
1975
|
*
|
|
1976
1976
|
* Find a person's work email address from their name and company domain.
|
|
1977
1977
|
*
|
|
1978
|
-
* Price: $0.
|
|
1978
|
+
* Price: $0.0154 per request.
|
|
1979
1979
|
*
|
|
1980
1980
|
* @example
|
|
1981
1981
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -3055,7 +3055,7 @@ var GoogleNamespace = class {
|
|
|
3055
3055
|
*
|
|
3056
3056
|
* 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.
|
|
3057
3057
|
*
|
|
3058
|
-
* Price: $0.
|
|
3058
|
+
* Price: $0.0048 per request.
|
|
3059
3059
|
*
|
|
3060
3060
|
* @example
|
|
3061
3061
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -3159,7 +3159,7 @@ var GoogleNamespace = class {
|
|
|
3159
3159
|
*
|
|
3160
3160
|
* 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.
|
|
3161
3161
|
*
|
|
3162
|
-
* Price: $0.
|
|
3162
|
+
* Price: $0.0005 per request.
|
|
3163
3163
|
*
|
|
3164
3164
|
* @example
|
|
3165
3165
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -3335,7 +3335,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3335
3335
|
* Price: $0.0015 per request.
|
|
3336
3336
|
*
|
|
3337
3337
|
* @example
|
|
3338
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3338
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-13", checkOut: "2026-11-15", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3339
3339
|
*/
|
|
3340
3340
|
details(input, options) {
|
|
3341
3341
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3348,7 +3348,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3348
3348
|
* Price: $0.0015 per request.
|
|
3349
3349
|
*
|
|
3350
3350
|
* @example
|
|
3351
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3351
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-13", checkOut: "2026-11-15", country: "us", query: "hotels near times square new york" });
|
|
3352
3352
|
*/
|
|
3353
3353
|
search(input, options) {
|
|
3354
3354
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -4286,7 +4286,7 @@ var LinkedinNamespace = class {
|
|
|
4286
4286
|
*
|
|
4287
4287
|
* List the employees of a LinkedIn company by name or company URL, with optional job-title filtering.
|
|
4288
4288
|
*
|
|
4289
|
-
* Price: $0.
|
|
4289
|
+
* Price: $0.0032 per request plus $0.0048 per result (maximum $0.0512).
|
|
4290
4290
|
*
|
|
4291
4291
|
* @example
|
|
4292
4292
|
* const res = await client.linkedin.companyEmployees({ company: "stripe", limit: 3 });
|
|
@@ -5350,7 +5350,7 @@ var RedditNamespace = class {
|
|
|
5350
5350
|
*
|
|
5351
5351
|
* 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.
|
|
5352
5352
|
*
|
|
5353
|
-
* Price: $0.
|
|
5353
|
+
* Price: $0.00038 per request.
|
|
5354
5354
|
*
|
|
5355
5355
|
* @example
|
|
5356
5356
|
* const res = await client.reddit.avatar({ username: "spez" });
|
|
@@ -5473,7 +5473,7 @@ var RedditNamespace = class {
|
|
|
5473
5473
|
*
|
|
5474
5474
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
5475
5475
|
*
|
|
5476
|
-
* Price: $0.
|
|
5476
|
+
* Price: $0.00038 per request.
|
|
5477
5477
|
*
|
|
5478
5478
|
* @example
|
|
5479
5479
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
|
@@ -5502,7 +5502,7 @@ var RedditNamespace = class {
|
|
|
5502
5502
|
*
|
|
5503
5503
|
* Search posts within a single subreddit by query, sort, and timeframe.
|
|
5504
5504
|
*
|
|
5505
|
-
* Price: $0.
|
|
5505
|
+
* Price: $0.00038 per request.
|
|
5506
5506
|
*
|
|
5507
5507
|
* @example
|
|
5508
5508
|
* const res = await client.reddit.subredditSearch({ subreddit: "Fitness", query: "push ups" });
|
|
@@ -6772,7 +6772,7 @@ var TiktokNamespace = class {
|
|
|
6772
6772
|
*
|
|
6773
6773
|
* Find the public contact email behind a TikTok creator's profile: the address written into the bio plus any published on the site the profile links to, each labelled with where it came from. Returns the creator's profile stats and linked social accounts alongside.
|
|
6774
6774
|
*
|
|
6775
|
-
* Price: $0.
|
|
6775
|
+
* Price: $0.00187 per request plus $0 per result (maximum $0.00187).
|
|
6776
6776
|
*
|
|
6777
6777
|
* @example
|
|
6778
6778
|
* const res = await client.tiktok.profileContact({ handle: "gordonramsayofficial" });
|
|
@@ -7124,7 +7124,7 @@ var TiktokNamespace = class {
|
|
|
7124
7124
|
*
|
|
7125
7125
|
* Fetch a single TikTok video by URL with its caption and engagement counts (views, likes, comments, shares, saves).
|
|
7126
7126
|
*
|
|
7127
|
-
* Price: $0.
|
|
7127
|
+
* Price: $0.0004 per request.
|
|
7128
7128
|
*
|
|
7129
7129
|
* @example
|
|
7130
7130
|
* const res = await client.tiktok.video({ url: "https://www.tiktok.com/@mrbeast/video/7654638524729216287?_r=1&u_code=elgjf3ff8cajhk&preview_pb=0&sharer_language=en&_d=elh6737j6kjl71&share_item_id=7654638524729216287&source=h5_m" });
|
|
@@ -8128,7 +8128,7 @@ var YoutubeNamespace = class {
|
|
|
8128
8128
|
*
|
|
8129
8129
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) and the links on its About page, by handle or channel ID.
|
|
8130
8130
|
*
|
|
8131
|
-
* Price: $0.
|
|
8131
|
+
* Price: $0.0005 per request.
|
|
8132
8132
|
*
|
|
8133
8133
|
* @example
|
|
8134
8134
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -8451,7 +8451,7 @@ var YoutubeNamespace = class {
|
|
|
8451
8451
|
*
|
|
8452
8452
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
8453
8453
|
*
|
|
8454
|
-
* Price: $0.
|
|
8454
|
+
* Price: $0.0009 per request.
|
|
8455
8455
|
*
|
|
8456
8456
|
* @example
|
|
8457
8457
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|