@getanyapi/sdk 0.90.10 → 0.90.12

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.d.cts CHANGED
@@ -59,8 +59,9 @@ interface RequestSnapshot<T = unknown> {
59
59
  * - `suspended`: the platform has suspended the account.
60
60
  * - `unavailable`: the platform did not show this to the source: it may not exist, or it may
61
61
  * be visible only to signed-in users.
62
+ * - `too_long`: the video is too long to transcribe.
62
63
  */
63
- declare const NOT_FOUND_REASONS: readonly ["not_found", "suspended", "unavailable"];
64
+ declare const NOT_FOUND_REASONS: readonly ["not_found", "suspended", "unavailable", "too_long"];
64
65
  type NotFoundReason = (typeof NOT_FOUND_REASONS)[number] | (string & {});
65
66
  /**
66
67
  * Discriminated union on `found`. When found is false, data is null and `reason` says why
@@ -25871,7 +25872,7 @@ declare class InstagramNamespace {
25871
25872
  *
25872
25873
  * Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
25873
25874
  *
25874
- * Price: $0.0005 per request.
25875
+ * Price: $0.0008 per request.
25875
25876
  *
25876
25877
  * @example
25877
25878
  * const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -26060,7 +26061,7 @@ declare class InstagramNamespace {
26060
26061
  *
26061
26062
  * List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
26062
26063
  *
26063
- * Price: $0.00175 per request.
26064
+ * Price: $0.0024 per request.
26064
26065
  *
26065
26066
  * @example
26066
26067
  * const res = await client.instagram.similarProfiles({ handle: "nasa" });
@@ -32404,7 +32405,7 @@ declare class LinkedinNamespace {
32404
32405
  *
32405
32406
  * Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
32406
32407
  *
32407
- * Price: $0.005 per request.
32408
+ * Price: $0.004 per request.
32408
32409
  *
32409
32410
  * @example
32410
32411
  * const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
@@ -56224,7 +56225,7 @@ declare class TiktokNamespace {
56224
56225
  *
56225
56226
  * Sample TikTok's For You feed as served to a viewer in one country (caption, views, likes, comments, author). Returns a rotating sample, not a ranked chart.
56226
56227
  *
56227
- * Price: $0.0012 per request.
56228
+ * Price: $0.0008 per request.
56228
56229
  *
56229
56230
  * @example
56230
56231
  * const res = await client.tiktok.trendingFeed({ region: "US" });
package/dist/index.d.ts CHANGED
@@ -59,8 +59,9 @@ interface RequestSnapshot<T = unknown> {
59
59
  * - `suspended`: the platform has suspended the account.
60
60
  * - `unavailable`: the platform did not show this to the source: it may not exist, or it may
61
61
  * be visible only to signed-in users.
62
+ * - `too_long`: the video is too long to transcribe.
62
63
  */
63
- declare const NOT_FOUND_REASONS: readonly ["not_found", "suspended", "unavailable"];
64
+ declare const NOT_FOUND_REASONS: readonly ["not_found", "suspended", "unavailable", "too_long"];
64
65
  type NotFoundReason = (typeof NOT_FOUND_REASONS)[number] | (string & {});
65
66
  /**
66
67
  * Discriminated union on `found`. When found is false, data is null and `reason` says why
@@ -25871,7 +25872,7 @@ declare class InstagramNamespace {
25871
25872
  *
25872
25873
  * Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
25873
25874
  *
25874
- * Price: $0.0005 per request.
25875
+ * Price: $0.0008 per request.
25875
25876
  *
25876
25877
  * @example
25877
25878
  * const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -26060,7 +26061,7 @@ declare class InstagramNamespace {
26060
26061
  *
26061
26062
  * List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
26062
26063
  *
26063
- * Price: $0.00175 per request.
26064
+ * Price: $0.0024 per request.
26064
26065
  *
26065
26066
  * @example
26066
26067
  * const res = await client.instagram.similarProfiles({ handle: "nasa" });
@@ -32404,7 +32405,7 @@ declare class LinkedinNamespace {
32404
32405
  *
32405
32406
  * Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
32406
32407
  *
32407
- * Price: $0.005 per request.
32408
+ * Price: $0.004 per request.
32408
32409
  *
32409
32410
  * @example
32410
32411
  * const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
@@ -56224,7 +56225,7 @@ declare class TiktokNamespace {
56224
56225
  *
56225
56226
  * Sample TikTok's For You feed as served to a viewer in one country (caption, views, likes, comments, author). Returns a rotating sample, not a ranked chart.
56226
56227
  *
56227
- * Price: $0.0012 per request.
56228
+ * Price: $0.0008 per request.
56228
56229
  *
56229
56230
  * @example
56230
56231
  * const res = await client.tiktok.trendingFeed({ region: "US" });
package/dist/index.js CHANGED
@@ -931,7 +931,7 @@ function isRequestSnapshot(value) {
931
931
  }
932
932
 
933
933
  // src/core/types.ts
934
- var NOT_FOUND_REASONS = ["not_found", "suspended", "unavailable"];
934
+ var NOT_FOUND_REASONS = ["not_found", "suspended", "unavailable", "too_long"];
935
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.";
936
936
  function unwrap(result) {
937
937
  const output = result.output;
@@ -3723,7 +3723,7 @@ var InstagramNamespace = class {
3723
3723
  *
3724
3724
  * Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
3725
3725
  *
3726
- * Price: $0.0005 per request.
3726
+ * Price: $0.0008 per request.
3727
3727
  *
3728
3728
  * @example
3729
3729
  * const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -3985,7 +3985,7 @@ var InstagramNamespace = class {
3985
3985
  *
3986
3986
  * List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
3987
3987
  *
3988
- * Price: $0.00175 per request.
3988
+ * Price: $0.0024 per request.
3989
3989
  *
3990
3990
  * @example
3991
3991
  * const res = await client.instagram.similarProfiles({ handle: "nasa" });
@@ -4562,7 +4562,7 @@ var LinkedinNamespace = class {
4562
4562
  *
4563
4563
  * Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
4564
4564
  *
4565
- * Price: $0.005 per request.
4565
+ * Price: $0.004 per request.
4566
4566
  *
4567
4567
  * @example
4568
4568
  * const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
@@ -7021,7 +7021,7 @@ var TiktokNamespace = class {
7021
7021
  *
7022
7022
  * Sample TikTok's For You feed as served to a viewer in one country (caption, views, likes, comments, author). Returns a rotating sample, not a ranked chart.
7023
7023
  *
7024
- * Price: $0.0012 per request.
7024
+ * Price: $0.0008 per request.
7025
7025
  *
7026
7026
  * @example
7027
7027
  * const res = await client.tiktok.trendingFeed({ region: "US" });