YouTube Searching with specific country code

YouTube's search function uses the user's country code to search mainly for videos in the region. Therefore, even if you want to search for foreign videos, the user's national video is recommended first.

GOAL

The goal is to implement a feature that searches for user-inputted keywords in a specific language and recommends videos from a specific country.

APIs

First, I used the Papago API to translate the words or sentences entered by the user into the specified language(It's not currently supported). The language detection feature identifies the language entered by the user and translates it into the specified language.

Secondly, the YouTube API is utilized. The API is requested using the country code of the specified language and the translated text. The returned data is then presented as a list in the interface, including the video title, thumbnail, and video link.

Result

This allows users to search for videos from their desired country in the language of their choice, without being limited by their own country.

Attachment

Download the report in Korean

Hyunsol
Hyunsol
student

I’m interested in developing web and database, in addition, I am also studying various fields about CS.

Next

Related