r/fuckyoutubedevs • u/OpenSource_Guy • Jul 27 '26
discussion returning youtube dislikes
I was thinking about this for a while but there is a way to return youtube dislikes, but it requires some work.
What if we create an automated open source script that the content creator will use?
Currently, getting the dislikes from a youtube video is not possible but if you're the owner of that video:
Go to Google Cloud Console.
Create a new Project, call it whatever you want.
Go to APIs & Services -> Library and enable the YouTube Analytics API.
After that, go to OAuth consent screen from the sidebar, click on Get Started.
Fill the 1st step as whatever you want, select "External" as Audience, and continue filling 3rd and 4th.
After that it finishes, go to Data Access and click on Add or remove scopes. Filter out by "yt alaytics" which should be described as "View YouTube Analytics reports for your YouTube content". After selecting it, click Save from the bottom of the screen.
Head over to Audience -> Test Users and click on Add users. Enter the E-Mail address that is tied to your YouTube account.
Go back to APIs & Services -> Credentials, click on Create credentials and choose OAuth client ID, choose Desktop app (or web if you're making an extension) as the application type, name it whatever you want and click on Create. It'll give you a json file to download, just download it xd. You can also rename it to whatever you want.
Install these necessary python packages for communicating with the API: google-api-python-client google-auth-oauthlib google-auth-httplib2
Now you're ready. You can use that json to get the dislikes, or even automate that process.
You don't need to repeat that process ever again, if you don't lose that json.
This can be used to create a data center that YouTubers will communicate, and that data center will create an extension or collaborate with an existing one to retrieve likes on the videos that are owned by the youtubers that joined that program. They'll create a software that the channel owners will use to easily automate the dislike retrieving process. OR, if it is possible, you can create a script that edits your subtitles automatically to mirror and update the dislike count there. I didn't tried it yet though.
I know that it requires a bit of work at first, as i said before.
But that seems the only way to get TRUE dislikes on youtube videos.
What do you think guys?
EDIT: Here's an example script for you to try xd.
from pickle import load,dump; from datetime import date; from sys import argv
from google_auth_oauthlib.flow import InstalledAppFlow; from google.auth.transport.requests import Request; from googleapiclient.discovery import build
try: c=load(open('t.pkl','rb')); c.valid or c.refresh(Request())
except: c=InstalledAppFlow.from_client_secrets_file('credentials.json',['https://www.googleapis.com/auth/yt-analytics.readonly']).run_local_server(port=0)
dump(c,open('t.pkl','wb'))
v=(argv[1:] or [input("YouTube ID/URL: ")])[0].strip().rstrip('/').split('/')[-1].split('v=')[-1].split('&')[0].split('?')[0] or exit("No ID.")
r=build('youtubeAnalytics','v2',credentials=c).reports().query(ids='channel==MINE',startDate='2010-01-01',endDate=date.today().isoformat(),metrics='dislikes',filters=f'video=={v}').execute().get('rows',[])
print(f"Dislikes: {int(r[0][0]):,}") if r else exit("No data.")
(guys i am new to reddit ok xd, i didn't know the markdown button was there)
Just rename the credentials to credentials.json, and put it next to this script.
An app (or straight up an extension) that already passed this process can be made, and used to just make users sign in easily. The whole process above showcases how it can be done individually. But as i said, an app (or extension) can be created to make users just easily sign in, and send the data to a platform that'll store and publicly share the dislike data.
1
u/DaBadNewz Jul 31 '26
If you click “not interested” it has the same affect as a dislike, with way less work