@getanyapi/sdk 0.61.2 → 0.64.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/README.md +4 -3
- package/dist/index.cjs +73 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +530 -218
- package/dist/index.d.ts +530 -218
- package/dist/index.js +73 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -187,9 +187,7 @@ async function agentSignup(options = {}) {
|
|
|
187
187
|
const parsed = JSON.parse(text);
|
|
188
188
|
return {
|
|
189
189
|
secret: parsed.secret,
|
|
190
|
-
capUsd: parsed.capUsd
|
|
191
|
-
claimToken: parsed.claimToken,
|
|
192
|
-
claimUrl: parsed.claimUrl
|
|
190
|
+
capUsd: parsed.capUsd
|
|
193
191
|
};
|
|
194
192
|
}
|
|
195
193
|
|
|
@@ -933,7 +931,7 @@ function isRequestSnapshot(value) {
|
|
|
933
931
|
}
|
|
934
932
|
|
|
935
933
|
// src/core/types.ts
|
|
936
|
-
var NOT_FOUND_REASONS = ["not_found", "suspended"];
|
|
934
|
+
var NOT_FOUND_REASONS = ["not_found", "suspended", "unavailable"];
|
|
937
935
|
var OUTPUT_NOT_RETAINED = "the run output was not retained: this response is an idempotent replay whose stored payload has expired or was too large to store, so only the run metadata came back. Re-run the request without the idempotency key (or with a fresh one) to fetch the data again.";
|
|
938
936
|
function unwrap(result) {
|
|
939
937
|
const output = result.output;
|
|
@@ -2705,7 +2703,7 @@ var FacebookNamespace = class {
|
|
|
2705
2703
|
*
|
|
2706
2704
|
* Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).
|
|
2707
2705
|
*
|
|
2708
|
-
* Price: $0 per request plus $0.
|
|
2706
|
+
* Price: $0.00006 per request plus $0.0033 per result (maximum $0.0661).
|
|
2709
2707
|
*
|
|
2710
2708
|
* @example
|
|
2711
2709
|
* const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
|
|
@@ -3394,7 +3392,7 @@ var InstagramNamespace = class {
|
|
|
3394
3392
|
*
|
|
3395
3393
|
* List Instagram reels that use a given audio track by audio id.
|
|
3396
3394
|
*
|
|
3397
|
-
* Price: $0.
|
|
3395
|
+
* Price: $0.0011 per request.
|
|
3398
3396
|
*
|
|
3399
3397
|
* @example
|
|
3400
3398
|
* const res = await client.instagram.audioReels({ audioId: "1392969992841787" });
|
|
@@ -3436,7 +3434,7 @@ var InstagramNamespace = class {
|
|
|
3436
3434
|
*
|
|
3437
3435
|
* List the replies to an Instagram comment with cursor pagination (text, author, likes).
|
|
3438
3436
|
*
|
|
3439
|
-
* Price: $0.
|
|
3437
|
+
* Price: $0.0011 per request.
|
|
3440
3438
|
*
|
|
3441
3439
|
* @example
|
|
3442
3440
|
* const res = await client.instagram.commentReplies({ commentId: "18126632131325044", url: "https://www.instagram.com/p/C8rKmYvsrck/" });
|
|
@@ -3578,7 +3576,7 @@ var InstagramNamespace = class {
|
|
|
3578
3576
|
*
|
|
3579
3577
|
* Instagram's own top-ranked posts for a hashtag, read from its live hashtag feed rather than a web search index, with view, like, and comment counts. Reels-heavy and engagement-ranked, so it answers what is performing on a tag right now. For older relevance-ranked results with date and media-type filters use instagram.search_hashtag; for the chronological feed use instagram.hashtag_recent_posts.
|
|
3580
3578
|
*
|
|
3581
|
-
* Price: $0.
|
|
3579
|
+
* Price: $0.0011 per request.
|
|
3582
3580
|
*
|
|
3583
3581
|
* @example
|
|
3584
3582
|
* const res = await client.instagram.hashtagTopPosts({ hashtag: "skincare" });
|
|
@@ -3730,7 +3728,7 @@ var InstagramNamespace = class {
|
|
|
3730
3728
|
*
|
|
3731
3729
|
* Look up the contact email and phone number an Instagram creator or business publishes on its profile, including the address behind the profile's Email button that public profile lookups do not return.
|
|
3732
3730
|
*
|
|
3733
|
-
* Price: $0.
|
|
3731
|
+
* Price: $0.00175 per request.
|
|
3734
3732
|
*
|
|
3735
3733
|
* @example
|
|
3736
3734
|
* const res = await client.instagram.profileContact({ handle: "eminenceorganics" });
|
|
@@ -3756,7 +3754,7 @@ var InstagramNamespace = class {
|
|
|
3756
3754
|
*
|
|
3757
3755
|
* Search Instagram Reels by keyword against Instagram's own reels search and get matching reels with view, like and comment counts, caption, creator and duration. Results are relevance-ranked, not chronological, and a page can repeat reels from the page before it. For a web-search-index view of the same keyword, with a recency filter and numbered pages, use instagram.web_reels_search.
|
|
3758
3756
|
*
|
|
3759
|
-
* Price: $0.
|
|
3757
|
+
* Price: $0.0011 per request.
|
|
3760
3758
|
*
|
|
3761
3759
|
* @example
|
|
3762
3760
|
* const res = await client.instagram.reelsSearch({ query: "travel" });
|
|
@@ -3793,6 +3791,32 @@ var InstagramNamespace = class {
|
|
|
3793
3791
|
search(input, options) {
|
|
3794
3792
|
return this._core.run("instagram.search", input, options);
|
|
3795
3793
|
}
|
|
3794
|
+
/**
|
|
3795
|
+
* Instagram Search Followers
|
|
3796
|
+
*
|
|
3797
|
+
* Search the followers of a public Instagram account by name or username, using Instagram's own follower search. On smaller accounts it searches the whole follower list and returns close matches ranked by Instagram. On large accounts Instagram does not support searching followers, so the result is the account's most recent followers instead, whatever the query. Returns usernames, names, and profile details.
|
|
3798
|
+
*
|
|
3799
|
+
* Price: $0.0022 per request.
|
|
3800
|
+
*
|
|
3801
|
+
* @example
|
|
3802
|
+
* const res = await client.instagram.searchFollowers({ query: "john", username: "milada2788" });
|
|
3803
|
+
*/
|
|
3804
|
+
searchFollowers(input, options) {
|
|
3805
|
+
return this._core.run("instagram.search_followers", input, options);
|
|
3806
|
+
}
|
|
3807
|
+
/**
|
|
3808
|
+
* Instagram Search Following
|
|
3809
|
+
*
|
|
3810
|
+
* Search the accounts a public Instagram user follows by name or username. Matching is Instagram's own loose search, so results are close matches ranked by Instagram and some may not contain your exact word. Returns usernames, names, and profile details.
|
|
3811
|
+
*
|
|
3812
|
+
* Price: $0.0022 per request.
|
|
3813
|
+
*
|
|
3814
|
+
* @example
|
|
3815
|
+
* const res = await client.instagram.searchFollowing({ query: "skin", username: "moogooskincare" });
|
|
3816
|
+
*/
|
|
3817
|
+
searchFollowing(input, options) {
|
|
3818
|
+
return this._core.run("instagram.search_following", input, options);
|
|
3819
|
+
}
|
|
3796
3820
|
/**
|
|
3797
3821
|
* Instagram Hashtag Search
|
|
3798
3822
|
*
|
|
@@ -3827,7 +3851,7 @@ var InstagramNamespace = class {
|
|
|
3827
3851
|
*
|
|
3828
3852
|
* Search Instagram locations by keyword and return each place's id, name, address and coordinates.
|
|
3829
3853
|
*
|
|
3830
|
-
* Price: $0.
|
|
3854
|
+
* Price: $0.0011 per request.
|
|
3831
3855
|
*
|
|
3832
3856
|
* @example
|
|
3833
3857
|
* const res = await client.instagram.searchLocations({ query: "Eiffel Tower" });
|
|
@@ -3911,7 +3935,7 @@ var InstagramNamespace = class {
|
|
|
3911
3935
|
*
|
|
3912
3936
|
* Fetch a public Instagram account's currently live stories with media, type, dimensions, posting time, and 24-hour expiry by username.
|
|
3913
3937
|
*
|
|
3914
|
-
* Price: $0.
|
|
3938
|
+
* Price: $0.0022 per request.
|
|
3915
3939
|
*
|
|
3916
3940
|
* @example
|
|
3917
3941
|
* const res = await client.instagram.storiesFull({ username: "natgeo" });
|
|
@@ -4050,7 +4074,7 @@ var InstagramNamespace = class {
|
|
|
4050
4074
|
*
|
|
4051
4075
|
* List the posts a public Instagram account has reposted to its feed, with cursor pagination.
|
|
4052
4076
|
*
|
|
4053
|
-
* Price: $0.
|
|
4077
|
+
* Price: $0.0011 per request.
|
|
4054
4078
|
*
|
|
4055
4079
|
* @example
|
|
4056
4080
|
* const res = await client.instagram.userReposts({ userId: "787132" });
|
|
@@ -4407,7 +4431,7 @@ var LinkedinNamespace = class {
|
|
|
4407
4431
|
*
|
|
4408
4432
|
* 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.
|
|
4409
4433
|
*
|
|
4410
|
-
* Price: $0.
|
|
4434
|
+
* Price: $0.0012 per request.
|
|
4411
4435
|
*
|
|
4412
4436
|
* @example
|
|
4413
4437
|
* const res = await client.linkedin.profileThin({ url: "https://www.linkedin.com/in/williamhgates" });
|
|
@@ -4564,7 +4588,7 @@ var MapsNamespace = class {
|
|
|
4564
4588
|
*
|
|
4565
4589
|
* Fetch up to 100 Google Maps reviews for a place by place ID, sorted the way you need, in one normalized response.
|
|
4566
4590
|
*
|
|
4567
|
-
* Price: $0.
|
|
4591
|
+
* Price: $0.0035 per request.
|
|
4568
4592
|
*
|
|
4569
4593
|
* @example
|
|
4570
4594
|
* const res = await client.maps.reviews({ placeId: "ChIJN1t_tDeuEmsRUsoyG83frY4", limit: 3 });
|
|
@@ -5407,12 +5431,25 @@ var RedfinNamespace = class {
|
|
|
5407
5431
|
this._core = _core;
|
|
5408
5432
|
}
|
|
5409
5433
|
_core;
|
|
5434
|
+
/**
|
|
5435
|
+
* Redfin Property
|
|
5436
|
+
*
|
|
5437
|
+
* 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.
|
|
5438
|
+
*
|
|
5439
|
+
* Price: $0.0005 per request.
|
|
5440
|
+
*
|
|
5441
|
+
* @example
|
|
5442
|
+
* const res = await client.redfin.property({ url: "https://www.redfin.com/TX/Austin/1819-Village-Oak-Ct-78704/home/30981993" });
|
|
5443
|
+
*/
|
|
5444
|
+
property(input, options) {
|
|
5445
|
+
return this._core.run("redfin.property", input, options);
|
|
5446
|
+
}
|
|
5410
5447
|
/**
|
|
5411
5448
|
* Redfin Search
|
|
5412
5449
|
*
|
|
5413
5450
|
* Run a Redfin map search by URL and get matching home listings (price, address, beds, baths, status) as normalized JSON.
|
|
5414
5451
|
*
|
|
5415
|
-
* Price: $0.
|
|
5452
|
+
* Price: $0.0008 per request.
|
|
5416
5453
|
*
|
|
5417
5454
|
* @example
|
|
5418
5455
|
* const res = await client.redfin.search({ url: "https://www.redfin.com/city/30818/TX/Austin", limit: 3 });
|
|
@@ -6406,7 +6443,7 @@ var TiktokNamespace = class {
|
|
|
6406
6443
|
*
|
|
6407
6444
|
* List the followers of a TikTok account by username, returning each follower's profile basics.
|
|
6408
6445
|
*
|
|
6409
|
-
* Price: $0.
|
|
6446
|
+
* Price: $0.00095 per request.
|
|
6410
6447
|
*
|
|
6411
6448
|
* @example
|
|
6412
6449
|
* const res = await client.tiktok.followers({ handle: "stoolpresidente" });
|
|
@@ -6435,7 +6472,7 @@ var TiktokNamespace = class {
|
|
|
6435
6472
|
*
|
|
6436
6473
|
* List the accounts a TikTok user follows (handle, display name, follower count, bio) by username.
|
|
6437
6474
|
*
|
|
6438
|
-
* Price: $0.
|
|
6475
|
+
* Price: $0.00095 per request.
|
|
6439
6476
|
*
|
|
6440
6477
|
* @example
|
|
6441
6478
|
* const res = await client.tiktok.following({ handle: "stoolpresidente" });
|
|
@@ -6745,7 +6782,7 @@ var TiktokNamespace = class {
|
|
|
6745
6782
|
*
|
|
6746
6783
|
* Get the search terms TikTok suggests for a keyword, each with its language and relative weight - the queries real TikTok users type around your topic.
|
|
6747
6784
|
*
|
|
6748
|
-
* Price: $0.
|
|
6785
|
+
* Price: $0.00095 per request.
|
|
6749
6786
|
*
|
|
6750
6787
|
* @example
|
|
6751
6788
|
* const res = await client.tiktok.searchSuggestions({ query: "protein powder" });
|
|
@@ -7012,7 +7049,7 @@ var TiktokShopNamespace = class {
|
|
|
7012
7049
|
*
|
|
7013
7050
|
* Fetch TikTok Shop product details (title, price, sales, seller, and ratings) from a product URL.
|
|
7014
7051
|
*
|
|
7015
|
-
* Price: $0.
|
|
7052
|
+
* Price: $0.00095 per request.
|
|
7016
7053
|
*
|
|
7017
7054
|
* @example
|
|
7018
7055
|
* const res = await client.tiktokShop.product({ url: "https://www.tiktok.com/shop/pdp/goli-ashwagandha-gummies-with-vitamin-d-ksm-66-vegan-non-gmo/1729587769570529799" });
|
|
@@ -7020,25 +7057,12 @@ var TiktokShopNamespace = class {
|
|
|
7020
7057
|
product(input, options) {
|
|
7021
7058
|
return this._core.run("tiktok_shop.product", input, options);
|
|
7022
7059
|
}
|
|
7023
|
-
/**
|
|
7024
|
-
* TikTok Shop Product Full
|
|
7025
|
-
*
|
|
7026
|
-
* Deep TikTok Shop product record from a product URL: affiliate commission rate, units sold and GMV over the last 30 days and lifetime, stock, rating, review count, category tree, listing date, and the seller's own sales totals.
|
|
7027
|
-
*
|
|
7028
|
-
* Price: $0.022 per request plus $0 per result (maximum $0.022).
|
|
7029
|
-
*
|
|
7030
|
-
* @example
|
|
7031
|
-
* const res = await client.tiktokShop.productFull({ url: "https://www.tiktok.com/shop/pdp/1729527313880355335" });
|
|
7032
|
-
*/
|
|
7033
|
-
productFull(input, options) {
|
|
7034
|
-
return this._core.run("tiktok_shop.product_full", input, options);
|
|
7035
|
-
}
|
|
7036
7060
|
/**
|
|
7037
7061
|
* TikTok Shop Product Reviews
|
|
7038
7062
|
*
|
|
7039
7063
|
* Fetch customer reviews for a TikTok Shop product by URL (rating, text, reviewer, country, and verified-purchase flag).
|
|
7040
7064
|
*
|
|
7041
|
-
* Price: $0.
|
|
7065
|
+
* Price: $0.00095 per request.
|
|
7042
7066
|
*
|
|
7043
7067
|
* @example
|
|
7044
7068
|
* const res = await client.tiktokShop.productReviews({ url: "https://www.tiktok.com/shop/pdp/cat-nail-clipper-by-potaroma-adjustable-sizes-built-in-file-safe-for-kittens-cats/1731578642912612516" });
|
|
@@ -7051,7 +7075,7 @@ var TiktokShopNamespace = class {
|
|
|
7051
7075
|
*
|
|
7052
7076
|
* Search TikTok Shop products by keyword across 15 countries: price, sales, rating, and seller info per product, in one normalized response.
|
|
7053
7077
|
*
|
|
7054
|
-
* Price: $0.
|
|
7078
|
+
* Price: $0.00095 per request.
|
|
7055
7079
|
*
|
|
7056
7080
|
* @example
|
|
7057
7081
|
* const res = await client.tiktokShop.search({ query: "phone case", limit: 3 });
|
|
@@ -7064,7 +7088,7 @@ var TiktokShopNamespace = class {
|
|
|
7064
7088
|
*
|
|
7065
7089
|
* Get TikTok Shop search autocomplete terms for a keyword: the long-tail queries shoppers actually type, for keyword and demand research.
|
|
7066
7090
|
*
|
|
7067
|
-
* Price: $0.
|
|
7091
|
+
* Price: $0.00095 per request.
|
|
7068
7092
|
*
|
|
7069
7093
|
* @example
|
|
7070
7094
|
* const res = await client.tiktokShop.searchSuggestions({ query: "ashwagandha gummies", country: "US" });
|
|
@@ -8318,6 +8342,19 @@ var ZillowNamespace = class {
|
|
|
8318
8342
|
this._core = _core;
|
|
8319
8343
|
}
|
|
8320
8344
|
_core;
|
|
8345
|
+
/**
|
|
8346
|
+
* Zillow Agent
|
|
8347
|
+
*
|
|
8348
|
+
* Fetch one Zillow real estate agent's profile by URL: name, phone, email, brokerage, rating, review count, sales, and service areas.
|
|
8349
|
+
*
|
|
8350
|
+
* Price: $0.0005 per request.
|
|
8351
|
+
*
|
|
8352
|
+
* @example
|
|
8353
|
+
* const res = await client.zillow.agent({ url: "https://www.zillow.com/profile/gregorycarlsonATX/" });
|
|
8354
|
+
*/
|
|
8355
|
+
agent(input, options) {
|
|
8356
|
+
return this._core.run("zillow.agent", input, options);
|
|
8357
|
+
}
|
|
8321
8358
|
/**
|
|
8322
8359
|
* Zillow Property
|
|
8323
8360
|
*
|