Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no way to get all tweet replies. #252

Closed
1guzzy opened this issue Apr 3, 2022 · 3 comments
Closed

There is no way to get all tweet replies. #252

1guzzy opened this issue Apr 3, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@1guzzy
Copy link

1guzzy commented Apr 3, 2022

Is your feature request related to a problem? Please describe.
From my understanding, there is no way to get all the replies of a tweet. It seems like the only way to get the replies of a tweet is to hit the /search/recent route and supply a query param conversation_id which is the tweet id.

Describe the solution you'd like
A function that returns all tweet replies.

Describe alternatives you've considered
It might be possible to use the v2 search function to solve this. The issue with this function is that it requires you supply it some string to search for, when in this case all we need to supply is the query param conversation_id

Additional context
N/A

Sorry if there is already a way to do this and I've missed it!

@alkihis
Copy link
Collaborator

alkihis commented Apr 5, 2022

Hi,
Yeah an implementation with object-only parameter can be made for .v2.search. You can still give an empty string, it should work too.

@1guzzy
Copy link
Author

1guzzy commented Apr 6, 2022

Just double checked, empty string throws this error.

node_modules/twitter-api-v2/dist/client-mixins/request-handler.helper.js:99
        return new types_1.ApiResponseError(errorString, {
               ^
Error: Request failed with code 400 - Invalid Request: One or more parameters to your request was invalid

@alkihis
Copy link
Collaborator

alkihis commented Apr 7, 2022

A solution with .v2.search accepting object-only parameter is available.
But, as twitter doc says, query parameter is required. This isn't a problem with this lib itself. (and no, Twitter provides no other way to get tweet replies - and you're limited to 7 days history with tweets/search/recent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants