获取优酷视频信息json的接口

原创
2014/01/24 16:35
阅读数 1.9W

https://openapi.youku.com/v2/videos/show_basic.json?video_id=XNjY1NDA2MDAw&client_id=b10ab8588528b1b1

访问之后拿到的json如

{"id":"XNjY1NDA2MDAw","title":"\u8fd4\u4e61\u6469\u6258\u5927\u519b--2014\u300a\u56de\u5bb6\u300b","description":"\u8fc7\u5e74\u662f\u4e2d\u56fd\u4eba\u7684\u4f20\u7edf\uff0c\u63a5\u8fd1\u5e74\u5c3e\u5230\u5904\u90fd\u662f\u5f52\u4e61\u7684\u6e38\u5b50\u3002\u6211\u4eec\uff0c\u4e00\u7fa4\u8bf4\u8fdc\u4e0d\u8fdc\u8bf4\u8fd1\u4e0d\u8fd1\u7684\u6253\u5de5\u8005\uff0c\u62a2\u4e0d\u5230\u8f66\u7968\u3001\u5750\u4e0d\u8d77\u98de\u673a\uff0c\u53ea\u80fd\u7528\u6211\u4eec\u6700\u7b80\u5355\u7684\u5de5\u5177---\u6469\u6258\u8f66\uff0c\u8e0f\u4e0a\u56de\u5bb6\u7684\u65c5\u7a0b\u3002\u613f\u5927\u5bb6\u5e73\u5e73\u5b89\u5b89\u56de\u5bb6\uff0c\u5feb\u5feb\u4e50\u4e50\u8fc7\u5e74\uff01","thumbnail":"http:\/\/g3.ykimg.com\/0100641F4652E0FCF5C8DD05909D193495D5B6-645F-6D2C-F91D-5A6CD6A1B146","thumbnail_v2":"http:\/\/r3.ykimg.com\/0542040852E0FD0D6A0A3F42CE15E787","duration":"222.96","published":"2014-01-23 19:18:50","copyright_type":"original","public_type":"all","state":"normal","operation_limit":[],"category":"\u8d44\u8baf","streamtypes":["flvhd","hd","3gphd"],"paid":0,"link":"http:\/\/v.youku.com\/v_show\/id_XNjY1NDA2MDAw.html","player":"http:\/\/player.youku.com\/player.php\/sid\/XNjY1NDA2MDAw\/v.swf","user":{"id":"93363481","name":"\u7231\u6469\u6258\u8001\u5510","link":"http:\/\/v.youku.com\/user_show\/id_UMzczNDUzOTI0.html"}}



这样很难分析。

我们只需拿到 http://www.bejson.com/zhuanyi.php 进行在线unicode码转义

就会获得如下数据:

{"id":"XNjY1NDA2MDAw","title":"返乡摩托大军--2014《回家》","description":"过年是中国人的传统,接近年尾到处都是归乡的游子。我们,一群说远不远说近不近的打工者,抢不到车票、坐不起飞机,只能用我们最简单的工具---摩托车,踏上回家的旅程。愿大家平平安安回家,快快乐乐过年!","thumbnail":"http:\/\/g3.ykimg.com\/0100641F4652E0FCF5C8DD05909D193495D5B6-645F-6D2C-F91D-5A6CD6A1B146","thumbnail_v2":"http:\/\/r3.ykimg.com\/0542040852E0FD0D6A0A3F42CE15E787","duration":"222.96","published":"2014-01-23 19:18:50","copyright_type":"original","public_type":"all","state":"normal","operation_limit":[],"category":"资讯","streamtypes":["flvhd","hd","3gphd"],"paid":0,"link":"http:\/\/v.youku.com\/v_show\/id_XNjY1NDA2MDAw.html","player":"http:\/\/player.youku.com\/player.php\/sid\/XNjY1NDA2MDAw\/v.swf","user":{"id":"93363481","name":"爱摩托老唐","link":"http:\/\/v.youku.com\/user_show\/id_UMzczNDUzOTI0.html"}}



这样够清晰了把。

要是还是不觉的清晰 就拿到 http://www.bejson.com/jsonviewernew/ 进行视图查看


展开阅读全文
加载中

作者的其它热门文章

打赏
2
17 收藏
分享
打赏
6 评论
17 收藏
2
分享
返回顶部
顶部
返回顶部
顶部