x-twitter-scraper 0.3.2 → 0.4.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 +35 -0
- package/README.md +25 -5
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +23 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -17
- package/client.d.ts.map +1 -1
- package/client.js +42 -17
- package/client.js.map +1 -1
- package/client.mjs +42 -17
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +29 -16
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/account.d.mts +59 -3
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +59 -3
- package/resources/account.d.ts.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/compose.d.mts.map +1 -1
- package/resources/compose.d.ts.map +1 -1
- package/resources/compose.mjs.map +1 -1
- package/resources/credits.d.mts +88 -11
- package/resources/credits.d.mts.map +1 -1
- package/resources/credits.d.ts +88 -11
- package/resources/credits.d.ts.map +1 -1
- package/resources/credits.js +37 -4
- package/resources/credits.js.map +1 -1
- package/resources/credits.mjs +37 -4
- package/resources/credits.mjs.map +1 -1
- package/resources/drafts.d.mts +4 -1
- package/resources/drafts.d.mts.map +1 -1
- package/resources/drafts.d.ts +4 -1
- package/resources/drafts.d.ts.map +1 -1
- package/resources/drafts.mjs.map +1 -1
- package/resources/draws.d.mts +33 -8
- package/resources/draws.d.mts.map +1 -1
- package/resources/draws.d.ts +33 -8
- package/resources/draws.d.ts.map +1 -1
- package/resources/draws.js +12 -4
- package/resources/draws.js.map +1 -1
- package/resources/draws.mjs +12 -4
- package/resources/draws.mjs.map +1 -1
- package/resources/events.d.mts +46 -7
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +46 -7
- package/resources/events.d.ts.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/extractions.d.mts +287 -17
- package/resources/extractions.d.mts.map +1 -1
- package/resources/extractions.d.ts +287 -17
- package/resources/extractions.d.ts.map +1 -1
- package/resources/extractions.js +3 -2
- package/resources/extractions.js.map +1 -1
- package/resources/extractions.mjs +3 -2
- package/resources/extractions.mjs.map +1 -1
- package/resources/guest-wallets.d.mts +245 -0
- package/resources/guest-wallets.d.mts.map +1 -0
- package/resources/guest-wallets.d.ts +245 -0
- package/resources/guest-wallets.d.ts.map +1 -0
- package/resources/guest-wallets.js +79 -0
- package/resources/guest-wallets.js.map +1 -0
- package/resources/guest-wallets.mjs +75 -0
- package/resources/guest-wallets.mjs.map +1 -0
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/monitors/index.d.mts +3 -0
- package/resources/monitors/index.d.mts.map +1 -0
- package/resources/monitors/index.d.ts +3 -0
- package/resources/monitors/index.d.ts.map +1 -0
- package/resources/monitors/index.js +9 -0
- package/resources/monitors/index.js.map +1 -0
- package/resources/monitors/index.mjs +4 -0
- package/resources/monitors/index.mjs.map +1 -0
- package/resources/monitors/keywords.d.mts +164 -0
- package/resources/monitors/keywords.d.mts.map +1 -0
- package/resources/monitors/keywords.d.ts +164 -0
- package/resources/monitors/keywords.d.ts.map +1 -0
- package/resources/monitors/keywords.js +80 -0
- package/resources/monitors/keywords.js.map +1 -0
- package/resources/monitors/keywords.mjs +76 -0
- package/resources/monitors/keywords.mjs.map +1 -0
- package/resources/monitors/monitors.d.mts +127 -0
- package/resources/monitors/monitors.d.mts.map +1 -0
- package/resources/monitors/monitors.d.ts +127 -0
- package/resources/monitors/monitors.d.ts.map +1 -0
- package/resources/monitors/monitors.js +84 -0
- package/resources/monitors/monitors.js.map +1 -0
- package/resources/monitors/monitors.mjs +79 -0
- package/resources/monitors/monitors.mjs.map +1 -0
- package/resources/monitors.d.mts +1 -111
- package/resources/monitors.d.mts.map +1 -1
- package/resources/monitors.d.ts +1 -111
- package/resources/monitors.d.ts.map +1 -1
- package/resources/monitors.js +2 -70
- package/resources/monitors.js.map +1 -1
- package/resources/monitors.mjs +1 -68
- package/resources/monitors.mjs.map +1 -1
- package/resources/radar.d.mts +3 -3
- package/resources/radar.d.mts.map +1 -1
- package/resources/radar.d.ts +3 -3
- package/resources/radar.d.ts.map +1 -1
- package/resources/radar.mjs.map +1 -1
- package/resources/shared.d.mts +251 -19
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +251 -19
- package/resources/shared.d.ts.map +1 -1
- package/resources/styles.d.mts.map +1 -1
- package/resources/styles.d.ts.map +1 -1
- package/resources/styles.mjs.map +1 -1
- package/resources/subscribe.d.mts +20 -6
- package/resources/subscribe.d.mts.map +1 -1
- package/resources/subscribe.d.ts +20 -6
- package/resources/subscribe.d.ts.map +1 -1
- package/resources/subscribe.js +12 -4
- package/resources/subscribe.js.map +1 -1
- package/resources/subscribe.mjs +12 -4
- package/resources/subscribe.mjs.map +1 -1
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets.d.mts +9 -7
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts +9 -7
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.js +9 -7
- package/resources/support/tickets.js.map +1 -1
- package/resources/support/tickets.mjs +9 -7
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/trends.d.mts +2 -2
- package/resources/trends.d.mts.map +1 -1
- package/resources/trends.d.ts +2 -2
- package/resources/trends.d.ts.map +1 -1
- package/resources/trends.mjs.map +1 -1
- package/resources/webhooks.d.mts +34 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +34 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +11 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -1
- package/resources/x/account-connection-challenges.d.mts +41 -0
- package/resources/x/account-connection-challenges.d.mts.map +1 -0
- package/resources/x/account-connection-challenges.d.ts +41 -0
- package/resources/x/account-connection-challenges.d.ts.map +1 -0
- package/resources/x/account-connection-challenges.js +27 -0
- package/resources/x/account-connection-challenges.js.map +1 -0
- package/resources/x/account-connection-challenges.mjs +23 -0
- package/resources/x/account-connection-challenges.mjs.map +1 -0
- package/resources/x/accounts.d.mts +13 -41
- package/resources/x/accounts.d.mts.map +1 -1
- package/resources/x/accounts.d.ts +13 -41
- package/resources/x/accounts.d.ts.map +1 -1
- package/resources/x/accounts.js +3 -3
- package/resources/x/accounts.mjs +3 -3
- package/resources/x/accounts.mjs.map +1 -1
- package/resources/x/bookmarks.d.mts +6 -0
- package/resources/x/bookmarks.d.mts.map +1 -1
- package/resources/x/bookmarks.d.ts +6 -0
- package/resources/x/bookmarks.d.ts.map +1 -1
- package/resources/x/bookmarks.mjs.map +1 -1
- package/resources/x/communities/communities.d.mts +50 -14
- package/resources/x/communities/communities.d.mts.map +1 -1
- package/resources/x/communities/communities.d.ts +50 -14
- package/resources/x/communities/communities.d.ts.map +1 -1
- package/resources/x/communities/communities.js +5 -2
- package/resources/x/communities/communities.js.map +1 -1
- package/resources/x/communities/communities.mjs +6 -3
- package/resources/x/communities/communities.mjs.map +1 -1
- package/resources/x/communities/index.d.mts +2 -2
- package/resources/x/communities/index.d.mts.map +1 -1
- package/resources/x/communities/index.d.ts +2 -2
- package/resources/x/communities/index.d.ts.map +1 -1
- package/resources/x/communities/index.js.map +1 -1
- package/resources/x/communities/index.mjs +1 -1
- package/resources/x/communities/index.mjs.map +1 -1
- package/resources/x/communities/join.d.mts +16 -12
- package/resources/x/communities/join.d.mts.map +1 -1
- package/resources/x/communities/join.d.ts +16 -12
- package/resources/x/communities/join.d.ts.map +1 -1
- package/resources/x/communities/join.js +7 -8
- package/resources/x/communities/join.js.map +1 -1
- package/resources/x/communities/join.mjs +7 -8
- package/resources/x/communities/join.mjs.map +1 -1
- package/resources/x/communities/tweets.d.mts +29 -6
- package/resources/x/communities/tweets.d.mts.map +1 -1
- package/resources/x/communities/tweets.d.ts +29 -6
- package/resources/x/communities/tweets.d.ts.map +1 -1
- package/resources/x/communities/tweets.js +5 -2
- package/resources/x/communities/tweets.js.map +1 -1
- package/resources/x/communities/tweets.mjs +5 -2
- package/resources/x/communities/tweets.mjs.map +1 -1
- package/resources/x/communities.d.mts.map +1 -1
- package/resources/x/communities.d.ts.map +1 -1
- package/resources/x/communities.mjs.map +1 -1
- package/resources/x/dm.d.mts +17 -5
- package/resources/x/dm.d.mts.map +1 -1
- package/resources/x/dm.d.ts +17 -5
- package/resources/x/dm.d.ts.map +1 -1
- package/resources/x/dm.js +2 -2
- package/resources/x/dm.js.map +1 -1
- package/resources/x/dm.mjs +2 -2
- package/resources/x/dm.mjs.map +1 -1
- package/resources/x/followers.d.mts +2 -2
- package/resources/x/followers.d.mts.map +1 -1
- package/resources/x/followers.d.ts +2 -2
- package/resources/x/followers.d.ts.map +1 -1
- package/resources/x/followers.mjs.map +1 -1
- package/resources/x/index.d.mts +4 -2
- package/resources/x/index.d.mts.map +1 -1
- package/resources/x/index.d.ts +4 -2
- package/resources/x/index.d.ts.map +1 -1
- package/resources/x/index.js +5 -1
- package/resources/x/index.js.map +1 -1
- package/resources/x/index.mjs +2 -0
- package/resources/x/index.mjs.map +1 -1
- package/resources/x/lists.d.mts +19 -0
- package/resources/x/lists.d.mts.map +1 -1
- package/resources/x/lists.d.ts +19 -0
- package/resources/x/lists.d.ts.map +1 -1
- package/resources/x/lists.mjs.map +1 -1
- package/resources/x/media.d.mts +17 -8
- package/resources/x/media.d.mts.map +1 -1
- package/resources/x/media.d.ts +17 -8
- package/resources/x/media.d.ts.map +1 -1
- package/resources/x/media.js +2 -3
- package/resources/x/media.js.map +1 -1
- package/resources/x/media.mjs +3 -4
- package/resources/x/media.mjs.map +1 -1
- package/resources/x/profile.d.mts +8 -9
- package/resources/x/profile.d.mts.map +1 -1
- package/resources/x/profile.d.ts +8 -9
- package/resources/x/profile.d.ts.map +1 -1
- package/resources/x/profile.js +4 -4
- package/resources/x/profile.js.map +1 -1
- package/resources/x/profile.mjs +5 -5
- package/resources/x/profile.mjs.map +1 -1
- package/resources/x/tweets/index.d.mts.map +1 -1
- package/resources/x/tweets/index.d.ts.map +1 -1
- package/resources/x/tweets/index.mjs.map +1 -1
- package/resources/x/tweets/like.d.mts.map +1 -1
- package/resources/x/tweets/like.d.ts.map +1 -1
- package/resources/x/tweets/like.mjs.map +1 -1
- package/resources/x/tweets/retweet.d.mts.map +1 -1
- package/resources/x/tweets/retweet.d.ts.map +1 -1
- package/resources/x/tweets/retweet.mjs.map +1 -1
- package/resources/x/tweets/tweets.d.mts +442 -29
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +442 -29
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +1 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +1 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/tweets.d.mts.map +1 -1
- package/resources/x/tweets.d.ts.map +1 -1
- package/resources/x/tweets.mjs.map +1 -1
- package/resources/x/users/follow.d.mts.map +1 -1
- package/resources/x/users/follow.d.ts.map +1 -1
- package/resources/x/users/follow.mjs.map +1 -1
- package/resources/x/users/index.d.mts +1 -1
- package/resources/x/users/index.d.mts.map +1 -1
- package/resources/x/users/index.d.ts +1 -1
- package/resources/x/users/index.d.ts.map +1 -1
- package/resources/x/users/index.js.map +1 -1
- package/resources/x/users/index.mjs.map +1 -1
- package/resources/x/users/users.d.mts +666 -9
- package/resources/x/users/users.d.mts.map +1 -1
- package/resources/x/users/users.d.ts +666 -9
- package/resources/x/users/users.d.ts.map +1 -1
- package/resources/x/users/users.js +26 -4
- package/resources/x/users/users.js.map +1 -1
- package/resources/x/users/users.mjs +26 -4
- package/resources/x/users/users.mjs.map +1 -1
- package/resources/x/users.d.mts.map +1 -1
- package/resources/x/users.d.ts.map +1 -1
- package/resources/x/users.mjs.map +1 -1
- package/resources/x/write-actions.d.mts +51 -0
- package/resources/x/write-actions.d.mts.map +1 -0
- package/resources/x/write-actions.d.ts +51 -0
- package/resources/x/write-actions.d.ts.map +1 -0
- package/resources/x/write-actions.js +26 -0
- package/resources/x/write-actions.js.map +1 -0
- package/resources/x/write-actions.mjs +22 -0
- package/resources/x/write-actions.mjs.map +1 -0
- package/resources/x/x.d.mts +65 -12
- package/resources/x/x.d.mts.map +1 -1
- package/resources/x/x.d.ts +65 -12
- package/resources/x/x.d.ts.map +1 -1
- package/resources/x/x.js +10 -1
- package/resources/x/x.js.map +1 -1
- package/resources/x/x.mjs +10 -1
- package/resources/x/x.mjs.map +1 -1
- package/resources/x.d.mts.map +1 -1
- package/resources/x.d.ts.map +1 -1
- package/resources/x.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +86 -40
- package/src/internal/request-options.ts +2 -0
- package/src/internal/utils/log.ts +2 -1
- package/src/resources/account.ts +72 -5
- package/src/resources/credits.ts +117 -10
- package/src/resources/drafts.ts +4 -1
- package/src/resources/draws.ts +33 -12
- package/src/resources/events.ts +52 -7
- package/src/resources/extractions.ts +364 -12
- package/src/resources/guest-wallets.ts +337 -0
- package/src/resources/index.ts +15 -10
- package/src/resources/monitors/index.ts +21 -0
- package/src/resources/monitors/keywords.ts +221 -0
- package/src/resources/monitors/monitors.ts +195 -0
- package/src/resources/monitors.ts +1 -153
- package/src/resources/radar.ts +3 -3
- package/src/resources/shared.ts +463 -21
- package/src/resources/subscribe.ts +29 -8
- package/src/resources/support/tickets.ts +9 -7
- package/src/resources/trends.ts +2 -2
- package/src/resources/webhooks.ts +43 -0
- package/src/resources/x/account-connection-challenges.ts +61 -0
- package/src/resources/x/accounts.ts +15 -46
- package/src/resources/x/bookmarks.ts +6 -0
- package/src/resources/x/communities/communities.ts +68 -16
- package/src/resources/x/communities/index.ts +7 -2
- package/src/resources/x/communities/join.ts +23 -16
- package/src/resources/x/communities/tweets.ts +32 -6
- package/src/resources/x/dm.ts +20 -7
- package/src/resources/x/followers.ts +2 -2
- package/src/resources/x/index.ts +10 -1
- package/src/resources/x/lists.ts +22 -0
- package/src/resources/x/media.ts +25 -11
- package/src/resources/x/profile.ts +11 -12
- package/src/resources/x/tweets/tweets.ts +540 -32
- package/src/resources/x/users/index.ts +4 -0
- package/src/resources/x/users/users.ts +834 -8
- package/src/resources/x/write-actions.ts +79 -0
- package/src/resources/x/x.ts +107 -10
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/api-keys.d.mts +0 -68
- package/resources/api-keys.d.mts.map +0 -1
- package/resources/api-keys.d.ts +0 -68
- package/resources/api-keys.d.ts.map +0 -1
- package/resources/api-keys.js +0 -48
- package/resources/api-keys.js.map +0 -1
- package/resources/api-keys.mjs +0 -44
- package/resources/api-keys.mjs.map +0 -1
- package/resources/bot/bot.d.mts +0 -10
- package/resources/bot/bot.d.mts.map +0 -1
- package/resources/bot/bot.d.ts +0 -10
- package/resources/bot/bot.d.ts.map +0 -1
- package/resources/bot/bot.js +0 -17
- package/resources/bot/bot.js.map +0 -1
- package/resources/bot/bot.mjs +0 -12
- package/resources/bot/bot.mjs.map +0 -1
- package/resources/bot/index.d.mts +0 -3
- package/resources/bot/index.d.mts.map +0 -1
- package/resources/bot/index.d.ts +0 -3
- package/resources/bot/index.d.ts.map +0 -1
- package/resources/bot/index.js +0 -9
- package/resources/bot/index.js.map +0 -1
- package/resources/bot/index.mjs +0 -4
- package/resources/bot/index.mjs.map +0 -1
- package/resources/bot/platform-links.d.mts +0 -4
- package/resources/bot/platform-links.d.mts.map +0 -1
- package/resources/bot/platform-links.d.ts +0 -4
- package/resources/bot/platform-links.d.ts.map +0 -1
- package/resources/bot/platform-links.js +0 -9
- package/resources/bot/platform-links.js.map +0 -1
- package/resources/bot/platform-links.mjs +0 -5
- package/resources/bot/platform-links.mjs.map +0 -1
- package/resources/bot.d.mts +0 -2
- package/resources/bot.d.mts.map +0 -1
- package/resources/bot.d.ts +0 -2
- package/resources/bot.d.ts.map +0 -1
- package/resources/bot.js +0 -6
- package/resources/bot.js.map +0 -1
- package/resources/bot.mjs +0 -3
- package/resources/bot.mjs.map +0 -1
- package/src/resources/api-keys.ts +0 -100
- package/src/resources/bot/bot.ts +0 -15
- package/src/resources/bot/index.ts +0 -4
- package/src/resources/bot/platform-links.ts +0 -5
- package/src/resources/bot.ts +0 -3
|
@@ -166,7 +166,7 @@ export class Tweets extends APIResource {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* Search tweets
|
|
169
|
+
* Search tweets by query, Tweet ID, X status URL, or account date window
|
|
170
170
|
*
|
|
171
171
|
* @example
|
|
172
172
|
* ```ts
|
|
@@ -181,22 +181,18 @@ export class Tweets extends APIResource {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* Tweet author profile. The lookup route always includes follower count and
|
|
185
|
+
* verification state. Other profile fields appear when available.
|
|
185
186
|
*/
|
|
186
|
-
export interface TweetAuthor {
|
|
187
|
-
id: string;
|
|
188
|
-
|
|
187
|
+
export interface TweetAuthor extends Shared.UserProfile {
|
|
189
188
|
followers: number;
|
|
190
189
|
|
|
191
|
-
username: string;
|
|
192
|
-
|
|
193
190
|
verified: boolean;
|
|
194
|
-
|
|
195
|
-
profilePicture?: string;
|
|
196
191
|
}
|
|
197
192
|
|
|
198
193
|
/**
|
|
199
|
-
* Full tweet with text, engagement metrics, media, and metadata.
|
|
194
|
+
* Full tweet with text, engagement metrics, media, and metadata. A zero metric can
|
|
195
|
+
* mean X did not report the count.
|
|
200
196
|
*/
|
|
201
197
|
export interface TweetDetail {
|
|
202
198
|
id: string;
|
|
@@ -215,6 +211,18 @@ export interface TweetDetail {
|
|
|
215
211
|
|
|
216
212
|
viewCount: number;
|
|
217
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Tweet author profile. The lookup route always includes follower count and
|
|
216
|
+
* verification state. Other profile fields appear when available.
|
|
217
|
+
*/
|
|
218
|
+
author?: TweetAuthor;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
222
|
+
* partnership content or AI-generated media.
|
|
223
|
+
*/
|
|
224
|
+
contentDisclosure?: Shared.ContentDisclosure;
|
|
225
|
+
|
|
218
226
|
/**
|
|
219
227
|
* ID of the root tweet in the conversation thread
|
|
220
228
|
*/
|
|
@@ -222,11 +230,36 @@ export interface TweetDetail {
|
|
|
222
230
|
|
|
223
231
|
createdAt?: string;
|
|
224
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Start and end offsets for rendered tweet text
|
|
235
|
+
*/
|
|
236
|
+
displayTextRange?: Array<number>;
|
|
237
|
+
|
|
225
238
|
/**
|
|
226
239
|
* Parsed entities from the tweet text (URLs, mentions, hashtags, media)
|
|
227
240
|
*/
|
|
228
241
|
entities?: { [key: string]: unknown };
|
|
229
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Tweet ID being replied to
|
|
245
|
+
*/
|
|
246
|
+
inReplyToId?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* User ID being replied to
|
|
250
|
+
*/
|
|
251
|
+
inReplyToUserId?: string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Username being replied to
|
|
255
|
+
*/
|
|
256
|
+
inReplyToUsername?: string;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Whether replies are limited for this tweet
|
|
260
|
+
*/
|
|
261
|
+
isLimitedReply?: boolean;
|
|
262
|
+
|
|
230
263
|
/**
|
|
231
264
|
* Whether this is a Note Tweet (long-form post, up to 25,000 characters)
|
|
232
265
|
*/
|
|
@@ -242,46 +275,71 @@ export interface TweetDetail {
|
|
|
242
275
|
*/
|
|
243
276
|
isReply?: boolean;
|
|
244
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Tweet language code
|
|
280
|
+
*/
|
|
281
|
+
lang?: string;
|
|
282
|
+
|
|
245
283
|
/**
|
|
246
284
|
* Attached media items, omitted when the tweet has no media
|
|
247
285
|
*/
|
|
248
|
-
media?: Array<
|
|
286
|
+
media?: Array<Shared.TweetMedia>;
|
|
249
287
|
|
|
250
288
|
/**
|
|
251
|
-
*
|
|
289
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
290
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
291
|
+
* media, and conversation fields appear when available.
|
|
252
292
|
*/
|
|
253
|
-
quoted_tweet?:
|
|
293
|
+
quoted_tweet?: Shared.EmbeddedTweet;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Quoted or retweeted tweet context. Every object includes id, text, and
|
|
297
|
+
* engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
298
|
+
* media, and conversation fields appear when available.
|
|
299
|
+
*/
|
|
300
|
+
retweeted_tweet?: Shared.EmbeddedTweet;
|
|
254
301
|
|
|
255
302
|
/**
|
|
256
303
|
* Client application used to post this tweet
|
|
257
304
|
*/
|
|
258
305
|
source?: string;
|
|
259
|
-
}
|
|
260
306
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
type?: 'photo' | 'video' | 'animated_gif';
|
|
307
|
+
/**
|
|
308
|
+
* Tweet result type
|
|
309
|
+
*/
|
|
310
|
+
type?: string;
|
|
266
311
|
|
|
267
|
-
|
|
268
|
-
|
|
312
|
+
/**
|
|
313
|
+
* Tweet permalink URL
|
|
314
|
+
*/
|
|
315
|
+
url?: string;
|
|
269
316
|
}
|
|
270
317
|
|
|
271
318
|
export interface TweetCreateResponse {
|
|
319
|
+
charged: boolean;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Usage charged for this tweet.
|
|
323
|
+
*/
|
|
324
|
+
chargedCredits: string;
|
|
325
|
+
|
|
272
326
|
success: true;
|
|
273
327
|
|
|
274
328
|
tweetId: string;
|
|
329
|
+
|
|
330
|
+
writeActionId?: string;
|
|
275
331
|
}
|
|
276
332
|
|
|
277
333
|
export interface TweetRetrieveResponse {
|
|
278
334
|
/**
|
|
279
|
-
* Full tweet with text, engagement metrics, media, and metadata.
|
|
335
|
+
* Full tweet with text, engagement metrics, media, and metadata. A zero metric can
|
|
336
|
+
* mean X did not report the count.
|
|
280
337
|
*/
|
|
281
338
|
tweet: TweetDetail;
|
|
282
339
|
|
|
283
340
|
/**
|
|
284
|
-
*
|
|
341
|
+
* Tweet author profile. The lookup route always includes follower count and
|
|
342
|
+
* verification state. Other profile fields appear when available.
|
|
285
343
|
*/
|
|
286
344
|
author?: TweetAuthor;
|
|
287
345
|
}
|
|
@@ -303,15 +361,11 @@ export interface TweetCreateParams {
|
|
|
303
361
|
is_note_tweet?: boolean;
|
|
304
362
|
|
|
305
363
|
/**
|
|
306
|
-
* Array of media URLs to attach
|
|
364
|
+
* Array of public media URLs to attach. Supports up to 4 images or exactly 1 MP4
|
|
365
|
+
* video up to 100 MB. Each URL must be publicly reachable.
|
|
307
366
|
*/
|
|
308
367
|
media?: Array<string>;
|
|
309
368
|
|
|
310
|
-
/**
|
|
311
|
-
* Array of media IDs to attach (mutually exclusive with media)
|
|
312
|
-
*/
|
|
313
|
-
media_ids?: Array<string>;
|
|
314
|
-
|
|
315
369
|
reply_to_tweet_id?: string;
|
|
316
370
|
|
|
317
371
|
/**
|
|
@@ -339,45 +393,323 @@ export interface TweetGetFavoritersParams {
|
|
|
339
393
|
* Pagination cursor for favoriters
|
|
340
394
|
*/
|
|
341
395
|
cursor?: string;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
399
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
400
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
401
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
402
|
+
*/
|
|
403
|
+
pageSize?: number;
|
|
342
404
|
}
|
|
343
405
|
|
|
344
406
|
export interface TweetGetQuotesParams {
|
|
407
|
+
/**
|
|
408
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
409
|
+
* or lines.
|
|
410
|
+
*/
|
|
411
|
+
anyWords?: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
415
|
+
*/
|
|
416
|
+
cashtags?: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Conversation ID filter.
|
|
420
|
+
*/
|
|
421
|
+
conversationId?: string;
|
|
422
|
+
|
|
345
423
|
/**
|
|
346
424
|
* Pagination cursor for quote tweets
|
|
347
425
|
*/
|
|
348
426
|
cursor?: string;
|
|
349
427
|
|
|
428
|
+
/**
|
|
429
|
+
* Exact phrase to match.
|
|
430
|
+
*/
|
|
431
|
+
exactPhrase?: string;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
435
|
+
*/
|
|
436
|
+
excludeWords?: string;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Filter by author username.
|
|
440
|
+
*/
|
|
441
|
+
fromUser?: string;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
445
|
+
*/
|
|
446
|
+
hashtags?: string;
|
|
447
|
+
|
|
350
448
|
/**
|
|
351
449
|
* Include reply quotes (default false)
|
|
352
450
|
*/
|
|
353
451
|
includeReplies?: boolean;
|
|
354
452
|
|
|
453
|
+
/**
|
|
454
|
+
* Only replies to this tweet ID.
|
|
455
|
+
*/
|
|
456
|
+
inReplyToTweetId?: string;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Language code filter, e.g. en or tr.
|
|
460
|
+
*/
|
|
461
|
+
language?: string;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Filter by media type.
|
|
465
|
+
*/
|
|
466
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Filter tweets mentioning a username.
|
|
470
|
+
*/
|
|
471
|
+
mentioning?: string;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Minimum likes threshold.
|
|
475
|
+
*/
|
|
476
|
+
minFaves?: number;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Minimum quote count threshold.
|
|
480
|
+
*/
|
|
481
|
+
minQuotes?: number;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Minimum replies threshold.
|
|
485
|
+
*/
|
|
486
|
+
minReplies?: number;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Minimum retweets threshold.
|
|
490
|
+
*/
|
|
491
|
+
minRetweets?: number;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
495
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
496
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
497
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
498
|
+
* aliases remain accepted.
|
|
499
|
+
*/
|
|
500
|
+
pageSize?: number;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Quote mode.
|
|
504
|
+
*/
|
|
505
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Only quotes of this tweet ID.
|
|
509
|
+
*/
|
|
510
|
+
quotesOfTweetId?: string;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Reply mode.
|
|
514
|
+
*/
|
|
515
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Retweet mode.
|
|
519
|
+
*/
|
|
520
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Only retweets of this tweet ID.
|
|
524
|
+
*/
|
|
525
|
+
retweetsOfTweetId?: string;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Start date in YYYY-MM-DD format.
|
|
529
|
+
*/
|
|
530
|
+
sinceDate?: string;
|
|
531
|
+
|
|
355
532
|
/**
|
|
356
533
|
* Unix timestamp - return quotes posted after this time
|
|
357
534
|
*/
|
|
358
535
|
sinceTime?: string;
|
|
359
536
|
|
|
537
|
+
/**
|
|
538
|
+
* Filter replies sent to a username.
|
|
539
|
+
*/
|
|
540
|
+
toUser?: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* End date in YYYY-MM-DD format.
|
|
544
|
+
*/
|
|
545
|
+
untilDate?: string;
|
|
546
|
+
|
|
360
547
|
/**
|
|
361
548
|
* Unix timestamp - return quotes posted before this time
|
|
362
549
|
*/
|
|
363
550
|
untilTime?: string;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* URL substring or domain filter.
|
|
554
|
+
*/
|
|
555
|
+
url?: string;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Only return tweets from verified authors.
|
|
559
|
+
*/
|
|
560
|
+
verifiedOnly?: boolean;
|
|
364
561
|
}
|
|
365
562
|
|
|
366
563
|
export interface TweetGetRepliesParams {
|
|
564
|
+
/**
|
|
565
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
566
|
+
* or lines.
|
|
567
|
+
*/
|
|
568
|
+
anyWords?: string;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
572
|
+
*/
|
|
573
|
+
cashtags?: string;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Conversation ID filter.
|
|
577
|
+
*/
|
|
578
|
+
conversationId?: string;
|
|
579
|
+
|
|
367
580
|
/**
|
|
368
581
|
* Pagination cursor for tweet replies
|
|
369
582
|
*/
|
|
370
583
|
cursor?: string;
|
|
371
584
|
|
|
585
|
+
/**
|
|
586
|
+
* Exact phrase to match.
|
|
587
|
+
*/
|
|
588
|
+
exactPhrase?: string;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
592
|
+
*/
|
|
593
|
+
excludeWords?: string;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Filter by author username.
|
|
597
|
+
*/
|
|
598
|
+
fromUser?: string;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
602
|
+
*/
|
|
603
|
+
hashtags?: string;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Only replies to this tweet ID.
|
|
607
|
+
*/
|
|
608
|
+
inReplyToTweetId?: string;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Language code filter, e.g. en or tr.
|
|
612
|
+
*/
|
|
613
|
+
language?: string;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Filter by media type.
|
|
617
|
+
*/
|
|
618
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Filter tweets mentioning a username.
|
|
622
|
+
*/
|
|
623
|
+
mentioning?: string;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Minimum likes threshold.
|
|
627
|
+
*/
|
|
628
|
+
minFaves?: number;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Minimum quote count threshold.
|
|
632
|
+
*/
|
|
633
|
+
minQuotes?: number;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Minimum replies threshold.
|
|
637
|
+
*/
|
|
638
|
+
minReplies?: number;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Minimum retweets threshold.
|
|
642
|
+
*/
|
|
643
|
+
minRetweets?: number;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
647
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
648
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
649
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
650
|
+
* aliases remain accepted.
|
|
651
|
+
*/
|
|
652
|
+
pageSize?: number;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Quote mode.
|
|
656
|
+
*/
|
|
657
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Only quotes of this tweet ID.
|
|
661
|
+
*/
|
|
662
|
+
quotesOfTweetId?: string;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Reply mode.
|
|
666
|
+
*/
|
|
667
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Retweet mode.
|
|
671
|
+
*/
|
|
672
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Only retweets of this tweet ID.
|
|
676
|
+
*/
|
|
677
|
+
retweetsOfTweetId?: string;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Start date in YYYY-MM-DD format.
|
|
681
|
+
*/
|
|
682
|
+
sinceDate?: string;
|
|
683
|
+
|
|
372
684
|
/**
|
|
373
685
|
* Unix timestamp - return replies posted after this time
|
|
374
686
|
*/
|
|
375
687
|
sinceTime?: string;
|
|
376
688
|
|
|
689
|
+
/**
|
|
690
|
+
* Filter replies sent to a username.
|
|
691
|
+
*/
|
|
692
|
+
toUser?: string;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* End date in YYYY-MM-DD format.
|
|
696
|
+
*/
|
|
697
|
+
untilDate?: string;
|
|
698
|
+
|
|
377
699
|
/**
|
|
378
700
|
* Unix timestamp - return replies posted before this time
|
|
379
701
|
*/
|
|
380
702
|
untilTime?: string;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* URL substring or domain filter.
|
|
706
|
+
*/
|
|
707
|
+
url?: string;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Only return tweets from verified authors.
|
|
711
|
+
*/
|
|
712
|
+
verifiedOnly?: boolean;
|
|
381
713
|
}
|
|
382
714
|
|
|
383
715
|
export interface TweetGetRetweetersParams {
|
|
@@ -385,6 +717,14 @@ export interface TweetGetRetweetersParams {
|
|
|
385
717
|
* Pagination cursor for retweeters
|
|
386
718
|
*/
|
|
387
719
|
cursor?: string;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Maximum user profiles requested from this page (20-200, default 200). The
|
|
723
|
+
* response can contain fewer profiles because the source returned fewer or
|
|
724
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
725
|
+
* has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
726
|
+
*/
|
|
727
|
+
pageSize?: number;
|
|
388
728
|
}
|
|
389
729
|
|
|
390
730
|
export interface TweetGetThreadParams {
|
|
@@ -392,6 +732,15 @@ export interface TweetGetThreadParams {
|
|
|
392
732
|
* Pagination cursor for thread tweets
|
|
393
733
|
*/
|
|
394
734
|
cursor?: string;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Maximum items requested from this page (1-100, default 20). The response can
|
|
738
|
+
* contain fewer items because the source returned fewer, filters removed items, or
|
|
739
|
+
* the available usage balance covers fewer results. Keep requesting next_cursor while
|
|
740
|
+
* has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
741
|
+
* aliases remain accepted.
|
|
742
|
+
*/
|
|
743
|
+
pageSize?: number;
|
|
395
744
|
}
|
|
396
745
|
|
|
397
746
|
export interface TweetSearchParams {
|
|
@@ -400,30 +749,189 @@ export interface TweetSearchParams {
|
|
|
400
749
|
*/
|
|
401
750
|
q: string;
|
|
402
751
|
|
|
752
|
+
/**
|
|
753
|
+
* Raw advanced search query appended as-is.
|
|
754
|
+
*/
|
|
755
|
+
advancedQuery?: string;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
759
|
+
* or lines.
|
|
760
|
+
*/
|
|
761
|
+
anyWords?: string;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Geo bounding box, e.g. -74.1 40.6 -73.9 40.8.
|
|
765
|
+
*/
|
|
766
|
+
boundingBox?: string;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
770
|
+
*/
|
|
771
|
+
cashtags?: string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Conversation ID filter.
|
|
775
|
+
*/
|
|
776
|
+
conversationId?: string;
|
|
777
|
+
|
|
403
778
|
/**
|
|
404
779
|
* Pagination cursor from previous response
|
|
405
780
|
*/
|
|
406
781
|
cursor?: string;
|
|
407
782
|
|
|
783
|
+
/**
|
|
784
|
+
* Exact phrase to match.
|
|
785
|
+
*/
|
|
786
|
+
exactPhrase?: string;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
790
|
+
*/
|
|
791
|
+
excludeWords?: string;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Filter by author username.
|
|
795
|
+
*/
|
|
796
|
+
fromUser?: string;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
800
|
+
*/
|
|
801
|
+
hashtags?: string;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Only replies to this tweet ID.
|
|
805
|
+
*/
|
|
806
|
+
inReplyToTweetId?: string;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Language code filter, e.g. en or tr.
|
|
810
|
+
*/
|
|
811
|
+
language?: string;
|
|
812
|
+
|
|
408
813
|
/**
|
|
409
814
|
* Max tweets to return (server paginates internally). Omit for single page (~20).
|
|
815
|
+
* This is an upper bound for paid authenticated calls: available usage balance can
|
|
816
|
+
* reduce the returned page size, and zero affordable results returns 402
|
|
817
|
+
* insufficient_credits.
|
|
410
818
|
*/
|
|
411
819
|
limit?: number;
|
|
412
820
|
|
|
413
821
|
/**
|
|
414
|
-
*
|
|
822
|
+
* Search within a list ID.
|
|
823
|
+
*/
|
|
824
|
+
listId?: string;
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Filter by media type.
|
|
828
|
+
*/
|
|
829
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Filter tweets mentioning a username.
|
|
833
|
+
*/
|
|
834
|
+
mentioning?: string;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Minimum likes threshold.
|
|
838
|
+
*/
|
|
839
|
+
minFaves?: number;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Minimum quote count threshold.
|
|
843
|
+
*/
|
|
844
|
+
minQuotes?: number;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Minimum replies threshold.
|
|
848
|
+
*/
|
|
849
|
+
minReplies?: number;
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Minimum retweets threshold.
|
|
853
|
+
*/
|
|
854
|
+
minRetweets?: number;
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Search within a place ID.
|
|
858
|
+
*/
|
|
859
|
+
place?: string;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Search within a country code.
|
|
863
|
+
*/
|
|
864
|
+
placeCountry?: string;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Geo point radius, e.g. -73.99 40.73 25mi.
|
|
868
|
+
*/
|
|
869
|
+
pointRadius?: string;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Sort order - Latest (chronological) or Top (engagement-ranked)
|
|
415
873
|
*/
|
|
416
874
|
queryType?: 'Latest' | 'Top';
|
|
417
875
|
|
|
418
876
|
/**
|
|
419
|
-
*
|
|
877
|
+
* Quote mode.
|
|
878
|
+
*/
|
|
879
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Only quotes of this tweet ID.
|
|
883
|
+
*/
|
|
884
|
+
quotesOfTweetId?: string;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Reply mode.
|
|
888
|
+
*/
|
|
889
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Retweet mode.
|
|
893
|
+
*/
|
|
894
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Only retweets of this tweet ID.
|
|
898
|
+
*/
|
|
899
|
+
retweetsOfTweetId?: string;
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Start date in YYYY-MM-DD format.
|
|
903
|
+
*/
|
|
904
|
+
sinceDate?: string;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* ISO 8601 timestamp - only return tweets after this time
|
|
420
908
|
*/
|
|
421
909
|
sinceTime?: string;
|
|
422
910
|
|
|
423
911
|
/**
|
|
424
|
-
*
|
|
912
|
+
* Filter replies sent to a username.
|
|
913
|
+
*/
|
|
914
|
+
toUser?: string;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* End date in YYYY-MM-DD format.
|
|
918
|
+
*/
|
|
919
|
+
untilDate?: string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* ISO 8601 timestamp - only return tweets before this time
|
|
425
923
|
*/
|
|
426
924
|
untilTime?: string;
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* URL substring or domain filter.
|
|
928
|
+
*/
|
|
929
|
+
url?: string;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Only return tweets from verified authors.
|
|
933
|
+
*/
|
|
934
|
+
verifiedOnly?: boolean;
|
|
427
935
|
}
|
|
428
936
|
|
|
429
937
|
Tweets.Like = Like;
|