当サイトでは実際に購入した商品のみをレビューし、アフェリエイトリンク付きでご紹介しています
【TwitterAPI】2023年仕様変更に対応(32 – Could not authenticate you)


2023年5月、TwitterAPIが仕様変更により、止まりました。
対応の記録をまとめます✍️
目次
2023年5月21日、TwitterAPIが止まりました…
エラーメッセージはこちら👀
tweepy.errors.Unauthorized: 401 Unauthorized
32 - Could not authenticate you.



昨日まで普通に動いていたのに、認証できないと言われました😂



2023年02月から始まったTwitter API有料化騒動の影響でしょうか😅
有料化の情報についてはこちらの記事にまとめています
あわせて読みたい




【Twitter API】有料化の情報、時系列まとめ
TwitterAPIが有料になると、どうなるのでしょう? 普通にTwitterを使っている方への影響は、少ないです。BOTなどの開発者は、お金を払う必要があるかもしれませんǴ…
Twitter Developerにログイン
こちらの手順で復旧しました!🤖✨
STEP
開発者プラットフォームにログイン
あわせて読みたい




X開発者プラットフォーム
ツイートの公開と分析、広告の最適化、独自性のあるカスタマーエクスペリエンスの創出にX API、X Ads API、X for Websitesをご活用ください。
STEP
現在の状況を確認
Projects&Appsを確認すると、使っているはずのAppsがSUSPENDEDになっています😥


対象のAppを開いてみると…


This App has violated Twitter Rules and policies. As a result, it can no longer be accessed. For assistance, submit a support ticket.



そのアプリはTwitterのルールとポリシーに違反しています。その結果、これ以上アクセスすることはできません。支援が必要な場合は、サポートチケットを提出してください。
…とのことです😅
STEP
Downgradeする
Products → Twitter API v2→Downgradeをクリックします





サポートチケットは必要ありませんでした👍



Freeプランでは利用回数が不足してしまう場合は、
課金が必要なのかと思います💸
直りました😆✨‼️



お役に立てたら、是非上記アカウントのフォローをお願いします!🕊


まとめ
2023年02月に始まったTwitter APIの有料化騒動も、これで決着でしょうか👀
大きなサービスの仕様変更は、スケジュール設定や告知が大事だと学びました✍️
最後まで読んでいただき、ありがとうございます。
みなさまの暮らしがより良くなりますように。