YouТube dislike count fetched from API

Well, it was recently when YouTube decided to remove their dislike count from the website. Many people were curious because of this change and wanted to find a way how we could check the actual dislike count of a video.

Fellow colleague Daniel Angelov gave the idea to build a tool to check the dislike count of a video.

So we started working on it with him. It was simple, all we had to do was call an API and show the results.

We were in need of:

  • design
  • parser of the youtube video URL
  • API to get the results

Design

So we started with the design, we had to find something simple that will work for us.

There are plenty of free templates that could be used on the internet. One of the best sources is https://html5up.net/. I have recommended those templates to my students in the university as well.

Parser of YouTube video

We needed a script that will parse the video URL and fetch the id of the video so we could pass it to the API.

Good artists copy, great artists steal

Well, nowadays you don’t need to start from scratch there is plenty of code and plenty of examples that could be used for inspiration or adjustments. Quick search gives you PHP Regex to get youtube video ID?

API to get the results

So we had the design, we had the parser ,we were in a need of an API.

In order to gain access to the API one should:

  1. Create a new project in GCP
  2. Enable YouTube Data API v3
  3. Create an API key
  4. Write the code to fetch results

The results

Well, we managed to get a simple product

We had a tool where you provide your video URL and then you could get the ‘RAW’ results.

What have we missed?

  1. There was a product doing the same thing — YouTube Dislike Button Count but you had to install a browser extension to use it.
  2. YouTube removed dislikes from the API
  1. It is never too late to work on an idea
  2. “Fail early, fail often”
  3. Work in a team! — “Alone we can do so little; together we can do so much.”
  4. You need only a couple of minutes to start

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store