question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Twitter API v2

See original GitHub issue

Now that the new Twitter API has been launched, support for it needs to be added in Tweepy. This is planned to be part of v4.0.

v3.10 will be released first, as the last version to support Python 2.7 (and probably Python 3.5). My goal is to get v3.10 out before the end of the year and then work on dropping support for Python 2. v3.10 has been released now, and support for Python 2.7 and 3.5 has been dropped. Afterwards, This will be the next priority, along with support for asyncio.

Initial support for Twitter API v2 has been added with Tweepy v4.0. Support for additional endpoints and features have been added with Tweepy v4.1, v4.2, v4.3, v4.4, v4.5, and v4.6.

Support for new endpoints and features will be tracked in new individual issues.

Endpoints to support

Tweets

Filtered stream
Hide replies
Likes (lookup + manage)
Manage Tweets
Retweets
Search Tweets (full-archive + recent)
Timelines
Tweet counts
Tweet lookup
Volume streams

Users

Blocks (lookup + manage)
Follows (lookup + manage)
Mutes (lookup + manage)
User lookup

Spaces

Search Spaces
Spaces lookup (buyers, Tweets)

Lists (lookup + manage)

List Tweets lookup
List follows
List lookup
List members
Manage Lists
Pinned Lists

Compliance

Batch Compliance

Addendum

Support for Labs (~~https://developer.twitter.com/en/products/labs~~)
COVID-19 stream (#1790)
Additional Resources

https://developer.twitter.com/en/docs/twitter-api/early-access https://developer.twitter.com/en/docs/twitter-api/migrate https://developer.twitter.com/en/products/twitter-api/early-access/guide https://blog.twitter.com/developer/en_us/topics/tools/2020/introducing_new_twitter_api.html https://twittercommunity.com/t/announcing-early-access-to-the-next-generation-of-the-twitter-api/139612

https://twittercommunity.com/t/blocks-and-likes-endpoints-are-now-complete-on-the-twitter-api-v2/154434

https://blog.twitter.com/developer/en_us/topics/tools/2021/shape-the-future-of-twitter-spaces

https://twittercommunity.com/t/announcing-oauth-2-0-beta/159189

Old Postscript

I’d like to apologize for the delay in responding to @andypiper and others about this in #1345, #1396, and #1423, as well as on Discord. I’ve (I think understandably) fallen behind a bit this year in my plans for Tweepy and in keeping up with issues and Discord messages, but I’m working on catching back up.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:26
  • Comments:41 (37 by maintainers)

github_iconTop GitHub Comments

9reactions
Harmon758commented, Apr 4, 2021

Most of the endpoints should now be part of the api-v2 branch / PR #1535. Once that PR is ready, I’ll take it out of its draft state and leave it open for a few weeks for people to test and review. Afterwards, it’ll be merged into the master branch. As for v4.0 itself, there’s other features (https://github.com/tweepy/tweepy/milestone/11) that I want to include in it before it’s released.

2reactions
Harmon758commented, Feb 24, 2022

v4.6.0 (#1824) has been released with support for streaming, the new Retweets lookup and Likes lookup endpoint parameters, the new sort_order parameter for search endpoints, and the new Tweets shared in a Space endpoint and RSVP count field for Spaces 🎉

With this release, Tweepy now fully supports all of Twitter API v2, almost exactly a year after the initial implementation for Twitter API v2 support was pushed. New individual issues will be created for any future new Twitter API v2 endpoints and features.

(The COVID-19 stream is the only remaining active portion of Labs and support for it is being tracked in #1790.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Twitter API v2 support | Twitter Developer Platform
Twitter API v2 is the latest version available for all developers. Here we answer frequently asked questions on Twitter API v2 setup, features...
Read more >
Twitter API Documentation | Docs | Twitter Developer Platform
The Twitter API enables programmatic access to Twitter in unique and advanced ways. Tap into core elements of Twitter like: Tweets, Direct Messages,...
Read more >
Step-by-step guide to making your first request to the Twitter ...
This is a detailed walkthrough of all the basic steps for getting started with Twitter API v2 from sign up to endpoint request....
Read more >
Twitter API v2 tools & libraries | Docs - Twitter Developers
Twitter -built v2 tools and libraries. Twitter maintains a set of official libraries and SDKs, listed here. We also include a list of...
Read more >
Twitter API Support | Twitter Developer Platform
Get answers and support while building with the Twitter API. · General → · Error troubleshooting → · Developer account → · Developer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found