Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Endpoint Access, Is this an issue with the script or with Twitter changing something? #722

Open

Description

@stephen-calm

status = api.PostUpdate('I love python-twitter!')

twitter.error.TwitterError: [{'message': 'You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product', 'code': 453}]

Activity

  1. JohnKun136NVCP commented on Jul 28, 2023

    @JohnKun136NVCP

    May your code is not wrong, I've been same issue, but it's about Twitter's API since if your check this link, you will see that you have to pay to get new environments for your App is working.
    It's my app but it's free so if you see:
    image

    And my endpoints (free plan):
    image
    So if my code is this, it'll be same issue

    api = tweepy.API(auth)
    statuses = api.home_timeline()
    for status in statuses:
        print(statuses.user.screen_name)

    With $100 USD per month (Basic plan):
    image

  2. jeremad commented on Aug 14, 2023

    @jeremad

    Seems like the 1.1 API to post tweets is not a free API anymore, we should switch to the v2 API:

    https://twittercommunity.com/t/understanding-the-error-453-you-currently-have-access-to-a-subset-of-twitter-api-v2-endpoints/200361

    They published an example, the interesting part is after line 51:
    https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/main/Manage-Tweets/create_tweet.py#L51

  3. added a commit that references this issue on Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions