@getanyapi/sdk 0.101.5 → 0.103.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 +30 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +366 -45
- package/dist/index.d.ts +366 -45
- package/dist/index.js +30 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1172,7 +1172,7 @@ var AmazonNamespace = class {
|
|
|
1172
1172
|
*
|
|
1173
1173
|
* List the top-ranked products of any Amazon Best Sellers category (rank, title, price, and rating) in one normalized request.
|
|
1174
1174
|
*
|
|
1175
|
-
* Price: $0.
|
|
1175
|
+
* Price: $0.00105 per request.
|
|
1176
1176
|
*
|
|
1177
1177
|
* @example
|
|
1178
1178
|
* const res = await client.amazon.bestsellers({ url: "https://www.amazon.com/gp/bestsellers/electronics", limit: 3 });
|
|
@@ -1185,7 +1185,7 @@ var AmazonNamespace = class {
|
|
|
1185
1185
|
*
|
|
1186
1186
|
* Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
|
|
1187
1187
|
*
|
|
1188
|
-
* Price: $0.
|
|
1188
|
+
* Price: $0.0013 per request.
|
|
1189
1189
|
*
|
|
1190
1190
|
* @example
|
|
1191
1191
|
* const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
|
|
@@ -1198,7 +1198,7 @@ var AmazonNamespace = class {
|
|
|
1198
1198
|
*
|
|
1199
1199
|
* Pull up to 50 customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
|
|
1200
1200
|
*
|
|
1201
|
-
* Price: $0.
|
|
1201
|
+
* Price: $0.0013 per request.
|
|
1202
1202
|
*
|
|
1203
1203
|
* @example
|
|
1204
1204
|
* const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
|
|
@@ -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-14", checkOut: "2026-11-16", limit: 3 });
|
|
1435
1435
|
*/
|
|
1436
1436
|
search(input, options) {
|
|
1437
1437
|
return this._core.run("booking.search", input, options);
|
|
@@ -1902,7 +1902,7 @@ var EbayNamespace = class {
|
|
|
1902
1902
|
*
|
|
1903
1903
|
* Fetch one eBay listing by URL and get the full offer record: price, condition, shipping, item location, seller feedback, quantity, watchers, and live auction state (bid count and end time).
|
|
1904
1904
|
*
|
|
1905
|
-
* Price: $0.
|
|
1905
|
+
* Price: $0.0012 per request.
|
|
1906
1906
|
*
|
|
1907
1907
|
* @example
|
|
1908
1908
|
* const res = await client.ebay.product({ url: "https://www.ebay.com/itm/133576802017" });
|
|
@@ -1928,7 +1928,7 @@ var EbayNamespace = class {
|
|
|
1928
1928
|
*
|
|
1929
1929
|
* Search eBay active listings by keyword with optional price-range, item-condition, listing-type, and sort filters and get title, price, condition, shipping, and seller in one normalized response.
|
|
1930
1930
|
*
|
|
1931
|
-
* Price: $0.
|
|
1931
|
+
* Price: $0.0012 per request.
|
|
1932
1932
|
*
|
|
1933
1933
|
* @example
|
|
1934
1934
|
* const res = await client.ebay.search({ query: "nintendo switch", limit: 3, sort: "price_low" });
|
|
@@ -2635,7 +2635,7 @@ var FacebookNamespace = class {
|
|
|
2635
2635
|
*
|
|
2636
2636
|
* List a Facebook page's recent posts by URL or page id with cursor pagination (text, author, publication time, permalink).
|
|
2637
2637
|
*
|
|
2638
|
-
* Price: $0.
|
|
2638
|
+
* Price: $0.0012 per request.
|
|
2639
2639
|
*
|
|
2640
2640
|
* @example
|
|
2641
2641
|
* const res = await client.facebook.profilePosts({ url: "https://www.facebook.com/nike" });
|
|
@@ -3042,7 +3042,7 @@ var GoogleNamespace = class {
|
|
|
3042
3042
|
*
|
|
3043
3043
|
* Ask Google AI Mode a prompt and receive the cited answer it generates. AI Mode composes the answer at search time, so repeat calls on one prompt can differ in wording and in which sources are cited.
|
|
3044
3044
|
*
|
|
3045
|
-
* Price: $0.
|
|
3045
|
+
* Price: $0.002 per request.
|
|
3046
3046
|
*
|
|
3047
3047
|
* @example
|
|
3048
3048
|
* const res = await client.google.aiMode({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -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.0015 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.0004 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 });
|
|
@@ -3201,7 +3201,7 @@ var GoogleNamespace = class {
|
|
|
3201
3201
|
*
|
|
3202
3202
|
* 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.
|
|
3203
3203
|
*
|
|
3204
|
-
* Price: $0.
|
|
3204
|
+
* Price: $0.002 per request.
|
|
3205
3205
|
*
|
|
3206
3206
|
* @example
|
|
3207
3207
|
* const res = await client.google.trends({ keywords: ["coffee", "tea"], geo: "US", timeframe: "12m" });
|
|
@@ -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-14", checkOut: "2026-11-16", 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-14", checkOut: "2026-11-16", 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);
|
|
@@ -4393,7 +4393,7 @@ var LinkedinNamespace = class {
|
|
|
4393
4393
|
*
|
|
4394
4394
|
* Cheap job index: title, company, location, posted date, URL. No description, salary, applicant counts, or seniority - for those use linkedin.jobs.
|
|
4395
4395
|
*
|
|
4396
|
-
* Price: $0.
|
|
4396
|
+
* Price: $0.00066 per request.
|
|
4397
4397
|
*
|
|
4398
4398
|
* @example
|
|
4399
4399
|
* const res = await client.linkedin.jobsThin({ query: "software engineer", limit: 3, location: "United States", workplaceType: "remote" });
|
|
@@ -4422,7 +4422,7 @@ var LinkedinNamespace = class {
|
|
|
4422
4422
|
*
|
|
4423
4423
|
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date).
|
|
4424
4424
|
*
|
|
4425
|
-
* Price: $0.
|
|
4425
|
+
* Price: $0.0008 per request.
|
|
4426
4426
|
*
|
|
4427
4427
|
* @example
|
|
4428
4428
|
* const res = await client.linkedin.post({ url: "https://www.linkedin.com/posts/stripe_last-week-agent-traffic-surpassed-human-activity-7470882737390940160-2Nxs" });
|
|
@@ -5418,7 +5418,7 @@ var RedditNamespace = class {
|
|
|
5418
5418
|
*
|
|
5419
5419
|
* Fetch a Reddit user's public profile (karma split, post and comment counts, bio, avatar, account age) by username.
|
|
5420
5420
|
*
|
|
5421
|
-
* Price: $0.
|
|
5421
|
+
* Price: $0.0008 per request.
|
|
5422
5422
|
*
|
|
5423
5423
|
* @example
|
|
5424
5424
|
* const res = await client.reddit.profile({ username: "spez" });
|
|
@@ -5431,7 +5431,7 @@ var RedditNamespace = class {
|
|
|
5431
5431
|
*
|
|
5432
5432
|
* Search Reddit posts across all subreddits by query.
|
|
5433
5433
|
*
|
|
5434
|
-
* Price: $0.
|
|
5434
|
+
* Price: $0.00035 per request.
|
|
5435
5435
|
*
|
|
5436
5436
|
* @example
|
|
5437
5437
|
* const res = await client.reddit.search({ query: "mechanical keyboard" });
|
|
@@ -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.00035 per request.
|
|
5506
5506
|
*
|
|
5507
5507
|
* @example
|
|
5508
5508
|
* const res = await client.reddit.subredditSearch({ subreddit: "Fitness", query: "push ups" });
|
|
@@ -5531,7 +5531,7 @@ var RedditNamespace = class {
|
|
|
5531
5531
|
*
|
|
5532
5532
|
* Get currently trending Reddit posts across all subreddits with stable cursor pagination.
|
|
5533
5533
|
*
|
|
5534
|
-
* Price: $0.
|
|
5534
|
+
* Price: $0.0003 per request.
|
|
5535
5535
|
*
|
|
5536
5536
|
* @example
|
|
5537
5537
|
* const res = await client.reddit.trendingPosts({ limit: 25 });
|
|
@@ -5610,7 +5610,7 @@ var RedfinNamespace = class {
|
|
|
5610
5610
|
*
|
|
5611
5611
|
* Fetch full details for a single Redfin home by its listing URL (price, beds, baths, square feet, address, listing agent, description and photos) as normalized JSON.
|
|
5612
5612
|
*
|
|
5613
|
-
* Price: $0.
|
|
5613
|
+
* Price: $0.0008 per request.
|
|
5614
5614
|
*
|
|
5615
5615
|
* @example
|
|
5616
5616
|
* const res = await client.redfin.property({ url: "https://www.redfin.com/TX/Austin/1819-Village-Oak-Ct-78704/home/30981993" });
|
|
@@ -6517,7 +6517,7 @@ var TiktokNamespace = class {
|
|
|
6517
6517
|
*
|
|
6518
6518
|
* Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).
|
|
6519
6519
|
*
|
|
6520
|
-
* Price: $0.
|
|
6520
|
+
* Price: $0.0012 per request.
|
|
6521
6521
|
*
|
|
6522
6522
|
* @example
|
|
6523
6523
|
* const res = await client.tiktok.adLibrarySearch({ query: "spotify" });
|
|
@@ -6546,7 +6546,7 @@ var TiktokNamespace = class {
|
|
|
6546
6546
|
*
|
|
6547
6547
|
* Search TikTok's EU Commercial Content Library by keyword or advertiser ID.
|
|
6548
6548
|
*
|
|
6549
|
-
* Price: $0.
|
|
6549
|
+
* Price: $0.0008 per request.
|
|
6550
6550
|
*
|
|
6551
6551
|
* @example
|
|
6552
6552
|
* const res = await client.tiktok.adTransparencySearch({ days: 30, limit: 20, query: "nike", region: "DE" });
|
|
@@ -6675,7 +6675,7 @@ var TiktokNamespace = class {
|
|
|
6675
6675
|
*
|
|
6676
6676
|
* List recent TikTok videos for a hashtag (creator, caption, views, likes, shares).
|
|
6677
6677
|
*
|
|
6678
|
-
* Price: $0.
|
|
6678
|
+
* Price: $0.0012 per request.
|
|
6679
6679
|
*
|
|
6680
6680
|
* @example
|
|
6681
6681
|
* const res = await client.tiktok.hashtagVideos({ hashtag: "cooking", limit: 3 });
|
|
@@ -7672,7 +7672,7 @@ var TwitterNamespace = class {
|
|
|
7672
7672
|
*
|
|
7673
7673
|
* 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.
|
|
7674
7674
|
*
|
|
7675
|
-
* Price: $0.
|
|
7675
|
+
* Price: $0.0007 per request.
|
|
7676
7676
|
*
|
|
7677
7677
|
* @example
|
|
7678
7678
|
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|
|
@@ -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.00045 per request.
|
|
8132
8132
|
*
|
|
8133
8133
|
* @example
|
|
8134
8134
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -8283,7 +8283,7 @@ var YoutubeNamespace = class {
|
|
|
8283
8283
|
*
|
|
8284
8284
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
8285
8285
|
*
|
|
8286
|
-
* Price: $0.
|
|
8286
|
+
* Price: $0.0008 per request.
|
|
8287
8287
|
*
|
|
8288
8288
|
* @example
|
|
8289
8289
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -8464,7 +8464,7 @@ var YoutubeNamespace = class {
|
|
|
8464
8464
|
*
|
|
8465
8465
|
* List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
|
|
8466
8466
|
*
|
|
8467
|
-
* Price: $0.
|
|
8467
|
+
* Price: $0.0012 per request.
|
|
8468
8468
|
*
|
|
8469
8469
|
* @example
|
|
8470
8470
|
* const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
|
@@ -8613,7 +8613,7 @@ var ZillowNamespace = class {
|
|
|
8613
8613
|
*
|
|
8614
8614
|
* Fetch one Zillow real estate agent's profile by URL: name, phone, email, brokerage, rating, review count, sales, and service areas.
|
|
8615
8615
|
*
|
|
8616
|
-
* Price: $0.
|
|
8616
|
+
* Price: $0.0008 per request.
|
|
8617
8617
|
*
|
|
8618
8618
|
* @example
|
|
8619
8619
|
* const res = await client.zillow.agent({ url: "https://www.zillow.com/profile/gregorycarlsonATX/" });
|
|
@@ -8626,7 +8626,7 @@ var ZillowNamespace = class {
|
|
|
8626
8626
|
*
|
|
8627
8627
|
* Fetch full details for a single Zillow property listing by URL (price, facts and features, photos, and price/tax history).
|
|
8628
8628
|
*
|
|
8629
|
-
* Price: $0.
|
|
8629
|
+
* Price: $0.0008 per request.
|
|
8630
8630
|
*
|
|
8631
8631
|
* @example
|
|
8632
8632
|
* const res = await client.zillow.property({ url: "https://www.zillow.com/homedetails/4510-Secure-Ln-Austin-TX-78725/83126034_zpid/" });
|
|
@@ -8639,7 +8639,7 @@ var ZillowNamespace = class {
|
|
|
8639
8639
|
*
|
|
8640
8640
|
* Search Zillow for-sale, rental, or sold listings by region-level location (city, ZIP, county, or neighborhood) with optional price, bedroom, living-area, home-type, recency, and sort filters and get matching properties (price, address, beds, baths, living area, status, Zestimate) as normalized JSON.
|
|
8641
8641
|
*
|
|
8642
|
-
* Price: $0.
|
|
8642
|
+
* Price: $0.0008 per request.
|
|
8643
8643
|
*
|
|
8644
8644
|
* @example
|
|
8645
8645
|
* const res = await client.zillow.search({ location: "Austin, TX", limit: 3, maxPrice: 900000, minBedrooms: 3, operation: "buy" });
|