You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/metadata/object-paths.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,20 @@ Use the API recipes below to fill in the "image_small" and "image_thumb" fields
52
52
The "image_small" and "image_thumb" fields can be filled in using YouTube's image API.
53
53
This API is not well documented by Google, but is used by many sites and JS libraries.
54
54
55
+
For most CB collections the recipes will look like:
56
+
57
+
- "object_location" = the full YouTube video link, https://youtu.be/`[youtubeid]`
58
+
- e.g. https://youtu.be/CVXQ3X6Q8oU
59
+
- "image_small" = max quality youtube image api, https://img.youtube.com/vi/`[youtubeid]`/maxresdefault.jpg
60
+
- e.g. https://img.youtube.com/vi/CVXQ3X6Q8oU/maxresdefault.jpg
61
+
- "image_thumb" = high quality youtube image api, https://img.youtube.com/vi/`[youtubeid]`/hqdefault.jpg
62
+
- e.g. https://img.youtube.com/vi/CVXQ3X6Q8oU/hqdefault.jpg
63
+
64
+
### YouTube Image API
65
+
66
+
Below is more information about the YouTube image API incase the recipe suggestions above do not work for your collection.
67
+
Keep in mind you can also manually create your own derivative images for the videos (using screenshots or exports) if the auto generated YouTube options don't meet your needs.
68
+
55
69
Basically, you can get four sizes of the default thumbnail, or four smaller thumbnails from different points in the video.
56
70
You can use the domain "img.youtube.com" or "i3.ytimg.com"
0 commit comments