@getanyapi/sdk 0.154.5 → 0.155.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.d.cts CHANGED
@@ -28361,9 +28361,9 @@ interface InstagramProfileData {
28361
28361
  */
28362
28362
  bioLinks?: InstagramProfileBioLink[];
28363
28363
  /**
28364
- * Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category.
28364
+ * Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category. Null when the serving source does not report it; name category in requireFields to get it.
28365
28365
  */
28366
- category?: string;
28366
+ category?: string | null;
28367
28367
  /**
28368
28368
  * The contact button Instagram shows on the profile, for example CALL, TEXT, EMAIL, or UNKNOWN. Absent when the account exposes no contact button. Instagram no longer publishes the underlying email or phone number to unauthenticated callers.
28369
28369
  */
@@ -28394,9 +28394,9 @@ interface InstagramProfileData {
28394
28394
  */
28395
28395
  highlightsCount?: number | null;
28396
28396
  /**
28397
- * Whether Instagram flags the account as a business account.
28397
+ * Whether Instagram flags the account as a business account. Null when the serving source does not report it; name isBusiness in requireFields to get it.
28398
28398
  */
28399
- isBusiness?: boolean;
28399
+ isBusiness?: boolean | null;
28400
28400
  /**
28401
28401
  * The account's most recent posts, up to about 12. Best-effort: returned when you name latestPosts in requireFields, or whenever the serving source has them, and absent otherwise. Each post has the same fields as instagram.user_posts returns, except that verified, likes, comments and createdUtc are absent when the source does not report them. Empty when the account is private or has not posted.
28402
28402
  */
@@ -30111,7 +30111,7 @@ interface InstagramTaggedPostsInput {
30111
30111
  /**
30112
30112
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `audioId`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
30113
30113
  */
30114
- requireFields?: ("audioId" | "carouselCount")[];
30114
+ requireFields?: ("audioId" | "carouselCount" | "reshares")[];
30115
30115
  /**
30116
30116
  * Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
30117
30117
  */
@@ -31788,7 +31788,7 @@ declare class InstagramNamespace {
31788
31788
  *
31789
31789
  * Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
31790
31790
  *
31791
- * Price: $0.0009 per request.
31791
+ * Price: $0.00056 per request.
31792
31792
  *
31793
31793
  * @example
31794
31794
  * const res = await client.instagram.profile({ handle: "nasa" });
@@ -32003,7 +32003,7 @@ declare class InstagramNamespace {
32003
32003
  *
32004
32004
  * List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
32005
32005
  *
32006
- * Price: $0.00188 per request.
32006
+ * Price: $0.00135 per request.
32007
32007
  *
32008
32008
  * @example
32009
32009
  * const res = await client.instagram.taggedPosts({ handle: "nasa" });
package/dist/index.d.ts CHANGED
@@ -28361,9 +28361,9 @@ interface InstagramProfileData {
28361
28361
  */
28362
28362
  bioLinks?: InstagramProfileBioLink[];
28363
28363
  /**
28364
- * Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category.
28364
+ * Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category. Null when the serving source does not report it; name category in requireFields to get it.
28365
28365
  */
28366
- category?: string;
28366
+ category?: string | null;
28367
28367
  /**
28368
28368
  * The contact button Instagram shows on the profile, for example CALL, TEXT, EMAIL, or UNKNOWN. Absent when the account exposes no contact button. Instagram no longer publishes the underlying email or phone number to unauthenticated callers.
28369
28369
  */
@@ -28394,9 +28394,9 @@ interface InstagramProfileData {
28394
28394
  */
28395
28395
  highlightsCount?: number | null;
28396
28396
  /**
28397
- * Whether Instagram flags the account as a business account.
28397
+ * Whether Instagram flags the account as a business account. Null when the serving source does not report it; name isBusiness in requireFields to get it.
28398
28398
  */
28399
- isBusiness?: boolean;
28399
+ isBusiness?: boolean | null;
28400
28400
  /**
28401
28401
  * The account's most recent posts, up to about 12. Best-effort: returned when you name latestPosts in requireFields, or whenever the serving source has them, and absent otherwise. Each post has the same fields as instagram.user_posts returns, except that verified, likes, comments and createdUtc are absent when the source does not report them. Empty when the account is private or has not posted.
28402
28402
  */
@@ -30111,7 +30111,7 @@ interface InstagramTaggedPostsInput {
30111
30111
  /**
30112
30112
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `audioId`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
30113
30113
  */
30114
- requireFields?: ("audioId" | "carouselCount")[];
30114
+ requireFields?: ("audioId" | "carouselCount" | "reshares")[];
30115
30115
  /**
30116
30116
  * Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
30117
30117
  */
@@ -31788,7 +31788,7 @@ declare class InstagramNamespace {
31788
31788
  *
31789
31789
  * Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
31790
31790
  *
31791
- * Price: $0.0009 per request.
31791
+ * Price: $0.00056 per request.
31792
31792
  *
31793
31793
  * @example
31794
31794
  * const res = await client.instagram.profile({ handle: "nasa" });
@@ -32003,7 +32003,7 @@ declare class InstagramNamespace {
32003
32003
  *
32004
32004
  * List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
32005
32005
  *
32006
- * Price: $0.00188 per request.
32006
+ * Price: $0.00135 per request.
32007
32007
  *
32008
32008
  * @example
32009
32009
  * const res = await client.instagram.taggedPosts({ handle: "nasa" });
package/dist/index.js CHANGED
@@ -4399,7 +4399,7 @@ var InstagramNamespace = class {
4399
4399
  *
4400
4400
  * Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
4401
4401
  *
4402
- * Price: $0.0009 per request.
4402
+ * Price: $0.00056 per request.
4403
4403
  *
4404
4404
  * @example
4405
4405
  * const res = await client.instagram.profile({ handle: "nasa" });
@@ -4684,7 +4684,7 @@ var InstagramNamespace = class {
4684
4684
  *
4685
4685
  * List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
4686
4686
  *
4687
- * Price: $0.00188 per request.
4687
+ * Price: $0.00135 per request.
4688
4688
  *
4689
4689
  * @example
4690
4690
  * const res = await client.instagram.taggedPosts({ handle: "nasa" });