-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi-twitter.json
More file actions
3949 lines (3949 loc) · 141 KB
/
openapi-twitter.json
File metadata and controls
3949 lines (3949 loc) · 141 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.1.0",
"info": {
"title": "ScrapeBadger Twitter API",
"description": "The ScrapeBadger Twitter API provides programmatic access to Twitter/X data through a simple REST interface. Retrieve tweets, user profiles, followers, lists, communities, trends, and geographic data — all with a single API key.\n\nAll endpoints require authentication via the `x-api-key` header. Each request consumes credits from your account balance. Paginated endpoints return a `next_cursor` field that you can pass to subsequent requests to retrieve additional pages of results.\n\n**Base URL:** `https://scrapebadger.com/v1/twitter`\n\n**Rate Limits:** Requests are rate-limited per API key. If you exceed your limit, you will receive a `429` response. Implement exponential backoff and retry logic for production use.\n\n**Credits:** Each successful API call deducts credits from your balance. If your balance reaches zero, subsequent requests will return `402 Payment Required`.",
"version": "1.0.0",
"contact": {
"name": "ScrapeBadger Support",
"url": "https://scrapebadger.com",
"email": "support@scrapebadger.com"
}
},
"servers": [
{
"url": "https://scrapebadger.com",
"description": "Production"
}
],
"security": [
{
"apiKey": []
}
],
"tags": [
{
"name": "Tweets",
"description": "Retrieve tweets, search tweets, and access tweet metadata including replies, quotes, retweeters, favoriters, edit history, and community notes."
},
{
"name": "Users",
"description": "Retrieve user profiles, followers, following lists, mentions, subscriptions, and search for users."
},
{
"name": "Lists",
"description": "Access Twitter list details, list tweets, and search within lists."
},
{
"name": "Communities",
"description": "Retrieve community details, community tweets, and search for communities."
},
{
"name": "Trends",
"description": "Get trending topics globally or by location."
},
{
"name": "Geo",
"description": "Search for geographic places and retrieve place details."
},
{
"name": "Spaces",
"description": "Access Twitter Spaces and live broadcast details."
},
{
"name": "Stream Monitors",
"description": "Create and manage real-time stream monitors that track Twitter accounts and deliver new tweets via WebSocket or webhook."
},
{
"name": "Stream Webhooks",
"description": "Manage webhook endpoints for stream monitor delivery. Webhooks receive HMAC-SHA256 signed payloads when new tweets are detected."
},
{
"name": "Stream Logs",
"description": "Access delivery logs and billing logs for stream monitors. Track tweet detection latency, webhook delivery status, and credit consumption."
},
{
"name": "Filter Rules",
"description": "Create and manage filter rules that monitor Twitter using Advanced Search queries at configurable intervals. Delivered via WebSocket or webhook."
}
],
"paths": {
"/v1/twitter/tweets/": {
"get": {
"operationId": "getTweetsByIds",
"summary": "Get tweets by IDs",
"description": "Retrieve multiple tweets by their IDs in a single request. Returns comprehensive tweet data for each requested ID including text, media attachments, engagement metrics, and all available metadata. Useful for bulk tweet lookups and monitoring specific tweets.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweets",
"in": "query",
"required": true,
"description": "Comma-separated list of tweet IDs to retrieve.",
"schema": {
"type": "string",
"example": "1234567890,9876543210"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved tweets.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetsResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/tweet/{tweet_id}": {
"get": {
"operationId": "getTweetDetail",
"summary": "Get tweet details",
"description": "Fetch detailed information about a single tweet. Returns comprehensive tweet data including author info, engagement stats, media attachments, polls, referenced tweets, and edit history. Use this for deep inspection of individual tweets.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweet_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the tweet.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor from a previous response for fetching additional data.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved tweet details.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetData"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/tweet/{tweet_id}/retweeters": {
"get": {
"operationId": "getTweetRetweeters",
"summary": "Get tweet retweeters",
"description": "Get the list of users who retweeted a specific tweet. Returns comprehensive user profile data for each retweeter with pagination support. Useful for analyzing tweet reach and audience engagement.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweet_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the tweet.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved retweeters.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/tweet/{tweet_id}/replies": {
"get": {
"operationId": "getTweetReplies",
"summary": "Get tweet replies",
"description": "Get replies to a specific tweet. Returns comprehensive tweet data for each reply including text, media, engagement metrics, and author information. Supports pagination for tweets with many replies.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweet_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the tweet.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved replies.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetsResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/tweet/{tweet_id}/favoriters": {
"get": {
"operationId": "getTweetFavoriters",
"summary": "Get tweet favoriters",
"description": "Get the list of users who favorited (liked) a specific tweet. Returns comprehensive user profile data for each user who liked the tweet. Useful for audience analysis and engagement tracking.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweet_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the tweet.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved favoriters.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/tweet/{tweet_id}/similar": {
"get": {
"operationId": "getSimilarTweets",
"summary": "Get similar tweets",
"description": "Get tweets that are similar in content or topic to the specified tweet. Returns tweets that Twitter's algorithm considers related. Useful for content discovery and topic analysis.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweet_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the tweet.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved similar tweets.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetsResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/advanced_search": {
"get": {
"operationId": "advancedSearchTweets",
"summary": "Advanced tweet search",
"description": "Search for tweets using advanced query syntax. Supports filtering by Top, Latest, or Media results. Use Twitter's advanced search operators in the query (e.g., `from:username`, `since:2024-01-01`, `min_faves:100`). Essential for monitoring, research, and content discovery.",
"tags": ["Tweets"],
"parameters": [
{
"name": "query",
"in": "query",
"required": true,
"description": "Search query string. Supports Twitter advanced search operators like `from:`, `to:`, `since:`, `until:`, `min_faves:`, `min_retweets:`, `lang:`, etc.",
"schema": {
"type": "string",
"example": "from:elonmusk lang:en"
}
},
{
"name": "query_type",
"in": "query",
"required": false,
"description": "Type of search results to return.",
"schema": {
"type": "string",
"enum": ["Top", "Latest", "Media"],
"default": "Top"
}
},
{
"name": "count",
"in": "query",
"required": false,
"description": "Number of tweets to return per page.",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved search results.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetsResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/tweet/{tweet_id}/edit_history": {
"get": {
"operationId": "getTweetEditHistory",
"summary": "Get tweet edit history",
"description": "Get the edit history of a tweet. Returns all versions of the tweet in chronological order, from the original to the most recent edit. Useful for tracking changes to tweet content over time.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweet_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the tweet.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved edit history.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetsResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/tweet/{tweet_id}/community_notes": {
"get": {
"operationId": "getTweetCommunityNotes",
"summary": "Get community notes",
"description": "Get community notes (formerly Birdwatch) attached to a specific tweet. Community notes provide crowd-sourced context and fact-checking for tweets. Returns note text, status, and creation date.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweet_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the tweet.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved community notes.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CommunityNotesResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/tweet/{tweet_id}/quotes": {
"get": {
"operationId": "getTweetQuotes",
"summary": "Get tweet quotes",
"description": "Get tweets that quote the specified tweet. Returns comprehensive tweet data for each quote tweet including text, media, engagement metrics, and author information. Useful for tracking how a tweet is being discussed and shared.",
"tags": ["Tweets"],
"parameters": [
{
"name": "tweet_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the tweet.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved quote tweets.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetsResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/tweets/article/{article_id}": {
"get": {
"operationId": "getArticleDetail",
"summary": "Get article by ID",
"description": "Get a Twitter Article (long-form post) by its unique ID. Returns the full article content including title, body text, cover image, and author information. Twitter Articles are long-form content published directly on the platform.",
"tags": ["Tweets"],
"parameters": [
{
"name": "article_id",
"in": "path",
"required": true,
"description": "The unique ID of the article.",
"schema": {
"type": "string",
"example": "1234567890123456789"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved article.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ArticleData"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/batch_by_ids": {
"get": {
"operationId": "getUsersByIds",
"summary": "Batch get users by IDs",
"description": "Fetch multiple user profiles by their numeric IDs in a single request. Returns comprehensive user profile data for each requested ID. More efficient than making individual requests when you need data for multiple users.",
"tags": ["Users"],
"parameters": [
{
"name": "user_ids",
"in": "query",
"required": true,
"description": "Comma-separated list of numeric user IDs.",
"schema": {
"type": "string",
"example": "44196397,50393960"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved users.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/batch_by_usernames": {
"get": {
"operationId": "getUsersByUsernames",
"summary": "Batch get users by usernames",
"description": "Fetch multiple user profiles by their usernames (screen names) in a single request. Returns comprehensive user profile data for each requested username. More efficient than making individual requests when you need data for multiple users.",
"tags": ["Users"],
"parameters": [
{
"name": "usernames",
"in": "query",
"required": true,
"description": "Comma-separated list of usernames (without the @ symbol).",
"schema": {
"type": "string",
"example": "elonmusk,jack"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved users.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/{user_id}/by_id": {
"get": {
"operationId": "getUserById",
"summary": "Get user by ID",
"description": "Get a user profile by their numeric Twitter ID. Returns comprehensive profile data including bio, follower/following counts, verification status, and account metadata. Use this when you have the numeric ID and need full profile details.",
"tags": ["Users"],
"parameters": [
{
"name": "user_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the user.",
"schema": {
"type": "string",
"example": "44196397"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved user profile.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserData"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/{username}/by_username": {
"get": {
"operationId": "getUserByUsername",
"summary": "Get user by username",
"description": "Get a user profile by their username (screen name). Returns comprehensive profile data including bio, follower/following counts, verification status, and account metadata. The most common way to look up a user profile.",
"tags": ["Users"],
"parameters": [
{
"name": "username",
"in": "path",
"required": true,
"description": "The username (screen name) of the user, without the @ symbol.",
"schema": {
"type": "string",
"example": "elonmusk"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved user profile.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserData"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/{username}/latest_tweets": {
"get": {
"operationId": "getUserLatestTweets",
"summary": "Get user tweets",
"description": "Get the latest tweets from a specific user's timeline. Returns comprehensive tweet data including text, media, engagement metrics, and all metadata. Supports pagination to retrieve the full tweet history.",
"tags": ["Users"],
"parameters": [
{
"name": "username",
"in": "path",
"required": true,
"description": "The username (screen name) of the user.",
"schema": {
"type": "string",
"example": "elonmusk"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved user tweets.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetsResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/{username}/followers": {
"get": {
"operationId": "getUserFollowers",
"summary": "Get user followers",
"description": "Get the list of followers for a specific user. Returns comprehensive user profile data for each follower with pagination support. Useful for audience analysis and social graph exploration.",
"tags": ["Users"],
"parameters": [
{
"name": "username",
"in": "path",
"required": true,
"description": "The username (screen name) of the user.",
"schema": {
"type": "string",
"example": "elonmusk"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved followers.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/{username}/followings": {
"get": {
"operationId": "getUserFollowings",
"summary": "Get user following",
"description": "Get the list of users that a specific user is following. Returns comprehensive user profile data for each followed account with pagination support. Useful for understanding a user's interests and network.",
"tags": ["Users"],
"parameters": [
{
"name": "username",
"in": "path",
"required": true,
"description": "The username (screen name) of the user.",
"schema": {
"type": "string",
"example": "elonmusk"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved following list.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/{user_id}/subscriptions": {
"get": {
"operationId": "getUserSubscriptions",
"summary": "Get user subscriptions",
"description": "Get the premium account subscriptions for a specific user. Returns the list of accounts that the user subscribes to for premium content. Requires the user's numeric ID.",
"tags": ["Users"],
"parameters": [
{
"name": "user_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the user.",
"schema": {
"type": "string",
"example": "44196397"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved subscriptions.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/search_users": {
"get": {
"operationId": "searchUsers",
"summary": "Search users",
"description": "Search for users by username, display name, or keywords in their bio. Returns matching user profiles with comprehensive data. Useful for finding accounts related to specific topics or interests.",
"tags": ["Users"],
"parameters": [
{
"name": "query",
"in": "query",
"required": true,
"description": "Search query to match against usernames, display names, and bios.",
"schema": {
"type": "string",
"example": "machine learning"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved search results.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/{username}/mentions": {
"get": {
"operationId": "getUserMentions",
"summary": "Get user mentions",
"description": "Get tweets that mention a specific user. Returns tweets containing @username from the latest search results. Useful for monitoring brand mentions, tracking conversations, and reputation management.",
"tags": ["Users"],
"parameters": [
{
"name": "username",
"in": "path",
"required": true,
"description": "The username (screen name) of the user.",
"schema": {
"type": "string",
"example": "elonmusk"
}
},
{
"name": "count",
"in": "query",
"required": false,
"description": "Number of tweets to return per page.",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved mentions.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TweetsResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/users/{user_id}/articles": {
"get": {
"operationId": "getUserArticles",
"summary": "Get user articles",
"description": "Get long-form articles (Twitter Articles) written by a specific user. Returns article metadata including title, body text, cover image, and publication date. Requires the user's numeric ID.",
"tags": ["Users"],
"parameters": [
{
"name": "user_id",
"in": "path",
"required": true,
"description": "The unique numeric ID of the user.",
"schema": {
"type": "string",
"example": "44196397"
}
},
{
"name": "cursor",
"in": "query",
"required": false,
"description": "Pagination cursor for fetching the next page of results.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved articles.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ArticlesResponse"
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"402": { "$ref": "#/components/responses/PaymentRequired" },
"429": { "$ref": "#/components/responses/RateLimitExceeded" }
}
}
},
"/v1/twitter/lists/{list_id}/detail": {
"get": {
"operationId": "getListDetail",
"summary": "Get list details",
"description": "Get detailed information about a Twitter list. Returns comprehensive list details including name, description, member count, subscriber count, visibility mode, and owner information. Useful for understanding list composition before fetching its tweets.",
"tags": ["Lists"],
"parameters": [
{