Error: API call to youtube.videos.insert failed with error: The <code>snippet.categoryId</code> property specifies an invalid category ID.
When you see this error in "Upload Video (Beta)", it means the category ID you used isn't supported by YouTube's API. YouTube has many categories, but only a few are accessible. The API provides a list of categories along with their IDs and parameters, indicating whether they're accessible in a specific region.
E.g. Categories for USA:
Error Message for Unsupported Category ID:
If you encounter this error, it means the category ID you provided is not supported:
API call to youtube.videos.insert failed with error: The <code>snippet.categoryId</code> property specifies an invalid category ID. Use the <code><a href="/youtube/v3/docs/videoCategories/list">videoCategories.list</a></code> method to retrieve supported categories.
Note:
Only category IDs with the assignable value set to true will work. You can verify whether categories are assignable by using the "List Video Categories" action.