x-twitter-scraper 0.20.0 → 0.21.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/CHANGELOG.md +55 -0
- package/README.md +120 -121
- package/client.d.mts +7 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/extractions.d.mts +105 -5
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +105 -5
- package/resources/extractions.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +1 -1
- package/resources/monitors/index.d.mts.map +1 -1
- package/resources/monitors/index.d.ts +1 -1
- package/resources/monitors/index.d.ts.map +1 -1
- package/resources/monitors/index.js.map +1 -1
- package/resources/monitors/index.mjs.map +1 -1
- package/resources/monitors/monitors.d.mts +38 -1
- package/resources/monitors/monitors.d.mts.map +1 -1
- package/resources/monitors/monitors.d.ts +38 -1
- package/resources/monitors/monitors.d.ts.map +1 -1
- package/resources/monitors/monitors.js +18 -0
- package/resources/monitors/monitors.js.map +1 -1
- package/resources/monitors/monitors.mjs +18 -0
- package/resources/monitors/monitors.mjs.map +1 -1
- package/resources/monitors/posts.d.mts +27 -0
- package/resources/monitors/posts.d.mts.map +1 -1
- package/resources/monitors/posts.d.ts +27 -0
- package/resources/monitors/posts.d.ts.map +1 -1
- package/resources/shared.d.mts +175 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +175 -5
- package/resources/shared.d.ts.map +1 -1
- package/resources/x/account-connection-attempts.d.mts +4 -0
- package/resources/x/account-connection-attempts.d.mts.map +1 -1
- package/resources/x/account-connection-attempts.d.ts +4 -0
- package/resources/x/account-connection-attempts.d.ts.map +1 -1
- package/resources/x/account-connection-links.d.mts +159 -0
- package/resources/x/account-connection-links.d.mts.map +1 -0
- package/resources/x/account-connection-links.d.ts +159 -0
- package/resources/x/account-connection-links.d.ts.map +1 -0
- package/resources/x/account-connection-links.js +82 -0
- package/resources/x/account-connection-links.js.map +1 -0
- package/resources/x/account-connection-links.mjs +78 -0
- package/resources/x/account-connection-links.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -9
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -9
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/analysis.d.mts +540 -36
- package/resources/x/analysis.d.mts.map +1 -1
- package/resources/x/analysis.d.ts +540 -36
- package/resources/x/analysis.d.ts.map +1 -1
- package/resources/x/bookmarks.d.mts +5 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +5 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/communities/communities.d.mts +2 -2
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +2 -2
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +2 -2
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +2 -2
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/dm.d.mts +2 -2
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +2 -2
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/index.d.mts +2 -1
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +2 -1
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +3 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +1 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/media.d.mts +48 -1
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +48 -1
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +3 -3
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +3 -3
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/tweets/bookmark.d.mts +84 -0
- package/resources/x/tweets/bookmark.d.mts.map +1 -0
- package/resources/x/tweets/bookmark.d.ts +84 -0
- package/resources/x/tweets/bookmark.d.ts.map +1 -0
- package/resources/x/tweets/bookmark.js +55 -0
- package/resources/x/tweets/bookmark.js.map +1 -0
- package/resources/x/tweets/bookmark.mjs +51 -0
- package/resources/x/tweets/bookmark.mjs.map +1 -0
- package/resources/x/tweets/index.d.mts +1 -0
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts +1 -0
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.js +3 -1
- package/resources/x/tweets/index.js.map +1 -1
- package/resources/x/tweets/index.mjs +1 -0
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts +2 -2
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts +2 -2
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/retweet.d.mts +2 -2
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts +2 -2
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/tweets.d.mts +41 -13
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +41 -13
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +4 -0
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +4 -0
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/block.d.mts +84 -0
- package/resources/x/users/block.d.mts.map +1 -0
- package/resources/x/users/block.d.ts +84 -0
- package/resources/x/users/block.d.ts.map +1 -0
- package/resources/x/users/block.js +55 -0
- package/resources/x/users/block.js.map +1 -0
- package/resources/x/users/block.mjs +51 -0
- package/resources/x/users/block.mjs.map +1 -0
- package/resources/x/users/follow.d.mts +2 -2
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts +2 -2
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/index.d.mts +3 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +3 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js +5 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs +2 -0
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/mute.d.mts +84 -0
- package/resources/x/users/mute.d.mts.map +1 -0
- package/resources/x/users/mute.d.ts +84 -0
- package/resources/x/users/mute.d.ts.map +1 -0
- package/resources/x/users/mute.js +55 -0
- package/resources/x/users/mute.js.map +1 -0
- package/resources/x/users/mute.mjs +51 -0
- package/resources/x/users/mute.mjs.map +1 -0
- package/resources/x/users/users.d.mts +359 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +359 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +27 -1
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +27 -1
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +1 -1
- package/resources/x/write-actions.d.mts.map +1 -1
- package/resources/x/write-actions.d.ts +1 -1
- package/resources/x/write-actions.d.ts.map +1 -1
- package/resources/x/x.d.mts +15 -2
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +15 -2
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +4 -0
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +4 -0
- package/resources/x/x.mjs.map +1 -1
- package/src/client.ts +9 -0
- package/src/core/README.md +4 -0
- package/src/internal/README.md +6 -1
- package/src/resources/extractions.ts +125 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/monitors/index.ts +2 -0
- package/src/resources/monitors/monitors.ts +49 -0
- package/src/resources/monitors/posts.ts +32 -0
- package/src/resources/shared.ts +203 -4
- package/src/resources/x/account-connection-attempts.ts +5 -0
- package/src/resources/x/account-connection-links.ts +215 -0
- package/src/resources/x/accounts.ts +15 -14
- package/src/resources/x/analysis.ts +618 -36
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +12 -0
- package/src/resources/x/communities/join.ts +12 -0
- package/src/resources/x/dm.ts +12 -0
- package/src/resources/x/index.ts +15 -0
- package/src/resources/x/media.ts +64 -0
- package/src/resources/x/profile.ts +18 -0
- package/src/resources/x/tweets/bookmark.ts +127 -0
- package/src/resources/x/tweets/index.ts +7 -0
- package/src/resources/x/tweets/like.ts +12 -0
- package/src/resources/x/tweets/retweet.ts +12 -0
- package/src/resources/x/tweets/tweets.ts +69 -10
- package/src/resources/x/users/block.ts +119 -0
- package/src/resources/x/users/follow.ts +12 -0
- package/src/resources/x/users/index.ts +20 -0
- package/src/resources/x/users/mute.ts +119 -0
- package/src/resources/x/users/users.ts +470 -7
- package/src/resources/x/write-actions.ts +6 -0
- package/src/resources/x/x.ts +48 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -170,6 +170,24 @@ export interface AnalysisBrandResponse {
|
|
|
170
170
|
* Each post without an analysis, by ID & reason. These cost nothing.
|
|
171
171
|
*/
|
|
172
172
|
unanalyzed: Array<AnalysisBrandResponse.Unanalyzed>;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* IDs of the posts or texts the time ran out for. Send them again in tweetIds, or
|
|
176
|
+
* those texts in texts. They cost nothing.
|
|
177
|
+
*/
|
|
178
|
+
unprocessed_ids: Array<string>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* What the image filter asked & how many posts it kept. Present when the request
|
|
182
|
+
* sent imageShows.
|
|
183
|
+
*/
|
|
184
|
+
imageFilter?: Shared.ImageFilterSummary;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* What the topic filter asked & how many posts it kept. Present when the request
|
|
188
|
+
* sent topic.
|
|
189
|
+
*/
|
|
190
|
+
topicFilter?: Shared.TopicFilterSummary;
|
|
173
191
|
}
|
|
174
192
|
|
|
175
193
|
export namespace AnalysisBrandResponse {
|
|
@@ -463,7 +481,11 @@ export namespace AnalysisBrandResponse {
|
|
|
463
481
|
|
|
464
482
|
author: 'available' | 'missing';
|
|
465
483
|
|
|
466
|
-
|
|
484
|
+
/**
|
|
485
|
+
* images when the AI read the post's images. text_descriptions_only when it read
|
|
486
|
+
* only their alt text.
|
|
487
|
+
*/
|
|
488
|
+
media: 'images' | 'text_descriptions_only' | 'not_supplied';
|
|
467
489
|
|
|
468
490
|
/**
|
|
469
491
|
* truncated when the post was cut to fit.
|
|
@@ -578,6 +600,24 @@ export interface AnalysisClassifyResponse {
|
|
|
578
600
|
* Each post without an analysis, by ID & reason. These cost nothing.
|
|
579
601
|
*/
|
|
580
602
|
unanalyzed: Array<AnalysisClassifyResponse.Unanalyzed>;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* IDs of the posts or texts the time ran out for. Send them again in tweetIds, or
|
|
606
|
+
* those texts in texts. They cost nothing.
|
|
607
|
+
*/
|
|
608
|
+
unprocessed_ids: Array<string>;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* What the image filter asked & how many posts it kept. Present when the request
|
|
612
|
+
* sent imageShows.
|
|
613
|
+
*/
|
|
614
|
+
imageFilter?: Shared.ImageFilterSummary;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* What the topic filter asked & how many posts it kept. Present when the request
|
|
618
|
+
* sent topic.
|
|
619
|
+
*/
|
|
620
|
+
topicFilter?: Shared.TopicFilterSummary;
|
|
581
621
|
}
|
|
582
622
|
|
|
583
623
|
export namespace AnalysisClassifyResponse {
|
|
@@ -871,7 +911,11 @@ export namespace AnalysisClassifyResponse {
|
|
|
871
911
|
|
|
872
912
|
author: 'available' | 'missing';
|
|
873
913
|
|
|
874
|
-
|
|
914
|
+
/**
|
|
915
|
+
* images when the AI read the post's images. text_descriptions_only when it read
|
|
916
|
+
* only their alt text.
|
|
917
|
+
*/
|
|
918
|
+
media: 'images' | 'text_descriptions_only' | 'not_supplied';
|
|
875
919
|
|
|
876
920
|
/**
|
|
877
921
|
* truncated when the post was cut to fit.
|
|
@@ -986,6 +1030,24 @@ export interface AnalysisMarketSignalsResponse {
|
|
|
986
1030
|
* Each post without an analysis, by ID & reason. These cost nothing.
|
|
987
1031
|
*/
|
|
988
1032
|
unanalyzed: Array<AnalysisMarketSignalsResponse.Unanalyzed>;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* IDs of the posts or texts the time ran out for. Send them again in tweetIds, or
|
|
1036
|
+
* those texts in texts. They cost nothing.
|
|
1037
|
+
*/
|
|
1038
|
+
unprocessed_ids: Array<string>;
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* What the image filter asked & how many posts it kept. Present when the request
|
|
1042
|
+
* sent imageShows.
|
|
1043
|
+
*/
|
|
1044
|
+
imageFilter?: Shared.ImageFilterSummary;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* What the topic filter asked & how many posts it kept. Present when the request
|
|
1048
|
+
* sent topic.
|
|
1049
|
+
*/
|
|
1050
|
+
topicFilter?: Shared.TopicFilterSummary;
|
|
989
1051
|
}
|
|
990
1052
|
|
|
991
1053
|
export namespace AnalysisMarketSignalsResponse {
|
|
@@ -1279,7 +1341,11 @@ export namespace AnalysisMarketSignalsResponse {
|
|
|
1279
1341
|
|
|
1280
1342
|
author: 'available' | 'missing';
|
|
1281
1343
|
|
|
1282
|
-
|
|
1344
|
+
/**
|
|
1345
|
+
* images when the AI read the post's images. text_descriptions_only when it read
|
|
1346
|
+
* only their alt text.
|
|
1347
|
+
*/
|
|
1348
|
+
media: 'images' | 'text_descriptions_only' | 'not_supplied';
|
|
1283
1349
|
|
|
1284
1350
|
/**
|
|
1285
1351
|
* truncated when the post was cut to fit.
|
|
@@ -1394,6 +1460,24 @@ export interface AnalysisNewsResponse {
|
|
|
1394
1460
|
* Each post without an analysis, by ID & reason. These cost nothing.
|
|
1395
1461
|
*/
|
|
1396
1462
|
unanalyzed: Array<AnalysisNewsResponse.Unanalyzed>;
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* IDs of the posts or texts the time ran out for. Send them again in tweetIds, or
|
|
1466
|
+
* those texts in texts. They cost nothing.
|
|
1467
|
+
*/
|
|
1468
|
+
unprocessed_ids: Array<string>;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* What the image filter asked & how many posts it kept. Present when the request
|
|
1472
|
+
* sent imageShows.
|
|
1473
|
+
*/
|
|
1474
|
+
imageFilter?: Shared.ImageFilterSummary;
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* What the topic filter asked & how many posts it kept. Present when the request
|
|
1478
|
+
* sent topic.
|
|
1479
|
+
*/
|
|
1480
|
+
topicFilter?: Shared.TopicFilterSummary;
|
|
1397
1481
|
}
|
|
1398
1482
|
|
|
1399
1483
|
export namespace AnalysisNewsResponse {
|
|
@@ -1687,7 +1771,11 @@ export namespace AnalysisNewsResponse {
|
|
|
1687
1771
|
|
|
1688
1772
|
author: 'available' | 'missing';
|
|
1689
1773
|
|
|
1690
|
-
|
|
1774
|
+
/**
|
|
1775
|
+
* images when the AI read the post's images. text_descriptions_only when it read
|
|
1776
|
+
* only their alt text.
|
|
1777
|
+
*/
|
|
1778
|
+
media: 'images' | 'text_descriptions_only' | 'not_supplied';
|
|
1691
1779
|
|
|
1692
1780
|
/**
|
|
1693
1781
|
* truncated when the post was cut to fit.
|
|
@@ -1802,6 +1890,24 @@ export interface AnalysisSentimentResponse {
|
|
|
1802
1890
|
* Each post without an analysis, by ID & reason. These cost nothing.
|
|
1803
1891
|
*/
|
|
1804
1892
|
unanalyzed: Array<AnalysisSentimentResponse.Unanalyzed>;
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* IDs of the posts or texts the time ran out for. Send them again in tweetIds, or
|
|
1896
|
+
* those texts in texts. They cost nothing.
|
|
1897
|
+
*/
|
|
1898
|
+
unprocessed_ids: Array<string>;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* What the image filter asked & how many posts it kept. Present when the request
|
|
1902
|
+
* sent imageShows.
|
|
1903
|
+
*/
|
|
1904
|
+
imageFilter?: Shared.ImageFilterSummary;
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* What the topic filter asked & how many posts it kept. Present when the request
|
|
1908
|
+
* sent topic.
|
|
1909
|
+
*/
|
|
1910
|
+
topicFilter?: Shared.TopicFilterSummary;
|
|
1805
1911
|
}
|
|
1806
1912
|
|
|
1807
1913
|
export namespace AnalysisSentimentResponse {
|
|
@@ -2095,7 +2201,11 @@ export namespace AnalysisSentimentResponse {
|
|
|
2095
2201
|
|
|
2096
2202
|
author: 'available' | 'missing';
|
|
2097
2203
|
|
|
2098
|
-
|
|
2204
|
+
/**
|
|
2205
|
+
* images when the AI read the post's images. text_descriptions_only when it read
|
|
2206
|
+
* only their alt text.
|
|
2207
|
+
*/
|
|
2208
|
+
media: 'images' | 'text_descriptions_only' | 'not_supplied';
|
|
2099
2209
|
|
|
2100
2210
|
/**
|
|
2101
2211
|
* truncated when the post was cut to fit.
|
|
@@ -2210,6 +2320,24 @@ export interface AnalysisViralScoreResponse {
|
|
|
2210
2320
|
* Each post without an analysis, by ID & reason. These cost nothing.
|
|
2211
2321
|
*/
|
|
2212
2322
|
unanalyzed: Array<AnalysisViralScoreResponse.Unanalyzed>;
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* IDs of the posts or texts the time ran out for. Send them again in tweetIds, or
|
|
2326
|
+
* those texts in texts. They cost nothing.
|
|
2327
|
+
*/
|
|
2328
|
+
unprocessed_ids: Array<string>;
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* What the image filter asked & how many posts it kept. Present when the request
|
|
2332
|
+
* sent imageShows.
|
|
2333
|
+
*/
|
|
2334
|
+
imageFilter?: Shared.ImageFilterSummary;
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* What the topic filter asked & how many posts it kept. Present when the request
|
|
2338
|
+
* sent topic.
|
|
2339
|
+
*/
|
|
2340
|
+
topicFilter?: Shared.TopicFilterSummary;
|
|
2213
2341
|
}
|
|
2214
2342
|
|
|
2215
2343
|
export namespace AnalysisViralScoreResponse {
|
|
@@ -2503,7 +2631,11 @@ export namespace AnalysisViralScoreResponse {
|
|
|
2503
2631
|
|
|
2504
2632
|
author: 'available' | 'missing';
|
|
2505
2633
|
|
|
2506
|
-
|
|
2634
|
+
/**
|
|
2635
|
+
* images when the AI read the post's images. text_descriptions_only when it read
|
|
2636
|
+
* only their alt text.
|
|
2637
|
+
*/
|
|
2638
|
+
media: 'images' | 'text_descriptions_only' | 'not_supplied';
|
|
2507
2639
|
|
|
2508
2640
|
/**
|
|
2509
2641
|
* truncated when the post was cut to fit.
|
|
@@ -2605,12 +2737,31 @@ export interface AnalysisBrandParams {
|
|
|
2605
2737
|
baseline?: Array<AnalysisBrandParams.Baseline>;
|
|
2606
2738
|
|
|
2607
2739
|
/**
|
|
2608
|
-
* The next_cursor of the page before. Send the same search with it.
|
|
2740
|
+
* The next_cursor of the page before. Send the same search or page with it.
|
|
2609
2741
|
*/
|
|
2610
2742
|
cursor?: string;
|
|
2611
2743
|
|
|
2612
2744
|
/**
|
|
2613
|
-
*
|
|
2745
|
+
* Keep only posts whose photos show this, the same as the Actors' imageShows
|
|
2746
|
+
* input. Send charts, screenshots, product_photos, memes or people, or describe it
|
|
2747
|
+
* in words, such as a rocket. AI-powered analysis checks posts with photos X
|
|
2748
|
+
* doesn't mark sensitive & keeps scores of 0.5 or more. Only kept posts are
|
|
2749
|
+
* analyzed & cost 2 credits each. imageFilter states the cutoff & counts. Send
|
|
2750
|
+
* topic or imageShows, not both.
|
|
2751
|
+
*/
|
|
2752
|
+
imageShows?: string;
|
|
2753
|
+
|
|
2754
|
+
/**
|
|
2755
|
+
* Analyze the posts 1 account liked, as /x/users/{id}/likes reads them. Send a
|
|
2756
|
+
* handle, with or without @, a user ID or a profile URL. Send no other posts or
|
|
2757
|
+
* search with it.
|
|
2758
|
+
*/
|
|
2759
|
+
likedBy?: string;
|
|
2760
|
+
|
|
2761
|
+
/**
|
|
2762
|
+
* Maximum posts to analyze from the search or page. A low credit balance can
|
|
2763
|
+
* return fewer. When the time runs out first, send next_cursor as cursor for the
|
|
2764
|
+
* rest.
|
|
2614
2765
|
*/
|
|
2615
2766
|
limit?: number;
|
|
2616
2767
|
|
|
@@ -2619,6 +2770,26 @@ export interface AnalysisBrandParams {
|
|
|
2619
2770
|
*/
|
|
2620
2771
|
listId?: string;
|
|
2621
2772
|
|
|
2773
|
+
/**
|
|
2774
|
+
* Analyze the posts of several public Lists in 1 search. Send their IDs or URLs.
|
|
2775
|
+
* listId, when sent, joins them.
|
|
2776
|
+
*/
|
|
2777
|
+
listIds?: Array<string>;
|
|
2778
|
+
|
|
2779
|
+
/**
|
|
2780
|
+
* Analyze 1 account's posts with photos or videos, as its Media tab shows them.
|
|
2781
|
+
* /x/users/{id}/media reads the same posts. Send a handle, with or without @, a
|
|
2782
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
2783
|
+
*/
|
|
2784
|
+
mediaBy?: string;
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* X searches to analyze as 1 search. A post matching any of them counts. Each
|
|
2788
|
+
* takes the operators of query. query, when sent, joins them. X searches up to 512
|
|
2789
|
+
* characters, counted with the other search fields.
|
|
2790
|
+
*/
|
|
2791
|
+
queries?: Array<string>;
|
|
2792
|
+
|
|
2622
2793
|
/**
|
|
2623
2794
|
* X search to analyze, with the operators of /x/tweets/search, such as from:nasa
|
|
2624
2795
|
* or lang:en. X searches up to 512 characters, counted with the other search
|
|
@@ -2636,6 +2807,13 @@ export interface AnalysisBrandParams {
|
|
|
2636
2807
|
*/
|
|
2637
2808
|
quotesOf?: string;
|
|
2638
2809
|
|
|
2810
|
+
/**
|
|
2811
|
+
* Analyze 1 account's posts & replies, as its Replies tab shows them.
|
|
2812
|
+
* /x/users/{id}/replies reads the same posts. Send a handle, with or without @, a
|
|
2813
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
2814
|
+
*/
|
|
2815
|
+
repliesBy?: string;
|
|
2816
|
+
|
|
2639
2817
|
/**
|
|
2640
2818
|
* Analyze the replies in 1 post's conversation. Send its ID or URL.
|
|
2641
2819
|
*/
|
|
@@ -2648,13 +2826,30 @@ export interface AnalysisBrandParams {
|
|
|
2648
2826
|
sinceTime?: string | number;
|
|
2649
2827
|
|
|
2650
2828
|
/**
|
|
2651
|
-
* Your own texts to analyze, such as drafts
|
|
2652
|
-
* the same as 1 analyzed post.
|
|
2829
|
+
* Your own texts to analyze, such as drafts, as many as the body holds. Reads
|
|
2830
|
+
* nothing from X. Each text costs the same as 1 analyzed post. Texts left when the
|
|
2831
|
+
* time runs out come back in unprocessed_ids.
|
|
2653
2832
|
*/
|
|
2654
2833
|
texts?: Array<string>;
|
|
2655
2834
|
|
|
2656
2835
|
/**
|
|
2657
|
-
*
|
|
2836
|
+
* Analyze 1 post's thread, as /x/tweets/{id}/thread reads it. Send the post's ID
|
|
2837
|
+
* or URL. Send no other posts or search with it.
|
|
2838
|
+
*/
|
|
2839
|
+
threadOf?: string;
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* Keep only posts about this topic, the same as the Actors' topic input.
|
|
2843
|
+
* AI-powered analysis asks "Is this post about <topic>?" of each post & keeps
|
|
2844
|
+
* scores of 0.5 or more. Only kept posts are analyzed & cost 2 credits each, & a
|
|
2845
|
+
* post the filter drops costs nothing. topicFilter states the cutoff & counts.
|
|
2846
|
+
* Send topic or imageShows, not both.
|
|
2847
|
+
*/
|
|
2848
|
+
topic?: string;
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Post IDs or post URLs to analyze, as many as the body holds. Posts left when the
|
|
2852
|
+
* time runs out come back in unprocessed_ids.
|
|
2658
2853
|
*/
|
|
2659
2854
|
tweetIds?: Array<string>;
|
|
2660
2855
|
|
|
@@ -2668,6 +2863,12 @@ export interface AnalysisBrandParams {
|
|
|
2668
2863
|
* Analyze 1 account's posts. Send a handle, with or without @, or a profile URL.
|
|
2669
2864
|
*/
|
|
2670
2865
|
username?: string;
|
|
2866
|
+
|
|
2867
|
+
/**
|
|
2868
|
+
* Analyze the posts of several accounts in 1 search. Send handles, with or
|
|
2869
|
+
* without @, or profile URLs. username, when sent, joins them.
|
|
2870
|
+
*/
|
|
2871
|
+
usernames?: Array<string>;
|
|
2671
2872
|
}
|
|
2672
2873
|
|
|
2673
2874
|
export namespace AnalysisBrandParams {
|
|
@@ -2686,6 +2887,12 @@ export namespace AnalysisBrandParams {
|
|
|
2686
2887
|
*/
|
|
2687
2888
|
context?: string;
|
|
2688
2889
|
|
|
2890
|
+
/**
|
|
2891
|
+
* Reads up to 4 images per post with its text, at no extra cost. Images of posts X
|
|
2892
|
+
* marks sensitive stay unread. Send false to analyze the text alone.
|
|
2893
|
+
*/
|
|
2894
|
+
images?: boolean;
|
|
2895
|
+
|
|
2689
2896
|
/**
|
|
2690
2897
|
* Bytes of post, quote & settings the AI reads. Longer posts are cut to fit. Empty
|
|
2691
2898
|
* settings take 219 bytes, so a smaller value gets a 400.
|
|
@@ -2828,12 +3035,31 @@ export interface AnalysisClassifyParams {
|
|
|
2828
3035
|
baseline?: Array<AnalysisClassifyParams.Baseline>;
|
|
2829
3036
|
|
|
2830
3037
|
/**
|
|
2831
|
-
* The next_cursor of the page before. Send the same search with it.
|
|
3038
|
+
* The next_cursor of the page before. Send the same search or page with it.
|
|
2832
3039
|
*/
|
|
2833
3040
|
cursor?: string;
|
|
2834
3041
|
|
|
2835
3042
|
/**
|
|
2836
|
-
*
|
|
3043
|
+
* Keep only posts whose photos show this, the same as the Actors' imageShows
|
|
3044
|
+
* input. Send charts, screenshots, product_photos, memes or people, or describe it
|
|
3045
|
+
* in words, such as a rocket. AI-powered analysis checks posts with photos X
|
|
3046
|
+
* doesn't mark sensitive & keeps scores of 0.5 or more. Only kept posts are
|
|
3047
|
+
* analyzed & cost 2 credits each. imageFilter states the cutoff & counts. Send
|
|
3048
|
+
* topic or imageShows, not both.
|
|
3049
|
+
*/
|
|
3050
|
+
imageShows?: string;
|
|
3051
|
+
|
|
3052
|
+
/**
|
|
3053
|
+
* Analyze the posts 1 account liked, as /x/users/{id}/likes reads them. Send a
|
|
3054
|
+
* handle, with or without @, a user ID or a profile URL. Send no other posts or
|
|
3055
|
+
* search with it.
|
|
3056
|
+
*/
|
|
3057
|
+
likedBy?: string;
|
|
3058
|
+
|
|
3059
|
+
/**
|
|
3060
|
+
* Maximum posts to analyze from the search or page. A low credit balance can
|
|
3061
|
+
* return fewer. When the time runs out first, send next_cursor as cursor for the
|
|
3062
|
+
* rest.
|
|
2837
3063
|
*/
|
|
2838
3064
|
limit?: number;
|
|
2839
3065
|
|
|
@@ -2842,6 +3068,26 @@ export interface AnalysisClassifyParams {
|
|
|
2842
3068
|
*/
|
|
2843
3069
|
listId?: string;
|
|
2844
3070
|
|
|
3071
|
+
/**
|
|
3072
|
+
* Analyze the posts of several public Lists in 1 search. Send their IDs or URLs.
|
|
3073
|
+
* listId, when sent, joins them.
|
|
3074
|
+
*/
|
|
3075
|
+
listIds?: Array<string>;
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* Analyze 1 account's posts with photos or videos, as its Media tab shows them.
|
|
3079
|
+
* /x/users/{id}/media reads the same posts. Send a handle, with or without @, a
|
|
3080
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
3081
|
+
*/
|
|
3082
|
+
mediaBy?: string;
|
|
3083
|
+
|
|
3084
|
+
/**
|
|
3085
|
+
* X searches to analyze as 1 search. A post matching any of them counts. Each
|
|
3086
|
+
* takes the operators of query. query, when sent, joins them. X searches up to 512
|
|
3087
|
+
* characters, counted with the other search fields.
|
|
3088
|
+
*/
|
|
3089
|
+
queries?: Array<string>;
|
|
3090
|
+
|
|
2845
3091
|
/**
|
|
2846
3092
|
* X search to analyze, with the operators of /x/tweets/search, such as from:nasa
|
|
2847
3093
|
* or lang:en. X searches up to 512 characters, counted with the other search
|
|
@@ -2859,6 +3105,13 @@ export interface AnalysisClassifyParams {
|
|
|
2859
3105
|
*/
|
|
2860
3106
|
quotesOf?: string;
|
|
2861
3107
|
|
|
3108
|
+
/**
|
|
3109
|
+
* Analyze 1 account's posts & replies, as its Replies tab shows them.
|
|
3110
|
+
* /x/users/{id}/replies reads the same posts. Send a handle, with or without @, a
|
|
3111
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
3112
|
+
*/
|
|
3113
|
+
repliesBy?: string;
|
|
3114
|
+
|
|
2862
3115
|
/**
|
|
2863
3116
|
* Analyze the replies in 1 post's conversation. Send its ID or URL.
|
|
2864
3117
|
*/
|
|
@@ -2871,13 +3124,30 @@ export interface AnalysisClassifyParams {
|
|
|
2871
3124
|
sinceTime?: string | number;
|
|
2872
3125
|
|
|
2873
3126
|
/**
|
|
2874
|
-
* Your own texts to analyze, such as drafts
|
|
2875
|
-
* the same as 1 analyzed post.
|
|
3127
|
+
* Your own texts to analyze, such as drafts, as many as the body holds. Reads
|
|
3128
|
+
* nothing from X. Each text costs the same as 1 analyzed post. Texts left when the
|
|
3129
|
+
* time runs out come back in unprocessed_ids.
|
|
2876
3130
|
*/
|
|
2877
3131
|
texts?: Array<string>;
|
|
2878
3132
|
|
|
2879
3133
|
/**
|
|
2880
|
-
*
|
|
3134
|
+
* Analyze 1 post's thread, as /x/tweets/{id}/thread reads it. Send the post's ID
|
|
3135
|
+
* or URL. Send no other posts or search with it.
|
|
3136
|
+
*/
|
|
3137
|
+
threadOf?: string;
|
|
3138
|
+
|
|
3139
|
+
/**
|
|
3140
|
+
* Keep only posts about this topic, the same as the Actors' topic input.
|
|
3141
|
+
* AI-powered analysis asks "Is this post about <topic>?" of each post & keeps
|
|
3142
|
+
* scores of 0.5 or more. Only kept posts are analyzed & cost 2 credits each, & a
|
|
3143
|
+
* post the filter drops costs nothing. topicFilter states the cutoff & counts.
|
|
3144
|
+
* Send topic or imageShows, not both.
|
|
3145
|
+
*/
|
|
3146
|
+
topic?: string;
|
|
3147
|
+
|
|
3148
|
+
/**
|
|
3149
|
+
* Post IDs or post URLs to analyze, as many as the body holds. Posts left when the
|
|
3150
|
+
* time runs out come back in unprocessed_ids.
|
|
2881
3151
|
*/
|
|
2882
3152
|
tweetIds?: Array<string>;
|
|
2883
3153
|
|
|
@@ -2891,6 +3161,12 @@ export interface AnalysisClassifyParams {
|
|
|
2891
3161
|
* Analyze 1 account's posts. Send a handle, with or without @, or a profile URL.
|
|
2892
3162
|
*/
|
|
2893
3163
|
username?: string;
|
|
3164
|
+
|
|
3165
|
+
/**
|
|
3166
|
+
* Analyze the posts of several accounts in 1 search. Send handles, with or
|
|
3167
|
+
* without @, or profile URLs. username, when sent, joins them.
|
|
3168
|
+
*/
|
|
3169
|
+
usernames?: Array<string>;
|
|
2894
3170
|
}
|
|
2895
3171
|
|
|
2896
3172
|
export namespace AnalysisClassifyParams {
|
|
@@ -2909,6 +3185,12 @@ export namespace AnalysisClassifyParams {
|
|
|
2909
3185
|
*/
|
|
2910
3186
|
context?: string;
|
|
2911
3187
|
|
|
3188
|
+
/**
|
|
3189
|
+
* Reads up to 4 images per post with its text, at no extra cost. Images of posts X
|
|
3190
|
+
* marks sensitive stay unread. Send false to analyze the text alone.
|
|
3191
|
+
*/
|
|
3192
|
+
images?: boolean;
|
|
3193
|
+
|
|
2912
3194
|
/**
|
|
2913
3195
|
* Bytes of post, quote & settings the AI reads. Longer posts are cut to fit. Empty
|
|
2914
3196
|
* settings take 219 bytes, so a smaller value gets a 400.
|
|
@@ -3051,12 +3333,31 @@ export interface AnalysisMarketSignalsParams {
|
|
|
3051
3333
|
baseline?: Array<AnalysisMarketSignalsParams.Baseline>;
|
|
3052
3334
|
|
|
3053
3335
|
/**
|
|
3054
|
-
* The next_cursor of the page before. Send the same search with it.
|
|
3336
|
+
* The next_cursor of the page before. Send the same search or page with it.
|
|
3055
3337
|
*/
|
|
3056
3338
|
cursor?: string;
|
|
3057
3339
|
|
|
3058
3340
|
/**
|
|
3059
|
-
*
|
|
3341
|
+
* Keep only posts whose photos show this, the same as the Actors' imageShows
|
|
3342
|
+
* input. Send charts, screenshots, product_photos, memes or people, or describe it
|
|
3343
|
+
* in words, such as a rocket. AI-powered analysis checks posts with photos X
|
|
3344
|
+
* doesn't mark sensitive & keeps scores of 0.5 or more. Only kept posts are
|
|
3345
|
+
* analyzed & cost 2 credits each. imageFilter states the cutoff & counts. Send
|
|
3346
|
+
* topic or imageShows, not both.
|
|
3347
|
+
*/
|
|
3348
|
+
imageShows?: string;
|
|
3349
|
+
|
|
3350
|
+
/**
|
|
3351
|
+
* Analyze the posts 1 account liked, as /x/users/{id}/likes reads them. Send a
|
|
3352
|
+
* handle, with or without @, a user ID or a profile URL. Send no other posts or
|
|
3353
|
+
* search with it.
|
|
3354
|
+
*/
|
|
3355
|
+
likedBy?: string;
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* Maximum posts to analyze from the search or page. A low credit balance can
|
|
3359
|
+
* return fewer. When the time runs out first, send next_cursor as cursor for the
|
|
3360
|
+
* rest.
|
|
3060
3361
|
*/
|
|
3061
3362
|
limit?: number;
|
|
3062
3363
|
|
|
@@ -3065,6 +3366,26 @@ export interface AnalysisMarketSignalsParams {
|
|
|
3065
3366
|
*/
|
|
3066
3367
|
listId?: string;
|
|
3067
3368
|
|
|
3369
|
+
/**
|
|
3370
|
+
* Analyze the posts of several public Lists in 1 search. Send their IDs or URLs.
|
|
3371
|
+
* listId, when sent, joins them.
|
|
3372
|
+
*/
|
|
3373
|
+
listIds?: Array<string>;
|
|
3374
|
+
|
|
3375
|
+
/**
|
|
3376
|
+
* Analyze 1 account's posts with photos or videos, as its Media tab shows them.
|
|
3377
|
+
* /x/users/{id}/media reads the same posts. Send a handle, with or without @, a
|
|
3378
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
3379
|
+
*/
|
|
3380
|
+
mediaBy?: string;
|
|
3381
|
+
|
|
3382
|
+
/**
|
|
3383
|
+
* X searches to analyze as 1 search. A post matching any of them counts. Each
|
|
3384
|
+
* takes the operators of query. query, when sent, joins them. X searches up to 512
|
|
3385
|
+
* characters, counted with the other search fields.
|
|
3386
|
+
*/
|
|
3387
|
+
queries?: Array<string>;
|
|
3388
|
+
|
|
3068
3389
|
/**
|
|
3069
3390
|
* X search to analyze, with the operators of /x/tweets/search, such as from:nasa
|
|
3070
3391
|
* or lang:en. X searches up to 512 characters, counted with the other search
|
|
@@ -3082,6 +3403,13 @@ export interface AnalysisMarketSignalsParams {
|
|
|
3082
3403
|
*/
|
|
3083
3404
|
quotesOf?: string;
|
|
3084
3405
|
|
|
3406
|
+
/**
|
|
3407
|
+
* Analyze 1 account's posts & replies, as its Replies tab shows them.
|
|
3408
|
+
* /x/users/{id}/replies reads the same posts. Send a handle, with or without @, a
|
|
3409
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
3410
|
+
*/
|
|
3411
|
+
repliesBy?: string;
|
|
3412
|
+
|
|
3085
3413
|
/**
|
|
3086
3414
|
* Analyze the replies in 1 post's conversation. Send its ID or URL.
|
|
3087
3415
|
*/
|
|
@@ -3094,13 +3422,30 @@ export interface AnalysisMarketSignalsParams {
|
|
|
3094
3422
|
sinceTime?: string | number;
|
|
3095
3423
|
|
|
3096
3424
|
/**
|
|
3097
|
-
* Your own texts to analyze, such as drafts
|
|
3098
|
-
* the same as 1 analyzed post.
|
|
3425
|
+
* Your own texts to analyze, such as drafts, as many as the body holds. Reads
|
|
3426
|
+
* nothing from X. Each text costs the same as 1 analyzed post. Texts left when the
|
|
3427
|
+
* time runs out come back in unprocessed_ids.
|
|
3099
3428
|
*/
|
|
3100
3429
|
texts?: Array<string>;
|
|
3101
3430
|
|
|
3102
3431
|
/**
|
|
3103
|
-
*
|
|
3432
|
+
* Analyze 1 post's thread, as /x/tweets/{id}/thread reads it. Send the post's ID
|
|
3433
|
+
* or URL. Send no other posts or search with it.
|
|
3434
|
+
*/
|
|
3435
|
+
threadOf?: string;
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
* Keep only posts about this topic, the same as the Actors' topic input.
|
|
3439
|
+
* AI-powered analysis asks "Is this post about <topic>?" of each post & keeps
|
|
3440
|
+
* scores of 0.5 or more. Only kept posts are analyzed & cost 2 credits each, & a
|
|
3441
|
+
* post the filter drops costs nothing. topicFilter states the cutoff & counts.
|
|
3442
|
+
* Send topic or imageShows, not both.
|
|
3443
|
+
*/
|
|
3444
|
+
topic?: string;
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* Post IDs or post URLs to analyze, as many as the body holds. Posts left when the
|
|
3448
|
+
* time runs out come back in unprocessed_ids.
|
|
3104
3449
|
*/
|
|
3105
3450
|
tweetIds?: Array<string>;
|
|
3106
3451
|
|
|
@@ -3114,6 +3459,12 @@ export interface AnalysisMarketSignalsParams {
|
|
|
3114
3459
|
* Analyze 1 account's posts. Send a handle, with or without @, or a profile URL.
|
|
3115
3460
|
*/
|
|
3116
3461
|
username?: string;
|
|
3462
|
+
|
|
3463
|
+
/**
|
|
3464
|
+
* Analyze the posts of several accounts in 1 search. Send handles, with or
|
|
3465
|
+
* without @, or profile URLs. username, when sent, joins them.
|
|
3466
|
+
*/
|
|
3467
|
+
usernames?: Array<string>;
|
|
3117
3468
|
}
|
|
3118
3469
|
|
|
3119
3470
|
export namespace AnalysisMarketSignalsParams {
|
|
@@ -3132,6 +3483,12 @@ export namespace AnalysisMarketSignalsParams {
|
|
|
3132
3483
|
*/
|
|
3133
3484
|
context?: string;
|
|
3134
3485
|
|
|
3486
|
+
/**
|
|
3487
|
+
* Reads up to 4 images per post with its text, at no extra cost. Images of posts X
|
|
3488
|
+
* marks sensitive stay unread. Send false to analyze the text alone.
|
|
3489
|
+
*/
|
|
3490
|
+
images?: boolean;
|
|
3491
|
+
|
|
3135
3492
|
/**
|
|
3136
3493
|
* Bytes of post, quote & settings the AI reads. Longer posts are cut to fit. Empty
|
|
3137
3494
|
* settings take 219 bytes, so a smaller value gets a 400.
|
|
@@ -3274,12 +3631,31 @@ export interface AnalysisNewsParams {
|
|
|
3274
3631
|
baseline?: Array<AnalysisNewsParams.Baseline>;
|
|
3275
3632
|
|
|
3276
3633
|
/**
|
|
3277
|
-
* The next_cursor of the page before. Send the same search with it.
|
|
3634
|
+
* The next_cursor of the page before. Send the same search or page with it.
|
|
3278
3635
|
*/
|
|
3279
3636
|
cursor?: string;
|
|
3280
3637
|
|
|
3281
3638
|
/**
|
|
3282
|
-
*
|
|
3639
|
+
* Keep only posts whose photos show this, the same as the Actors' imageShows
|
|
3640
|
+
* input. Send charts, screenshots, product_photos, memes or people, or describe it
|
|
3641
|
+
* in words, such as a rocket. AI-powered analysis checks posts with photos X
|
|
3642
|
+
* doesn't mark sensitive & keeps scores of 0.5 or more. Only kept posts are
|
|
3643
|
+
* analyzed & cost 2 credits each. imageFilter states the cutoff & counts. Send
|
|
3644
|
+
* topic or imageShows, not both.
|
|
3645
|
+
*/
|
|
3646
|
+
imageShows?: string;
|
|
3647
|
+
|
|
3648
|
+
/**
|
|
3649
|
+
* Analyze the posts 1 account liked, as /x/users/{id}/likes reads them. Send a
|
|
3650
|
+
* handle, with or without @, a user ID or a profile URL. Send no other posts or
|
|
3651
|
+
* search with it.
|
|
3652
|
+
*/
|
|
3653
|
+
likedBy?: string;
|
|
3654
|
+
|
|
3655
|
+
/**
|
|
3656
|
+
* Maximum posts to analyze from the search or page. A low credit balance can
|
|
3657
|
+
* return fewer. When the time runs out first, send next_cursor as cursor for the
|
|
3658
|
+
* rest.
|
|
3283
3659
|
*/
|
|
3284
3660
|
limit?: number;
|
|
3285
3661
|
|
|
@@ -3288,6 +3664,26 @@ export interface AnalysisNewsParams {
|
|
|
3288
3664
|
*/
|
|
3289
3665
|
listId?: string;
|
|
3290
3666
|
|
|
3667
|
+
/**
|
|
3668
|
+
* Analyze the posts of several public Lists in 1 search. Send their IDs or URLs.
|
|
3669
|
+
* listId, when sent, joins them.
|
|
3670
|
+
*/
|
|
3671
|
+
listIds?: Array<string>;
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Analyze 1 account's posts with photos or videos, as its Media tab shows them.
|
|
3675
|
+
* /x/users/{id}/media reads the same posts. Send a handle, with or without @, a
|
|
3676
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
3677
|
+
*/
|
|
3678
|
+
mediaBy?: string;
|
|
3679
|
+
|
|
3680
|
+
/**
|
|
3681
|
+
* X searches to analyze as 1 search. A post matching any of them counts. Each
|
|
3682
|
+
* takes the operators of query. query, when sent, joins them. X searches up to 512
|
|
3683
|
+
* characters, counted with the other search fields.
|
|
3684
|
+
*/
|
|
3685
|
+
queries?: Array<string>;
|
|
3686
|
+
|
|
3291
3687
|
/**
|
|
3292
3688
|
* X search to analyze, with the operators of /x/tweets/search, such as from:nasa
|
|
3293
3689
|
* or lang:en. X searches up to 512 characters, counted with the other search
|
|
@@ -3305,6 +3701,13 @@ export interface AnalysisNewsParams {
|
|
|
3305
3701
|
*/
|
|
3306
3702
|
quotesOf?: string;
|
|
3307
3703
|
|
|
3704
|
+
/**
|
|
3705
|
+
* Analyze 1 account's posts & replies, as its Replies tab shows them.
|
|
3706
|
+
* /x/users/{id}/replies reads the same posts. Send a handle, with or without @, a
|
|
3707
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
3708
|
+
*/
|
|
3709
|
+
repliesBy?: string;
|
|
3710
|
+
|
|
3308
3711
|
/**
|
|
3309
3712
|
* Analyze the replies in 1 post's conversation. Send its ID or URL.
|
|
3310
3713
|
*/
|
|
@@ -3317,13 +3720,30 @@ export interface AnalysisNewsParams {
|
|
|
3317
3720
|
sinceTime?: string | number;
|
|
3318
3721
|
|
|
3319
3722
|
/**
|
|
3320
|
-
* Your own texts to analyze, such as drafts
|
|
3321
|
-
* the same as 1 analyzed post.
|
|
3723
|
+
* Your own texts to analyze, such as drafts, as many as the body holds. Reads
|
|
3724
|
+
* nothing from X. Each text costs the same as 1 analyzed post. Texts left when the
|
|
3725
|
+
* time runs out come back in unprocessed_ids.
|
|
3322
3726
|
*/
|
|
3323
3727
|
texts?: Array<string>;
|
|
3324
3728
|
|
|
3325
3729
|
/**
|
|
3326
|
-
*
|
|
3730
|
+
* Analyze 1 post's thread, as /x/tweets/{id}/thread reads it. Send the post's ID
|
|
3731
|
+
* or URL. Send no other posts or search with it.
|
|
3732
|
+
*/
|
|
3733
|
+
threadOf?: string;
|
|
3734
|
+
|
|
3735
|
+
/**
|
|
3736
|
+
* Keep only posts about this topic, the same as the Actors' topic input.
|
|
3737
|
+
* AI-powered analysis asks "Is this post about <topic>?" of each post & keeps
|
|
3738
|
+
* scores of 0.5 or more. Only kept posts are analyzed & cost 2 credits each, & a
|
|
3739
|
+
* post the filter drops costs nothing. topicFilter states the cutoff & counts.
|
|
3740
|
+
* Send topic or imageShows, not both.
|
|
3741
|
+
*/
|
|
3742
|
+
topic?: string;
|
|
3743
|
+
|
|
3744
|
+
/**
|
|
3745
|
+
* Post IDs or post URLs to analyze, as many as the body holds. Posts left when the
|
|
3746
|
+
* time runs out come back in unprocessed_ids.
|
|
3327
3747
|
*/
|
|
3328
3748
|
tweetIds?: Array<string>;
|
|
3329
3749
|
|
|
@@ -3337,6 +3757,12 @@ export interface AnalysisNewsParams {
|
|
|
3337
3757
|
* Analyze 1 account's posts. Send a handle, with or without @, or a profile URL.
|
|
3338
3758
|
*/
|
|
3339
3759
|
username?: string;
|
|
3760
|
+
|
|
3761
|
+
/**
|
|
3762
|
+
* Analyze the posts of several accounts in 1 search. Send handles, with or
|
|
3763
|
+
* without @, or profile URLs. username, when sent, joins them.
|
|
3764
|
+
*/
|
|
3765
|
+
usernames?: Array<string>;
|
|
3340
3766
|
}
|
|
3341
3767
|
|
|
3342
3768
|
export namespace AnalysisNewsParams {
|
|
@@ -3355,6 +3781,12 @@ export namespace AnalysisNewsParams {
|
|
|
3355
3781
|
*/
|
|
3356
3782
|
context?: string;
|
|
3357
3783
|
|
|
3784
|
+
/**
|
|
3785
|
+
* Reads up to 4 images per post with its text, at no extra cost. Images of posts X
|
|
3786
|
+
* marks sensitive stay unread. Send false to analyze the text alone.
|
|
3787
|
+
*/
|
|
3788
|
+
images?: boolean;
|
|
3789
|
+
|
|
3358
3790
|
/**
|
|
3359
3791
|
* Bytes of post, quote & settings the AI reads. Longer posts are cut to fit. Empty
|
|
3360
3792
|
* settings take 219 bytes, so a smaller value gets a 400.
|
|
@@ -3497,12 +3929,31 @@ export interface AnalysisSentimentParams {
|
|
|
3497
3929
|
baseline?: Array<AnalysisSentimentParams.Baseline>;
|
|
3498
3930
|
|
|
3499
3931
|
/**
|
|
3500
|
-
* The next_cursor of the page before. Send the same search with it.
|
|
3932
|
+
* The next_cursor of the page before. Send the same search or page with it.
|
|
3501
3933
|
*/
|
|
3502
3934
|
cursor?: string;
|
|
3503
3935
|
|
|
3504
3936
|
/**
|
|
3505
|
-
*
|
|
3937
|
+
* Keep only posts whose photos show this, the same as the Actors' imageShows
|
|
3938
|
+
* input. Send charts, screenshots, product_photos, memes or people, or describe it
|
|
3939
|
+
* in words, such as a rocket. AI-powered analysis checks posts with photos X
|
|
3940
|
+
* doesn't mark sensitive & keeps scores of 0.5 or more. Only kept posts are
|
|
3941
|
+
* analyzed & cost 2 credits each. imageFilter states the cutoff & counts. Send
|
|
3942
|
+
* topic or imageShows, not both.
|
|
3943
|
+
*/
|
|
3944
|
+
imageShows?: string;
|
|
3945
|
+
|
|
3946
|
+
/**
|
|
3947
|
+
* Analyze the posts 1 account liked, as /x/users/{id}/likes reads them. Send a
|
|
3948
|
+
* handle, with or without @, a user ID or a profile URL. Send no other posts or
|
|
3949
|
+
* search with it.
|
|
3950
|
+
*/
|
|
3951
|
+
likedBy?: string;
|
|
3952
|
+
|
|
3953
|
+
/**
|
|
3954
|
+
* Maximum posts to analyze from the search or page. A low credit balance can
|
|
3955
|
+
* return fewer. When the time runs out first, send next_cursor as cursor for the
|
|
3956
|
+
* rest.
|
|
3506
3957
|
*/
|
|
3507
3958
|
limit?: number;
|
|
3508
3959
|
|
|
@@ -3511,6 +3962,26 @@ export interface AnalysisSentimentParams {
|
|
|
3511
3962
|
*/
|
|
3512
3963
|
listId?: string;
|
|
3513
3964
|
|
|
3965
|
+
/**
|
|
3966
|
+
* Analyze the posts of several public Lists in 1 search. Send their IDs or URLs.
|
|
3967
|
+
* listId, when sent, joins them.
|
|
3968
|
+
*/
|
|
3969
|
+
listIds?: Array<string>;
|
|
3970
|
+
|
|
3971
|
+
/**
|
|
3972
|
+
* Analyze 1 account's posts with photos or videos, as its Media tab shows them.
|
|
3973
|
+
* /x/users/{id}/media reads the same posts. Send a handle, with or without @, a
|
|
3974
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
3975
|
+
*/
|
|
3976
|
+
mediaBy?: string;
|
|
3977
|
+
|
|
3978
|
+
/**
|
|
3979
|
+
* X searches to analyze as 1 search. A post matching any of them counts. Each
|
|
3980
|
+
* takes the operators of query. query, when sent, joins them. X searches up to 512
|
|
3981
|
+
* characters, counted with the other search fields.
|
|
3982
|
+
*/
|
|
3983
|
+
queries?: Array<string>;
|
|
3984
|
+
|
|
3514
3985
|
/**
|
|
3515
3986
|
* X search to analyze, with the operators of /x/tweets/search, such as from:nasa
|
|
3516
3987
|
* or lang:en. X searches up to 512 characters, counted with the other search
|
|
@@ -3528,6 +3999,13 @@ export interface AnalysisSentimentParams {
|
|
|
3528
3999
|
*/
|
|
3529
4000
|
quotesOf?: string;
|
|
3530
4001
|
|
|
4002
|
+
/**
|
|
4003
|
+
* Analyze 1 account's posts & replies, as its Replies tab shows them.
|
|
4004
|
+
* /x/users/{id}/replies reads the same posts. Send a handle, with or without @, a
|
|
4005
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
4006
|
+
*/
|
|
4007
|
+
repliesBy?: string;
|
|
4008
|
+
|
|
3531
4009
|
/**
|
|
3532
4010
|
* Analyze the replies in 1 post's conversation. Send its ID or URL.
|
|
3533
4011
|
*/
|
|
@@ -3540,13 +4018,30 @@ export interface AnalysisSentimentParams {
|
|
|
3540
4018
|
sinceTime?: string | number;
|
|
3541
4019
|
|
|
3542
4020
|
/**
|
|
3543
|
-
* Your own texts to analyze, such as drafts
|
|
3544
|
-
* the same as 1 analyzed post.
|
|
4021
|
+
* Your own texts to analyze, such as drafts, as many as the body holds. Reads
|
|
4022
|
+
* nothing from X. Each text costs the same as 1 analyzed post. Texts left when the
|
|
4023
|
+
* time runs out come back in unprocessed_ids.
|
|
3545
4024
|
*/
|
|
3546
4025
|
texts?: Array<string>;
|
|
3547
4026
|
|
|
3548
4027
|
/**
|
|
3549
|
-
*
|
|
4028
|
+
* Analyze 1 post's thread, as /x/tweets/{id}/thread reads it. Send the post's ID
|
|
4029
|
+
* or URL. Send no other posts or search with it.
|
|
4030
|
+
*/
|
|
4031
|
+
threadOf?: string;
|
|
4032
|
+
|
|
4033
|
+
/**
|
|
4034
|
+
* Keep only posts about this topic, the same as the Actors' topic input.
|
|
4035
|
+
* AI-powered analysis asks "Is this post about <topic>?" of each post & keeps
|
|
4036
|
+
* scores of 0.5 or more. Only kept posts are analyzed & cost 2 credits each, & a
|
|
4037
|
+
* post the filter drops costs nothing. topicFilter states the cutoff & counts.
|
|
4038
|
+
* Send topic or imageShows, not both.
|
|
4039
|
+
*/
|
|
4040
|
+
topic?: string;
|
|
4041
|
+
|
|
4042
|
+
/**
|
|
4043
|
+
* Post IDs or post URLs to analyze, as many as the body holds. Posts left when the
|
|
4044
|
+
* time runs out come back in unprocessed_ids.
|
|
3550
4045
|
*/
|
|
3551
4046
|
tweetIds?: Array<string>;
|
|
3552
4047
|
|
|
@@ -3560,6 +4055,12 @@ export interface AnalysisSentimentParams {
|
|
|
3560
4055
|
* Analyze 1 account's posts. Send a handle, with or without @, or a profile URL.
|
|
3561
4056
|
*/
|
|
3562
4057
|
username?: string;
|
|
4058
|
+
|
|
4059
|
+
/**
|
|
4060
|
+
* Analyze the posts of several accounts in 1 search. Send handles, with or
|
|
4061
|
+
* without @, or profile URLs. username, when sent, joins them.
|
|
4062
|
+
*/
|
|
4063
|
+
usernames?: Array<string>;
|
|
3563
4064
|
}
|
|
3564
4065
|
|
|
3565
4066
|
export namespace AnalysisSentimentParams {
|
|
@@ -3578,6 +4079,12 @@ export namespace AnalysisSentimentParams {
|
|
|
3578
4079
|
*/
|
|
3579
4080
|
context?: string;
|
|
3580
4081
|
|
|
4082
|
+
/**
|
|
4083
|
+
* Reads up to 4 images per post with its text, at no extra cost. Images of posts X
|
|
4084
|
+
* marks sensitive stay unread. Send false to analyze the text alone.
|
|
4085
|
+
*/
|
|
4086
|
+
images?: boolean;
|
|
4087
|
+
|
|
3581
4088
|
/**
|
|
3582
4089
|
* Bytes of post, quote & settings the AI reads. Longer posts are cut to fit. Empty
|
|
3583
4090
|
* settings take 219 bytes, so a smaller value gets a 400.
|
|
@@ -3720,12 +4227,31 @@ export interface AnalysisViralScoreParams {
|
|
|
3720
4227
|
baseline?: Array<AnalysisViralScoreParams.Baseline>;
|
|
3721
4228
|
|
|
3722
4229
|
/**
|
|
3723
|
-
* The next_cursor of the page before. Send the same search with it.
|
|
4230
|
+
* The next_cursor of the page before. Send the same search or page with it.
|
|
3724
4231
|
*/
|
|
3725
4232
|
cursor?: string;
|
|
3726
4233
|
|
|
3727
4234
|
/**
|
|
3728
|
-
*
|
|
4235
|
+
* Keep only posts whose photos show this, the same as the Actors' imageShows
|
|
4236
|
+
* input. Send charts, screenshots, product_photos, memes or people, or describe it
|
|
4237
|
+
* in words, such as a rocket. AI-powered analysis checks posts with photos X
|
|
4238
|
+
* doesn't mark sensitive & keeps scores of 0.5 or more. Only kept posts are
|
|
4239
|
+
* analyzed & cost 2 credits each. imageFilter states the cutoff & counts. Send
|
|
4240
|
+
* topic or imageShows, not both.
|
|
4241
|
+
*/
|
|
4242
|
+
imageShows?: string;
|
|
4243
|
+
|
|
4244
|
+
/**
|
|
4245
|
+
* Analyze the posts 1 account liked, as /x/users/{id}/likes reads them. Send a
|
|
4246
|
+
* handle, with or without @, a user ID or a profile URL. Send no other posts or
|
|
4247
|
+
* search with it.
|
|
4248
|
+
*/
|
|
4249
|
+
likedBy?: string;
|
|
4250
|
+
|
|
4251
|
+
/**
|
|
4252
|
+
* Maximum posts to analyze from the search or page. A low credit balance can
|
|
4253
|
+
* return fewer. When the time runs out first, send next_cursor as cursor for the
|
|
4254
|
+
* rest.
|
|
3729
4255
|
*/
|
|
3730
4256
|
limit?: number;
|
|
3731
4257
|
|
|
@@ -3734,6 +4260,26 @@ export interface AnalysisViralScoreParams {
|
|
|
3734
4260
|
*/
|
|
3735
4261
|
listId?: string;
|
|
3736
4262
|
|
|
4263
|
+
/**
|
|
4264
|
+
* Analyze the posts of several public Lists in 1 search. Send their IDs or URLs.
|
|
4265
|
+
* listId, when sent, joins them.
|
|
4266
|
+
*/
|
|
4267
|
+
listIds?: Array<string>;
|
|
4268
|
+
|
|
4269
|
+
/**
|
|
4270
|
+
* Analyze 1 account's posts with photos or videos, as its Media tab shows them.
|
|
4271
|
+
* /x/users/{id}/media reads the same posts. Send a handle, with or without @, a
|
|
4272
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
4273
|
+
*/
|
|
4274
|
+
mediaBy?: string;
|
|
4275
|
+
|
|
4276
|
+
/**
|
|
4277
|
+
* X searches to analyze as 1 search. A post matching any of them counts. Each
|
|
4278
|
+
* takes the operators of query. query, when sent, joins them. X searches up to 512
|
|
4279
|
+
* characters, counted with the other search fields.
|
|
4280
|
+
*/
|
|
4281
|
+
queries?: Array<string>;
|
|
4282
|
+
|
|
3737
4283
|
/**
|
|
3738
4284
|
* X search to analyze, with the operators of /x/tweets/search, such as from:nasa
|
|
3739
4285
|
* or lang:en. X searches up to 512 characters, counted with the other search
|
|
@@ -3751,6 +4297,13 @@ export interface AnalysisViralScoreParams {
|
|
|
3751
4297
|
*/
|
|
3752
4298
|
quotesOf?: string;
|
|
3753
4299
|
|
|
4300
|
+
/**
|
|
4301
|
+
* Analyze 1 account's posts & replies, as its Replies tab shows them.
|
|
4302
|
+
* /x/users/{id}/replies reads the same posts. Send a handle, with or without @, a
|
|
4303
|
+
* user ID or a profile URL. Send no other posts or search with it.
|
|
4304
|
+
*/
|
|
4305
|
+
repliesBy?: string;
|
|
4306
|
+
|
|
3754
4307
|
/**
|
|
3755
4308
|
* Analyze the replies in 1 post's conversation. Send its ID or URL.
|
|
3756
4309
|
*/
|
|
@@ -3763,13 +4316,30 @@ export interface AnalysisViralScoreParams {
|
|
|
3763
4316
|
sinceTime?: string | number;
|
|
3764
4317
|
|
|
3765
4318
|
/**
|
|
3766
|
-
* Your own texts to analyze, such as drafts
|
|
3767
|
-
* the same as 1 analyzed post.
|
|
4319
|
+
* Your own texts to analyze, such as drafts, as many as the body holds. Reads
|
|
4320
|
+
* nothing from X. Each text costs the same as 1 analyzed post. Texts left when the
|
|
4321
|
+
* time runs out come back in unprocessed_ids.
|
|
3768
4322
|
*/
|
|
3769
4323
|
texts?: Array<string>;
|
|
3770
4324
|
|
|
3771
4325
|
/**
|
|
3772
|
-
*
|
|
4326
|
+
* Analyze 1 post's thread, as /x/tweets/{id}/thread reads it. Send the post's ID
|
|
4327
|
+
* or URL. Send no other posts or search with it.
|
|
4328
|
+
*/
|
|
4329
|
+
threadOf?: string;
|
|
4330
|
+
|
|
4331
|
+
/**
|
|
4332
|
+
* Keep only posts about this topic, the same as the Actors' topic input.
|
|
4333
|
+
* AI-powered analysis asks "Is this post about <topic>?" of each post & keeps
|
|
4334
|
+
* scores of 0.5 or more. Only kept posts are analyzed & cost 2 credits each, & a
|
|
4335
|
+
* post the filter drops costs nothing. topicFilter states the cutoff & counts.
|
|
4336
|
+
* Send topic or imageShows, not both.
|
|
4337
|
+
*/
|
|
4338
|
+
topic?: string;
|
|
4339
|
+
|
|
4340
|
+
/**
|
|
4341
|
+
* Post IDs or post URLs to analyze, as many as the body holds. Posts left when the
|
|
4342
|
+
* time runs out come back in unprocessed_ids.
|
|
3773
4343
|
*/
|
|
3774
4344
|
tweetIds?: Array<string>;
|
|
3775
4345
|
|
|
@@ -3783,6 +4353,12 @@ export interface AnalysisViralScoreParams {
|
|
|
3783
4353
|
* Analyze 1 account's posts. Send a handle, with or without @, or a profile URL.
|
|
3784
4354
|
*/
|
|
3785
4355
|
username?: string;
|
|
4356
|
+
|
|
4357
|
+
/**
|
|
4358
|
+
* Analyze the posts of several accounts in 1 search. Send handles, with or
|
|
4359
|
+
* without @, or profile URLs. username, when sent, joins them.
|
|
4360
|
+
*/
|
|
4361
|
+
usernames?: Array<string>;
|
|
3786
4362
|
}
|
|
3787
4363
|
|
|
3788
4364
|
export namespace AnalysisViralScoreParams {
|
|
@@ -3801,6 +4377,12 @@ export namespace AnalysisViralScoreParams {
|
|
|
3801
4377
|
*/
|
|
3802
4378
|
context?: string;
|
|
3803
4379
|
|
|
4380
|
+
/**
|
|
4381
|
+
* Reads up to 4 images per post with its text, at no extra cost. Images of posts X
|
|
4382
|
+
* marks sensitive stay unread. Send false to analyze the text alone.
|
|
4383
|
+
*/
|
|
4384
|
+
images?: boolean;
|
|
4385
|
+
|
|
3804
4386
|
/**
|
|
3805
4387
|
* Bytes of post, quote & settings the AI reads. Longer posts are cut to fit. Empty
|
|
3806
4388
|
* settings take 219 bytes, so a smaller value gets a 400.
|