YouTube API v3 Title Order Possible Bug -
when retrieving videos ordered title keep getting random order.
i have titled of videos in format yyyy_mm_dd_text_text
. expect videos ascending order date. however, returning results in other order cannot figure out. below query results. had replace 'https' text 'xxxxx' post.
request url
get https://www.googleapis.com/youtube/v3/search?order=title&part=snippet&channelid=ucvvbdhej8265d9axk0f8kpw&type=video&maxresults=5&key={your_api_key}
response
200 ok - show headers - { "kind": "youtube#searchlistresponse", "etag": "\"dhbhldw5j8dk10gxev_ug6rsrem/cyrwvo110znyloteeulr-dlnwzk\"", "nextpagetoken": "cauqaa", "pageinfo": { "totalresults": 30, "resultsperpage": 5 }, "items": [ { "kind": "youtube#searchresult", "etag": "\"dhbhldw5j8dk10gxev_ug6rsrem/dfyb30zt6t0mybzuv-28cfrhwmc\"", "id": { "kind": "youtube#video", "videoid": "cky8dbyldpw" }, "snippet": { "publishedat": "2014-07-07t00:55:03.000z", "channelid": "ucvvbdhej8265d9axk0f8kpw", "title": "2014_06_29_thomas_pope", "description": "thomas pope~ 06/29/2014~ matthew 14.", "thumbnails": { "default": { "url": "xxxxx://i.ytimg.com/vi/cky8dbyldpw/default.jpg" }, "medium": { "url": "xxxxx://i.ytimg.com/vi/cky8dbyldpw/mqdefault.jpg" }, "high": { "url": "xxxxx://i.ytimg.com/vi/cky8dbyldpw/hqdefault.jpg" } }, "channeltitle": "cbccolumbus", "livebroadcastcontent": "none" } }, { "kind": "youtube#searchresult", "etag": "\"dhbhldw5j8dk10gxev_ug6rsrem/7uzq0_s30z-8csegd5jixbotxb0\"", "id": { "kind": "youtube#video", "videoid": "5x2dvfxncum" }, "snippet": { "publishedat": "2014-07-08t23:35:19.000z", "channelid": "ucvvbdhej8265d9axk0f8kpw", "title": "2014_07_06_thomas_pope", "description": "thomas pope~ 07/06/2014~ 2 samuel 9.", "thumbnails": { "default": { "url": "xxxxx://i.ytimg.com/vi/5x2dvfxncum/default.jpg" }, "medium": { "url": "xxxxx://i.ytimg.com/vi/5x2dvfxncum/mqdefault.jpg" }, "high": { "url": "xxxxx://i.ytimg.com/vi/5x2dvfxncum/hqdefault.jpg" } }, "channeltitle": "cbccolumbus", "livebroadcastcontent": "none" } }, { "kind": "youtube#searchresult", "etag": "\"dhbhldw5j8dk10gxev_ug6rsrem/ghnmxjn-rk4dnfdz6eln8hseksk\"", "id": { "kind": "youtube#video", "videoid": "62-vb672tqg" }, "snippet": { "publishedat": "2015-01-05t02:00:59.000z", "channelid": "ucvvbdhej8265d9axk0f8kpw", "title": "2014_08_10_thomas_pope", "description": "thomas pope~ 08/10/2014~ \"slowing down\"~ matthew 11; proverbs 21.", "thumbnails": { "default": { "url": "xxxxx://i.ytimg.com/vi/62-vb672tqg/default.jpg" }, "medium": { "url": "xxxxx://i.ytimg.com/vi/62-vb672tqg/mqdefault.jpg" }, "high": { "url": "xxxxx://i.ytimg.com/vi/62-vb672tqg/hqdefault.jpg" } }, "channeltitle": "cbccolumbus", "livebroadcastcontent": "none" } }, { "kind": "youtube#searchresult", "etag": "\"dhbhldw5j8dk10gxev_ug6rsrem/t8r_vx5vacy582n9ynrrs2w1tr4\"", "id": { "kind": "youtube#video", "videoid": "fi3p32kc2lm" }, "snippet": { "publishedat": "2014-06-08t21:30:45.000z", "channelid": "ucvvbdhej8265d9axk0f8kpw", "title": "2014_06_08_thomas_pope", "description": "thomas pope~ 06/08/2014~ genesis 28.", "thumbnails": { "default": { "url": "xxxxx://i.ytimg.com/vi/fi3p32kc2lm/default.jpg" }, "medium": { "url": "xxxxx://i.ytimg.com/vi/fi3p32kc2lm/mqdefault.jpg" }, "high": { "url": "xxxxx://i.ytimg.com/vi/fi3p32kc2lm/hqdefault.jpg" } }, "channeltitle": "cbccolumbus", "livebroadcastcontent": "none" } }, { "kind": "youtube#searchresult", "etag": "\"dhbhldw5j8dk10gxev_ug6rsrem/zkft5mwgdjrazrtl3yg2nf0iapo\"", "id": { "kind": "youtube#video", "videoid": "myrxxo37aic" }, "snippet": { "publishedat": "2014-05-19t23:07:14.000z", "channelid": "ucvvbdhej8265d9axk0f8kpw", "title": "2014_02_23_thomas_pope", "description": "thomas pope~ 02/23/2014~ 1 corinthians 10; genesis 3.", "thumbnails": { "default": { "url": "xxxxx://i.ytimg.com/vi/myrxxo37aic/default.jpg" }, "medium": { "url": "xxxxx://i.ytimg.com/vi/myrxxo37aic/mqdefault.jpg" }, "high": { "url": "xxxxx://i.ytimg.com/vi/myrxxo37aic/hqdefault.jpg" } }, "channeltitle": "cbccolumbus", "livebroadcastcontent": "none" } } ] }
Comments
Post a Comment