x-twitter-scraper 0.20.0 → 0.22.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.
Files changed (226) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/README.md +121 -122
  3. package/client.d.mts +9 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +9 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +2 -2
  8. package/client.js.map +1 -1
  9. package/client.mjs +2 -2
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/events.d.mts +8 -0
  13. package/resources/events.d.mts.map +1 -1
  14. package/resources/events.d.ts +8 -0
  15. package/resources/events.d.ts.map +1 -1
  16. package/resources/extractions.d.mts +105 -5
  17. package/resources/extractions.d.mts.map +1 -1
  18. package/resources/extractions.d.ts +105 -5
  19. package/resources/extractions.d.ts.map +1 -1
  20. package/resources/index.d.mts +1 -1
  21. package/resources/index.d.mts.map +1 -1
  22. package/resources/index.d.ts +1 -1
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs.map +1 -1
  26. package/resources/monitors/index.d.mts +1 -1
  27. package/resources/monitors/index.d.mts.map +1 -1
  28. package/resources/monitors/index.d.ts +1 -1
  29. package/resources/monitors/index.d.ts.map +1 -1
  30. package/resources/monitors/index.js.map +1 -1
  31. package/resources/monitors/index.mjs.map +1 -1
  32. package/resources/monitors/monitors.d.mts +38 -1
  33. package/resources/monitors/monitors.d.mts.map +1 -1
  34. package/resources/monitors/monitors.d.ts +38 -1
  35. package/resources/monitors/monitors.d.ts.map +1 -1
  36. package/resources/monitors/monitors.js +18 -0
  37. package/resources/monitors/monitors.js.map +1 -1
  38. package/resources/monitors/monitors.mjs +18 -0
  39. package/resources/monitors/monitors.mjs.map +1 -1
  40. package/resources/monitors/posts.d.mts +27 -0
  41. package/resources/monitors/posts.d.mts.map +1 -1
  42. package/resources/monitors/posts.d.ts +27 -0
  43. package/resources/monitors/posts.d.ts.map +1 -1
  44. package/resources/shared.d.mts +192 -5
  45. package/resources/shared.d.mts.map +1 -1
  46. package/resources/shared.d.ts +192 -5
  47. package/resources/shared.d.ts.map +1 -1
  48. package/resources/x/account-connection-attempts.d.mts +4 -0
  49. package/resources/x/account-connection-attempts.d.mts.map +1 -1
  50. package/resources/x/account-connection-attempts.d.ts +4 -0
  51. package/resources/x/account-connection-attempts.d.ts.map +1 -1
  52. package/resources/x/account-connection-links.d.mts +159 -0
  53. package/resources/x/account-connection-links.d.mts.map +1 -0
  54. package/resources/x/account-connection-links.d.ts +159 -0
  55. package/resources/x/account-connection-links.d.ts.map +1 -0
  56. package/resources/x/account-connection-links.js +82 -0
  57. package/resources/x/account-connection-links.js.map +1 -0
  58. package/resources/x/account-connection-links.mjs +78 -0
  59. package/resources/x/account-connection-links.mjs.map +1 -0
  60. package/resources/x/accounts.d.mts +13 -9
  61. package/resources/x/accounts.d.mts.map +1 -1
  62. package/resources/x/accounts.d.ts +13 -9
  63. package/resources/x/accounts.d.ts.map +1 -1
  64. package/resources/x/analysis.d.mts +540 -36
  65. package/resources/x/analysis.d.mts.map +1 -1
  66. package/resources/x/analysis.d.ts +540 -36
  67. package/resources/x/analysis.d.ts.map +1 -1
  68. package/resources/x/bookmarks.d.mts +5 -0
  69. package/resources/x/bookmarks.d.mts.map +1 -1
  70. package/resources/x/bookmarks.d.ts +5 -0
  71. package/resources/x/bookmarks.d.ts.map +1 -1
  72. package/resources/x/communities/communities.d.mts +2 -2
  73. package/resources/x/communities/communities.d.mts.map +1 -1
  74. package/resources/x/communities/communities.d.ts +2 -2
  75. package/resources/x/communities/communities.d.ts.map +1 -1
  76. package/resources/x/communities/communities.js.map +1 -1
  77. package/resources/x/communities/communities.mjs.map +1 -1
  78. package/resources/x/communities/join.d.mts +2 -2
  79. package/resources/x/communities/join.d.mts.map +1 -1
  80. package/resources/x/communities/join.d.ts +2 -2
  81. package/resources/x/communities/join.d.ts.map +1 -1
  82. package/resources/x/dm.d.mts +2 -2
  83. package/resources/x/dm.d.mts.map +1 -1
  84. package/resources/x/dm.d.ts +2 -2
  85. package/resources/x/dm.d.ts.map +1 -1
  86. package/resources/x/index.d.mts +3 -2
  87. package/resources/x/index.d.mts.map +1 -1
  88. package/resources/x/index.d.ts +3 -2
  89. package/resources/x/index.d.ts.map +1 -1
  90. package/resources/x/index.js +3 -1
  91. package/resources/x/index.js.map +1 -1
  92. package/resources/x/index.mjs +1 -0
  93. package/resources/x/index.mjs.map +1 -1
  94. package/resources/x/media.d.mts +48 -1
  95. package/resources/x/media.d.mts.map +1 -1
  96. package/resources/x/media.d.ts +48 -1
  97. package/resources/x/media.d.ts.map +1 -1
  98. package/resources/x/media.js.map +1 -1
  99. package/resources/x/media.mjs.map +1 -1
  100. package/resources/x/profile.d.mts +3 -3
  101. package/resources/x/profile.d.mts.map +1 -1
  102. package/resources/x/profile.d.ts +3 -3
  103. package/resources/x/profile.d.ts.map +1 -1
  104. package/resources/x/sports.d.mts +19 -1
  105. package/resources/x/sports.d.mts.map +1 -1
  106. package/resources/x/sports.d.ts +19 -1
  107. package/resources/x/sports.d.ts.map +1 -1
  108. package/resources/x/tweets/bookmark.d.mts +84 -0
  109. package/resources/x/tweets/bookmark.d.mts.map +1 -0
  110. package/resources/x/tweets/bookmark.d.ts +84 -0
  111. package/resources/x/tweets/bookmark.d.ts.map +1 -0
  112. package/resources/x/tweets/bookmark.js +55 -0
  113. package/resources/x/tweets/bookmark.js.map +1 -0
  114. package/resources/x/tweets/bookmark.mjs +51 -0
  115. package/resources/x/tweets/bookmark.mjs.map +1 -0
  116. package/resources/x/tweets/index.d.mts +1 -0
  117. package/resources/x/tweets/index.d.mts.map +1 -1
  118. package/resources/x/tweets/index.d.ts +1 -0
  119. package/resources/x/tweets/index.d.ts.map +1 -1
  120. package/resources/x/tweets/index.js +3 -1
  121. package/resources/x/tweets/index.js.map +1 -1
  122. package/resources/x/tweets/index.mjs +1 -0
  123. package/resources/x/tweets/index.mjs.map +1 -1
  124. package/resources/x/tweets/like.d.mts +2 -2
  125. package/resources/x/tweets/like.d.mts.map +1 -1
  126. package/resources/x/tweets/like.d.ts +2 -2
  127. package/resources/x/tweets/like.d.ts.map +1 -1
  128. package/resources/x/tweets/retweet.d.mts +2 -2
  129. package/resources/x/tweets/retweet.d.mts.map +1 -1
  130. package/resources/x/tweets/retweet.d.ts +2 -2
  131. package/resources/x/tweets/retweet.d.ts.map +1 -1
  132. package/resources/x/tweets/tweets.d.mts +45 -13
  133. package/resources/x/tweets/tweets.d.mts.map +1 -1
  134. package/resources/x/tweets/tweets.d.ts +45 -13
  135. package/resources/x/tweets/tweets.d.ts.map +1 -1
  136. package/resources/x/tweets/tweets.js +4 -0
  137. package/resources/x/tweets/tweets.js.map +1 -1
  138. package/resources/x/tweets/tweets.mjs +4 -0
  139. package/resources/x/tweets/tweets.mjs.map +1 -1
  140. package/resources/x/users/block.d.mts +84 -0
  141. package/resources/x/users/block.d.mts.map +1 -0
  142. package/resources/x/users/block.d.ts +84 -0
  143. package/resources/x/users/block.d.ts.map +1 -0
  144. package/resources/x/users/block.js +55 -0
  145. package/resources/x/users/block.js.map +1 -0
  146. package/resources/x/users/block.mjs +51 -0
  147. package/resources/x/users/block.mjs.map +1 -0
  148. package/resources/x/users/follow.d.mts +2 -2
  149. package/resources/x/users/follow.d.mts.map +1 -1
  150. package/resources/x/users/follow.d.ts +2 -2
  151. package/resources/x/users/follow.d.ts.map +1 -1
  152. package/resources/x/users/index.d.mts +3 -1
  153. package/resources/x/users/index.d.mts.map +1 -1
  154. package/resources/x/users/index.d.ts +3 -1
  155. package/resources/x/users/index.d.ts.map +1 -1
  156. package/resources/x/users/index.js +5 -1
  157. package/resources/x/users/index.js.map +1 -1
  158. package/resources/x/users/index.mjs +2 -0
  159. package/resources/x/users/index.mjs.map +1 -1
  160. package/resources/x/users/mute.d.mts +84 -0
  161. package/resources/x/users/mute.d.mts.map +1 -0
  162. package/resources/x/users/mute.d.ts +84 -0
  163. package/resources/x/users/mute.d.ts.map +1 -0
  164. package/resources/x/users/mute.js +55 -0
  165. package/resources/x/users/mute.js.map +1 -0
  166. package/resources/x/users/mute.mjs +51 -0
  167. package/resources/x/users/mute.mjs.map +1 -0
  168. package/resources/x/users/users.d.mts +359 -9
  169. package/resources/x/users/users.d.mts.map +1 -1
  170. package/resources/x/users/users.d.ts +359 -9
  171. package/resources/x/users/users.d.ts.map +1 -1
  172. package/resources/x/users/users.js +27 -1
  173. package/resources/x/users/users.js.map +1 -1
  174. package/resources/x/users/users.mjs +27 -1
  175. package/resources/x/users/users.mjs.map +1 -1
  176. package/resources/x/write-actions.d.mts +1 -1
  177. package/resources/x/write-actions.d.mts.map +1 -1
  178. package/resources/x/write-actions.d.ts +1 -1
  179. package/resources/x/write-actions.d.ts.map +1 -1
  180. package/resources/x/x.d.mts +17 -4
  181. package/resources/x/x.d.mts.map +1 -1
  182. package/resources/x/x.d.ts +17 -4
  183. package/resources/x/x.d.ts.map +1 -1
  184. package/resources/x/x.js +4 -0
  185. package/resources/x/x.js.map +1 -1
  186. package/resources/x/x.mjs +4 -0
  187. package/resources/x/x.mjs.map +1 -1
  188. package/src/client.ts +12 -2
  189. package/src/core/README.md +4 -0
  190. package/src/internal/README.md +6 -1
  191. package/src/resources/events.ts +10 -0
  192. package/src/resources/extractions.ts +125 -0
  193. package/src/resources/index.ts +2 -0
  194. package/src/resources/monitors/index.ts +2 -0
  195. package/src/resources/monitors/monitors.ts +49 -0
  196. package/src/resources/monitors/posts.ts +32 -0
  197. package/src/resources/shared.ts +223 -4
  198. package/src/resources/x/account-connection-attempts.ts +5 -0
  199. package/src/resources/x/account-connection-links.ts +215 -0
  200. package/src/resources/x/accounts.ts +15 -14
  201. package/src/resources/x/analysis.ts +618 -36
  202. package/src/resources/x/bookmarks.ts +6 -0
  203. package/src/resources/x/communities/communities.ts +12 -0
  204. package/src/resources/x/communities/join.ts +12 -0
  205. package/src/resources/x/dm.ts +12 -0
  206. package/src/resources/x/index.ts +16 -0
  207. package/src/resources/x/media.ts +64 -0
  208. package/src/resources/x/profile.ts +18 -0
  209. package/src/resources/x/sports.ts +22 -0
  210. package/src/resources/x/tweets/bookmark.ts +127 -0
  211. package/src/resources/x/tweets/index.ts +7 -0
  212. package/src/resources/x/tweets/like.ts +12 -0
  213. package/src/resources/x/tweets/retweet.ts +12 -0
  214. package/src/resources/x/tweets/tweets.ts +74 -10
  215. package/src/resources/x/users/block.ts +119 -0
  216. package/src/resources/x/users/follow.ts +12 -0
  217. package/src/resources/x/users/index.ts +20 -0
  218. package/src/resources/x/users/mute.ts +119 -0
  219. package/src/resources/x/users/users.ts +470 -7
  220. package/src/resources/x/write-actions.ts +6 -0
  221. package/src/resources/x/x.ts +50 -0
  222. package/src/version.ts +1 -1
  223. package/version.d.mts +1 -1
  224. package/version.d.ts +1 -1
  225. package/version.js +1 -1
  226. package/version.mjs +1 -1
@@ -9,6 +9,16 @@ import {
9
9
  AccountConnectionAttemptRetrieveResponse,
10
10
  AccountConnectionAttempts,
11
11
  } from './account-connection-attempts';
12
+ import * as AccountConnectionLinksAPI from './account-connection-links';
13
+ import {
14
+ AccountConnectionLinkCreateParams,
15
+ AccountConnectionLinkCreateResponse,
16
+ AccountConnectionLinkDeleteResponse,
17
+ AccountConnectionLinkListParams,
18
+ AccountConnectionLinkListResponse,
19
+ AccountConnectionLinks,
20
+ XAccountConnectionLink,
21
+ } from './account-connection-links';
12
22
  import * as AccountConnectionChallengesAPI from './account-connection-challenges';
13
23
  import {
14
24
  AccountConnectionChallengeSubmitParams,
@@ -151,6 +161,7 @@ import {
151
161
  FootballPlayerStatsReceiving,
152
162
  FootballPlayerXUser,
153
163
  FootballPlays,
164
+ FootballPollRanking,
154
165
  FootballPropCategory,
155
166
  FootballProps,
156
167
  FootballQuarter,
@@ -279,7 +290,13 @@ import {
279
290
  UserRetrieveBatchResponse,
280
291
  UserRetrieveBatchTweetsParams,
281
292
  UserRetrieveBatchTweetsResponse,
293
+ UserRetrieveFollowerAuditParams,
282
294
  UserRetrieveFollowerIDsParams,
295
+ UserRetrieveFollowerAuditResponse,
296
+ FollowerAudit,
297
+ AuditedFollower,
298
+ FollowerClass,
299
+ FollowerValueCount,
283
300
  UserRetrieveFollowerIDsResponse,
284
301
  UserRetrieveFollowersParams,
285
302
  UserRetrieveFollowersResponse,
@@ -333,6 +350,8 @@ export class X extends APIResource {
333
350
  new AccountConnectionChallengesAPI.AccountConnectionChallenges(this._client);
334
351
  accountConnectionAttempts: AccountConnectionAttemptsAPI.AccountConnectionAttempts =
335
352
  new AccountConnectionAttemptsAPI.AccountConnectionAttempts(this._client);
353
+ accountConnectionLinks: AccountConnectionLinksAPI.AccountConnectionLinks =
354
+ new AccountConnectionLinksAPI.AccountConnectionLinks(this._client);
336
355
  bookmarks: BookmarksAPI.Bookmarks = new BookmarksAPI.Bookmarks(this._client);
337
356
  lists: ListsAPI.Lists = new ListsAPI.Lists(this._client);
338
357
  broadcasts: BroadcastsAPI.Broadcasts = new BroadcastsAPI.Broadcasts(this._client);
@@ -847,6 +866,13 @@ export namespace XGetArticleResponse {
847
866
 
848
867
  title?: string;
849
868
 
869
+ /**
870
+ * X did not send these counts, so each 0 means unknown.
871
+ */
872
+ unknownCounts?: Array<
873
+ 'retweetCount' | 'replyCount' | 'likeCount' | 'quoteCount' | 'viewCount' | 'bookmarkCount'
874
+ >;
875
+
850
876
  viewCount?: number;
851
877
  }
852
878
 
@@ -1633,6 +1659,12 @@ export interface XGetHomeTimelineParams {
1633
1659
  * Comma-separated tweet IDs to exclude from results. Empty entries are ignored.
1634
1660
  */
1635
1661
  seenTweetIds?: string;
1662
+
1663
+ /**
1664
+ * Items per page, 1 to 100, default 20. Source, filters or credits can return
1665
+ * fewer. Follow next_cursor for more pages.
1666
+ */
1667
+ pageSize?: number;
1636
1668
  }
1637
1669
 
1638
1670
  export interface XGetNewsStoryVersionsParams {
@@ -1875,6 +1907,7 @@ X.Communities = Communities;
1875
1907
  X.Accounts = Accounts;
1876
1908
  X.AccountConnectionChallenges = AccountConnectionChallenges;
1877
1909
  X.AccountConnectionAttempts = AccountConnectionAttempts;
1910
+ X.AccountConnectionLinks = AccountConnectionLinks;
1878
1911
  X.Bookmarks = Bookmarks;
1879
1912
  X.Lists = Lists;
1880
1913
  X.Broadcasts = Broadcasts;
@@ -1967,6 +2000,11 @@ export declare namespace X {
1967
2000
  type UserRemoveFollowerResponse as UserRemoveFollowerResponse,
1968
2001
  type UserRetrieveBatchResponse as UserRetrieveBatchResponse,
1969
2002
  type UserRetrieveBatchTweetsResponse as UserRetrieveBatchTweetsResponse,
2003
+ type UserRetrieveFollowerAuditResponse as UserRetrieveFollowerAuditResponse,
2004
+ type FollowerAudit as FollowerAudit,
2005
+ type AuditedFollower as AuditedFollower,
2006
+ type FollowerClass as FollowerClass,
2007
+ type FollowerValueCount as FollowerValueCount,
1970
2008
  type UserRetrieveFollowerIDsResponse as UserRetrieveFollowerIDsResponse,
1971
2009
  type UserRetrieveFollowersResponse as UserRetrieveFollowersResponse,
1972
2010
  type UserRetrieveFollowingResponse as UserRetrieveFollowingResponse,
@@ -1985,6 +2023,7 @@ export declare namespace X {
1985
2023
  type UserRetrieveArticlesParams as UserRetrieveArticlesParams,
1986
2024
  type UserRetrieveBatchParams as UserRetrieveBatchParams,
1987
2025
  type UserRetrieveBatchTweetsParams as UserRetrieveBatchTweetsParams,
2026
+ type UserRetrieveFollowerAuditParams as UserRetrieveFollowerAuditParams,
1988
2027
  type UserRetrieveFollowerIDsParams as UserRetrieveFollowerIDsParams,
1989
2028
  type UserRetrieveFollowersParams as UserRetrieveFollowersParams,
1990
2029
  type UserRetrieveFollowersYouKnowParams as UserRetrieveFollowersYouKnowParams,
@@ -2102,6 +2141,16 @@ export declare namespace X {
2102
2141
  type AccountConnectionAttemptRetrieveResponse as AccountConnectionAttemptRetrieveResponse,
2103
2142
  };
2104
2143
 
2144
+ export {
2145
+ AccountConnectionLinks as AccountConnectionLinks,
2146
+ type XAccountConnectionLink as XAccountConnectionLink,
2147
+ type AccountConnectionLinkCreateResponse as AccountConnectionLinkCreateResponse,
2148
+ type AccountConnectionLinkListResponse as AccountConnectionLinkListResponse,
2149
+ type AccountConnectionLinkDeleteResponse as AccountConnectionLinkDeleteResponse,
2150
+ type AccountConnectionLinkCreateParams as AccountConnectionLinkCreateParams,
2151
+ type AccountConnectionLinkListParams as AccountConnectionLinkListParams,
2152
+ };
2153
+
2105
2154
  export {
2106
2155
  Bookmarks as Bookmarks,
2107
2156
  type BookmarkRetrieveFoldersResponse as BookmarkRetrieveFoldersResponse,
@@ -2160,6 +2209,7 @@ export declare namespace X {
2160
2209
  type FootballSchedulePeriod as FootballSchedulePeriod,
2161
2210
  type FootballOdds as FootballOdds,
2162
2211
  type FootballScheduleGameOdds as FootballScheduleGameOdds,
2212
+ type FootballPollRanking as FootballPollRanking,
2163
2213
  type FootballScheduleGame as FootballScheduleGame,
2164
2214
  type SportsTeamColor as SportsTeamColor,
2165
2215
  type SportsTeamLogos as SportsTeamLogos,
package/src/version.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  //
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
 
5
- export const VERSION = '0.20.0';
5
+ export const VERSION = '0.22.0';
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.22.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.22.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -4,5 +4,5 @@
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VERSION = void 0;
7
- exports.VERSION = '0.20.0';
7
+ exports.VERSION = '0.22.0';
8
8
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // SPDX-FileCopyrightText: 2026 Xquik contributors
2
2
  //
3
3
  // SPDX-License-Identifier: Apache-2.0
4
- export const VERSION = '0.20.0';
4
+ export const VERSION = '0.22.0';
5
5
  //# sourceMappingURL=version.mjs.map