Sandman
Sandman

Reputation: 5580

Youtube v3 API video language

When uploading videos on youtube, there is a Video language field that can be set. Is there a way to use the v3 api to query this field for a specific video?

Upvotes: 5

Views: 4222

Answers (1)

jlmcdonald
jlmcdonald

Reputation: 13667

Not specifically by video language. You have three choices that are sort of close:

You can search by location -- this will limit results to videos within a certain radius of the coordinates you specify (there's also a locationRadius parameter to customize what that radius is).

You can search by region code, which limits results to videos uploaded from a particular country.

You can search by relevanceLanguage -- here, you put in a language, and it will rank results based on relevance to that language. In some cases this is works well for language-based searching, but in other cases you may get videos, not in the language you set here, that are just so highly relevant they are returned anyway (for example, if you set relevanceLanguge to KO for Korean, and then included the search query of 'Taylor Swift,' you'll get a mixture of Korean videos that are relevant to that term as well as things like Vevo music videos).

UPDATE

2 years after I posted this answer, the YouTube Data API v3 was revised to clarify that searching by regionCode no longer limits results to videos uploaded from a country/region, but instead videos viewable within a country/region.

Upvotes: 5

Related Questions