@getanyapi/sdk 0.7.1 → 0.9.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 CHANGED
@@ -4762,6 +4762,19 @@ var TwitterNamespace = class {
4762
4762
  this._core = _core;
4763
4763
  }
4764
4764
  _core;
4765
+ /**
4766
+ * X / Twitter Article
4767
+ *
4768
+ * Get a public X long-form article from its wrapper post URL, including its author, engagement, cover image, and structured content blocks.
4769
+ *
4770
+ * Price: $0.00075 per request.
4771
+ *
4772
+ * @example
4773
+ * const res = await client.twitter.article({ url: "https://x.com/Decentralisedco/status/1905545699552375179" });
4774
+ */
4775
+ article(input, options) {
4776
+ return this._core.run("twitter.article", input, options);
4777
+ }
4765
4778
  /**
4766
4779
  * Twitter Community
4767
4780
  *
@@ -4901,6 +4914,19 @@ var TwitterNamespace = class {
4901
4914
  options
4902
4915
  );
4903
4916
  }
4917
+ /**
4918
+ * X / Twitter Trends
4919
+ *
4920
+ * Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
4921
+ *
4922
+ * Price: $0.00075 per request.
4923
+ *
4924
+ * @example
4925
+ * const res = await client.twitter.trends({ limit: 10, location: "US" });
4926
+ */
4927
+ trends(input, options) {
4928
+ return this._core.run("twitter.trends", input, options);
4929
+ }
4904
4930
  /**
4905
4931
  * Twitter Tweet
4906
4932
  *
@@ -4927,6 +4953,35 @@ var TwitterNamespace = class {
4927
4953
  tweetTranscript(input, options) {
4928
4954
  return this._core.run("twitter.tweet_transcript", input, options);
4929
4955
  }
4956
+ /**
4957
+ * X / Twitter User Posts
4958
+ *
4959
+ * Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
4960
+ *
4961
+ * Price: $0.00075 per request.
4962
+ *
4963
+ * @example
4964
+ * const res = await client.twitter.userPosts({ handle: "levelsio" });
4965
+ */
4966
+ userPosts(input, options) {
4967
+ return this._core.run("twitter.user_posts", input, options);
4968
+ }
4969
+ /**
4970
+ * Iterate every result of X / Twitter User Posts across pages.
4971
+ *
4972
+ * Yields items directly; call `.pages()` on the return value to walk whole
4973
+ * result pages instead (each carries its own costUsd).
4974
+ */
4975
+ iterUserPosts(input, options) {
4976
+ return paginate(
4977
+ this._core,
4978
+ "twitter.user_posts",
4979
+ input,
4980
+ "tweets",
4981
+ false,
4982
+ options
4983
+ );
4984
+ }
4930
4985
  /**
4931
4986
  * X / Twitter User Tweets and Replies
4932
4987
  *