@getanyapi/sdk 0.15.1 → 0.16.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 +42 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +698 -17
- package/dist/index.d.ts +698 -17
- package/dist/index.js +42 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1004,7 +1004,7 @@ var AmazonNamespace = class {
|
|
|
1004
1004
|
*
|
|
1005
1005
|
* Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
|
|
1006
1006
|
*
|
|
1007
|
-
* Price: $0.
|
|
1007
|
+
* Price: $0.0018 per request.
|
|
1008
1008
|
*
|
|
1009
1009
|
* @example
|
|
1010
1010
|
* const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
|
|
@@ -3118,7 +3118,7 @@ var LinkedinNamespace = class {
|
|
|
3118
3118
|
*
|
|
3119
3119
|
* Cheap job index: title, company, location, posted date, URL. No description, salary, applicant counts, or seniority - for those use linkedin.jobs.
|
|
3120
3120
|
*
|
|
3121
|
-
* Price: $0.
|
|
3121
|
+
* Price: $0.0009 per request.
|
|
3122
3122
|
*
|
|
3123
3123
|
* @example
|
|
3124
3124
|
* const res = await client.linkedin.jobsThin({ query: "software engineer", limit: 3, location: "United States", workplaceType: "remote" });
|
|
@@ -3131,7 +3131,7 @@ var LinkedinNamespace = class {
|
|
|
3131
3131
|
*
|
|
3132
3132
|
* Fetch a single LinkedIn post or article by URL (title, text, author, like and comment counts, publish date).
|
|
3133
3133
|
*
|
|
3134
|
-
* Price: $0.
|
|
3134
|
+
* Price: $0.0009 per request.
|
|
3135
3135
|
*
|
|
3136
3136
|
* @example
|
|
3137
3137
|
* const res = await client.linkedin.post({ url: "https://www.linkedin.com/posts/stripe_last-week-agent-traffic-surpassed-human-activity-7470882737390940160-2Nxs" });
|
|
@@ -3191,12 +3191,38 @@ var LinkedinNamespace = class {
|
|
|
3191
3191
|
profile(input, options) {
|
|
3192
3192
|
return this._core.run("linkedin.profile", input, options);
|
|
3193
3193
|
}
|
|
3194
|
+
/**
|
|
3195
|
+
* LinkedIn Profile Posts (full)
|
|
3196
|
+
*
|
|
3197
|
+
* Fetch recent public LinkedIn profile posts with enriched author, engagement, article, newsletter, media, annotation, repost, and social activity details.
|
|
3198
|
+
*
|
|
3199
|
+
* Price: $0.00006 per request plus $0.00184 per result (maximum $0.184).
|
|
3200
|
+
*
|
|
3201
|
+
* @example
|
|
3202
|
+
* const res = await client.linkedin.profilePostsFull({ url: "https://www.linkedin.com/in/williamhgates/", limit: 10 });
|
|
3203
|
+
*/
|
|
3204
|
+
profilePostsFull(input, options) {
|
|
3205
|
+
return this._core.run("linkedin.profile_posts_full", input, options);
|
|
3206
|
+
}
|
|
3207
|
+
/**
|
|
3208
|
+
* LinkedIn Profile Posts (basic)
|
|
3209
|
+
*
|
|
3210
|
+
* Fetch recent public LinkedIn profile posts with portable identity, author, engagement, article, image, video, and repost fields.
|
|
3211
|
+
*
|
|
3212
|
+
* Price: $0 per request plus $0.00137 per result (maximum $0.137).
|
|
3213
|
+
*
|
|
3214
|
+
* @example
|
|
3215
|
+
* const res = await client.linkedin.profilePostsThin({ url: "https://www.linkedin.com/in/williamhgates/", limit: 10 });
|
|
3216
|
+
*/
|
|
3217
|
+
profilePostsThin(input, options) {
|
|
3218
|
+
return this._core.run("linkedin.profile_posts_thin", input, options);
|
|
3219
|
+
}
|
|
3194
3220
|
/**
|
|
3195
3221
|
* LinkedIn Profile (basic)
|
|
3196
3222
|
*
|
|
3197
3223
|
* 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.
|
|
3198
3224
|
*
|
|
3199
|
-
* Price: $0.
|
|
3225
|
+
* Price: $0.00144 per request.
|
|
3200
3226
|
*
|
|
3201
3227
|
* @example
|
|
3202
3228
|
* const res = await client.linkedin.profileThin({ url: "https://www.linkedin.com/in/williamhgates" });
|
|
@@ -3494,7 +3520,7 @@ var RedditNamespace = class {
|
|
|
3494
3520
|
*
|
|
3495
3521
|
* Fetch a single Reddit post by URL, including its full body text, score, comment count, upvote ratio, and subreddit, as normalized JSON.
|
|
3496
3522
|
*
|
|
3497
|
-
* Price: $0.
|
|
3523
|
+
* Price: $0.0009 per request.
|
|
3498
3524
|
*
|
|
3499
3525
|
* @example
|
|
3500
3526
|
* const res = await client.reddit.post({ url: "https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/" });
|
|
@@ -3562,7 +3588,7 @@ var RedditNamespace = class {
|
|
|
3562
3588
|
*
|
|
3563
3589
|
* Search Reddit posts across all subreddits by query.
|
|
3564
3590
|
*
|
|
3565
|
-
* Price: $0.
|
|
3591
|
+
* Price: $0.0009 per request.
|
|
3566
3592
|
*
|
|
3567
3593
|
* @example
|
|
3568
3594
|
* const res = await client.reddit.search({ query: "mechanical keyboard" });
|
|
@@ -3604,7 +3630,7 @@ var RedditNamespace = class {
|
|
|
3604
3630
|
*
|
|
3605
3631
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
3606
3632
|
*
|
|
3607
|
-
* Price: $0.
|
|
3633
|
+
* Price: $0.0009 per request.
|
|
3608
3634
|
*
|
|
3609
3635
|
* @example
|
|
3610
3636
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
|
@@ -3704,7 +3730,7 @@ var RedditNamespace = class {
|
|
|
3704
3730
|
*
|
|
3705
3731
|
* List a Reddit user's posts by username, sorted by new, top, hot, or controversial, with cursor pagination.
|
|
3706
3732
|
*
|
|
3707
|
-
* Price: $0.
|
|
3733
|
+
* Price: $0.0009 per request.
|
|
3708
3734
|
*
|
|
3709
3735
|
* @example
|
|
3710
3736
|
* const res = await client.reddit.userPosts({ username: "spez" });
|
|
@@ -4508,7 +4534,7 @@ var TiktokNamespace = class {
|
|
|
4508
4534
|
*
|
|
4509
4535
|
* List recent TikTok videos for a hashtag (creator, caption, views, likes, shares).
|
|
4510
4536
|
*
|
|
4511
|
-
* Price: $0.
|
|
4537
|
+
* Price: $0.00144 per request.
|
|
4512
4538
|
*
|
|
4513
4539
|
* @example
|
|
4514
4540
|
* const res = await client.tiktok.hashtagVideos({ hashtag: "cooking", limit: 3 });
|
|
@@ -4534,7 +4560,7 @@ var TiktokNamespace = class {
|
|
|
4534
4560
|
*
|
|
4535
4561
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
4536
4562
|
*
|
|
4537
|
-
* Price: $0.
|
|
4563
|
+
* Price: $0.0009 per request.
|
|
4538
4564
|
*
|
|
4539
4565
|
* @example
|
|
4540
4566
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -4728,7 +4754,7 @@ var TiktokNamespace = class {
|
|
|
4728
4754
|
*
|
|
4729
4755
|
* Fetch a single TikTok video by URL with its caption and engagement counts (views, likes, comments, shares, saves).
|
|
4730
4756
|
*
|
|
4731
|
-
* Price: $0.
|
|
4757
|
+
* Price: $0.0009 per request.
|
|
4732
4758
|
*
|
|
4733
4759
|
* @example
|
|
4734
4760
|
* 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" });
|
|
@@ -4741,7 +4767,7 @@ var TiktokNamespace = class {
|
|
|
4741
4767
|
*
|
|
4742
4768
|
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
|
|
4743
4769
|
*
|
|
4744
|
-
* Price: $0.
|
|
4770
|
+
* Price: $0.00144 per request.
|
|
4745
4771
|
*
|
|
4746
4772
|
* @example
|
|
4747
4773
|
* const res = await client.tiktok.videoComments({ url: "https://www.tiktok.com/@zachking/video/7650468599424945422?_r=1&u_code=f0hj7d780760m9&preview_pb=0&sharer_language=en&_d=f0hj7blh067h71&share_item_id=7650468599424945422&source=h5_m" });
|
|
@@ -5517,7 +5543,7 @@ var YoutubeNamespace = class {
|
|
|
5517
5543
|
*
|
|
5518
5544
|
* Fetch a YouTube channel's stats (subscribers, video count, total views, description) by handle or channel ID.
|
|
5519
5545
|
*
|
|
5520
|
-
* Price: $0.
|
|
5546
|
+
* Price: $0.0009 per request.
|
|
5521
5547
|
*
|
|
5522
5548
|
* @example
|
|
5523
5549
|
* const res = await client.youtube.channel({ handle: "@mkbhd" });
|
|
@@ -5646,7 +5672,7 @@ var YoutubeNamespace = class {
|
|
|
5646
5672
|
*
|
|
5647
5673
|
* List a YouTube channel's videos by handle or channel ID with cursor pagination (title, views, length, publish time).
|
|
5648
5674
|
*
|
|
5649
|
-
* Price: $0.
|
|
5675
|
+
* Price: $0.0009 per request.
|
|
5650
5676
|
*
|
|
5651
5677
|
* @example
|
|
5652
5678
|
* const res = await client.youtube.channelVideos({ handle: "@mkbhd" });
|
|
@@ -5714,7 +5740,7 @@ var YoutubeNamespace = class {
|
|
|
5714
5740
|
*
|
|
5715
5741
|
* Search YouTube and get matching videos (title, channel, views, length, publish time) as normalized JSON.
|
|
5716
5742
|
*
|
|
5717
|
-
* Price: $0.
|
|
5743
|
+
* Price: $0.0009 per request.
|
|
5718
5744
|
*
|
|
5719
5745
|
* @example
|
|
5720
5746
|
* const res = await client.youtube.search({ query: "how to cook rice" });
|
|
@@ -5918,7 +5944,7 @@ var ZillowNamespace = class {
|
|
|
5918
5944
|
*
|
|
5919
5945
|
* Fetch full details for a single Zillow property listing by URL (price, facts and features, photos, and price/tax history).
|
|
5920
5946
|
*
|
|
5921
|
-
* Price: $0 per request
|
|
5947
|
+
* Price: $0.0009 per request.
|
|
5922
5948
|
*
|
|
5923
5949
|
* @example
|
|
5924
5950
|
* const res = await client.zillow.property({ url: "https://www.zillow.com/homedetails/4510-Secure-Ln-Austin-TX-78725/83126034_zpid/" });
|