@getanyapi/sdk 0.182.0 → 0.183.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
@@ -32691,7 +32691,7 @@ declare class InstagramNamespace {
32691
32691
  *
32692
32692
  * List the related profiles Instagram's website shows for a public profile, with each account's handle, display name, verified flag and avatar. This is Instagram's shorter web list: it often holds only a few accounts and can be empty even for a large profile. When it comes back empty or cannot be read, the accounts Instagram's app suggests for the profile may be returned instead. For the full list of accounts Instagram suggests as similar, use instagram.suggested_profiles.
32693
32693
  *
32694
- * Price: $0.0022 per request.
32694
+ * Price: $0.00175 per request.
32695
32695
  *
32696
32696
  * @example
32697
32697
  * const res = await client.instagram.similarProfiles({ handle: "nasa" });
@@ -32786,7 +32786,7 @@ declare class InstagramNamespace {
32786
32786
  *
32787
32787
  * List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
32788
32788
  *
32789
- * Price: $0.00067 per request.
32789
+ * Price: $0.00068 per request.
32790
32790
  *
32791
32791
  * @example
32792
32792
  * const res = await client.instagram.userPosts({ handle: "nasa" });
@@ -72285,12 +72285,6 @@ interface TwitterSearchInput {
72285
72285
  * Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. 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 remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
72286
72286
  */
72287
72287
  ignoreSources?: string[];
72288
- /**
72289
- * Page size to ask for (1-50, default 20). Some sources honor it; others always return their whole native page of about 20. A page is never trimmed after the call, so follow nextCursor to continue exactly where this response ended.
72290
- * Range: minimum 1, maximum 50.
72291
- * Default: 20.
72292
- */
72293
- limit?: number;
72294
72288
  /**
72295
72289
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
72296
72290
  * Range: minimum 1.
@@ -72306,10 +72300,6 @@ interface TwitterSearchInput {
72306
72300
  * Default: Latest.
72307
72301
  */
72308
72302
  queryType?: "Latest" | "Top" | "Photos" | "Videos";
72309
- /**
72310
- * Set true to get up to limit results in one response instead of provider-native pages, served by a bulk provider when needed.
72311
- */
72312
- requireSinglePage?: boolean;
72313
72303
  /**
72314
72304
  * 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`.
72315
72305
  */
@@ -73435,7 +73425,7 @@ declare class TwitterNamespace {
73435
73425
  /**
73436
73426
  * X / Twitter Search
73437
73427
  *
73438
- * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
73428
+ * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
73439
73429
  *
73440
73430
  * Price: $0.00048 per request.
73441
73431
  *
package/dist/index.d.ts CHANGED
@@ -32691,7 +32691,7 @@ declare class InstagramNamespace {
32691
32691
  *
32692
32692
  * List the related profiles Instagram's website shows for a public profile, with each account's handle, display name, verified flag and avatar. This is Instagram's shorter web list: it often holds only a few accounts and can be empty even for a large profile. When it comes back empty or cannot be read, the accounts Instagram's app suggests for the profile may be returned instead. For the full list of accounts Instagram suggests as similar, use instagram.suggested_profiles.
32693
32693
  *
32694
- * Price: $0.0022 per request.
32694
+ * Price: $0.00175 per request.
32695
32695
  *
32696
32696
  * @example
32697
32697
  * const res = await client.instagram.similarProfiles({ handle: "nasa" });
@@ -32786,7 +32786,7 @@ declare class InstagramNamespace {
32786
32786
  *
32787
32787
  * List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
32788
32788
  *
32789
- * Price: $0.00067 per request.
32789
+ * Price: $0.00068 per request.
32790
32790
  *
32791
32791
  * @example
32792
32792
  * const res = await client.instagram.userPosts({ handle: "nasa" });
@@ -72285,12 +72285,6 @@ interface TwitterSearchInput {
72285
72285
  * Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. 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 remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
72286
72286
  */
72287
72287
  ignoreSources?: string[];
72288
- /**
72289
- * Page size to ask for (1-50, default 20). Some sources honor it; others always return their whole native page of about 20. A page is never trimmed after the call, so follow nextCursor to continue exactly where this response ended.
72290
- * Range: minimum 1, maximum 50.
72291
- * Default: 20.
72292
- */
72293
- limit?: number;
72294
72288
  /**
72295
72289
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
72296
72290
  * Range: minimum 1.
@@ -72306,10 +72300,6 @@ interface TwitterSearchInput {
72306
72300
  * Default: Latest.
72307
72301
  */
72308
72302
  queryType?: "Latest" | "Top" | "Photos" | "Videos";
72309
- /**
72310
- * Set true to get up to limit results in one response instead of provider-native pages, served by a bulk provider when needed.
72311
- */
72312
- requireSinglePage?: boolean;
72313
72303
  /**
72314
72304
  * 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`.
72315
72305
  */
@@ -73435,7 +73425,7 @@ declare class TwitterNamespace {
73435
73425
  /**
73436
73426
  * X / Twitter Search
73437
73427
  *
73438
- * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
73428
+ * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
73439
73429
  *
73440
73430
  * Price: $0.00048 per request.
73441
73431
  *
package/dist/index.js CHANGED
@@ -4691,7 +4691,7 @@ var InstagramNamespace = class {
4691
4691
  *
4692
4692
  * List the related profiles Instagram's website shows for a public profile, with each account's handle, display name, verified flag and avatar. This is Instagram's shorter web list: it often holds only a few accounts and can be empty even for a large profile. When it comes back empty or cannot be read, the accounts Instagram's app suggests for the profile may be returned instead. For the full list of accounts Instagram suggests as similar, use instagram.suggested_profiles.
4693
4693
  *
4694
- * Price: $0.0022 per request.
4694
+ * Price: $0.00175 per request.
4695
4695
  *
4696
4696
  * @example
4697
4697
  * const res = await client.instagram.similarProfiles({ handle: "nasa" });
@@ -4811,7 +4811,7 @@ var InstagramNamespace = class {
4811
4811
  *
4812
4812
  * List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
4813
4813
  *
4814
- * Price: $0.00067 per request.
4814
+ * Price: $0.00068 per request.
4815
4815
  *
4816
4816
  * @example
4817
4817
  * const res = await client.instagram.userPosts({ handle: "nasa" });
@@ -8937,7 +8937,7 @@ var TwitterNamespace = class {
8937
8937
  /**
8938
8938
  * X / Twitter Search
8939
8939
  *
8940
- * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
8940
+ * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
8941
8941
  *
8942
8942
  * Price: $0.00048 per request.
8943
8943
  *