Skip to content

Latest commit

 

History

History
620 lines (507 loc) · 16 KB

YOUKU_DOCUMENTATION.md

File metadata and controls

620 lines (507 loc) · 16 KB

Youku OpenAPI - English Documentation

Source: http://open.youku.com/docs
Disclaimer: I used google translate to create this and I haven't tested all these endpoints. I make no guarantees to the accuracy of this document.

Users

Comments

Video

Shows

Playlists/Albums

Search

People

Schemas

OAuth2 Authorization

Image verification

Uploads


Users

##### users/myinfo method: `GET`
parameter type required default
client_id string true
access_token string true
##### users/myinfo method: `GET`
parameter type required default
client_id string true
user_id integer false
user_name string false
##### users/show method: `GET`
parameter type required default
client_id string true
user_id integer false
user_name string false
##### users/show_batch method: `GET`
parameter type required default
client_id string true
user_ids string false
user_names string false

user_ids: comma-separated list of values
user_names: comma-separated list of values

##### users/friendship/followings method: `GET`
parameter type required default
client_id string true
user_id integer false
user_name string false
page integer false 1
count integer false 20
##### users/friendship/followers method: `GET`
parameter type required default
client_id string true
user_id integer false
user_name string false
page integer false 1
count integer false 20
##### users/friendship/create method: `POST`
parameter type required default
client_id string true
access_token string true
user_id integer true
user_name string true
##### users/subscribe/create method: `POST`
parameter type required default
client_id string true
access_token string true
show_id string true
##### users/subscribe/get method: `GET`
parameter type required default
client_id string true
access_token string true
page integer false 1
count integer false 20
##### users/subscribe/notice method: `GET`
parameter type required default
client_id string true
access_token string true

##### comments/show method: `GET`
parameter type required default
client_id string true
comment_id string true
##### comments/show_batch method: `GET`
parameter type required default
client_id string true
comment_ids string true

comment_ids: comma-separated list of values

##### comments/by_video method: `GET`
parameter type required default
client_id string true
video_id string true
page integer false 1
count integer false 20
##### comments/hot/by_video method: `GET`
parameter type required default
client_id string true
video_id string true
page integer false 1
count integer false 20
##### comments/by_me method: `GET`
parameter type required default
client_id string true
access_token string true
page integer false 1
count integer false 20
##### comments/by_mention_me method: `GET`
parameter type required default
client_id string true
access_token string true
page integer false 1
count integer false 20
##### comments/by_reply_me method: `GET`
parameter type required default
client_id string true
access_token string true
page integer false 1
count integer false 20
##### comments/to_me method: `GET`
parameter type required default
client_id string true
access_token string true
page integer false 1
count integer false 20
##### comments/create method: `POST`
parameter type required default
client_id string true
access_token string true
video_id string true
content string true
reply_id string false
captcha_key string false
captcha_text string false
##### comments/destroy method: `GET`
parameter type required default
client_id string true
access_token string true
comment_id string true

##### videos/show_basic method: `GET`
parameter type required default
client_id string true
video_id string false
video_url string false
##### videos/show_basic_batch method: `GET`
parameter type required default
client_id string true
video_ids string true

video_ids: comma-separated list of values

##### videos/show method: `GET`
parameter type required default
client_id string true
video_id string true
ext string false

ext: comma-separated list of values. Each value represents extended information that can be returned. The list can be found here.

##### videos/show_batch method: `GET`
parameter type required default
client_id string true
video_ids string true
ext string false

ext: comma-separated list of values. Each value represents extended information that can be returned. The list can be found here.
video_ids: comma-separated list of values

##### videos/by_me method: `GET`
parameter type required default
client_id string true
access_token string true
orderby string false published
page integer false 1
count integer false 20
last_item json string false

orderby: published/view-count/comment-count/favorite-count

Note: not too sure what last_item does.

##### videos/by_user method: `GET`
parameter type required default
client_id string true
user_id integer false
user_name string false
orderby string false published
page integer false 1
count integer false 20
last_item json string false

orderby: published/view-count/comment-count/favorite-count

Note: not too sure what last_item does.

##### videos/update method: `POST`
parameter type required default
client_id string true
access_token string true
video_id string true
title string false
tags string false
category string false
copyright_type string false
public_type string false
watch_password string false
description string false
thumbnail_seq integer false

title: limited to 2-50 single-byte characters, can't all be numbers
tags: each tag is 2-6 characters or 2-12 letters, no more than 10 tags (my translation on this one was a bit rough)
category: ex. the film
copyright_type: values are original/reproduced
public_type: all (everyone can see), friend (friends only), password (password protected)
watch_password: no idea

##### videos/destroy method: `POST`
parameter type required default
client_id string true
access_token string true
video_id string true
##### videos/by_related method: `GET`
parameter type required default
client_id string true
video_id string true
count integer false 20
##### videos/favorite/by_me method: `GET`
parameter type required default
client_id string true
access_token string true
orderby string false favorite-time
page integer false 1
count integer false 20

orderby: doesn't seem like theres another option other than favorite-time

##### videos/favorite/by_user method: `GET`
parameter type required default
client_id string true
user_id integer false
user_name string false
orderby string false favorite-time
page integer false 1
count integer false 20

orderby: doesn't seem like theres another option other than favorite-time

##### videos/favorite/create method: `POST`
parameter type required default
client_id string true
access_token string true
video_id string true
##### videos/favorite/destroy method: `POST`
parameter type required default
client_id string true
access_token string true
video_id string true
##### videos/by_category method: `GET`
parameter type required default
client_id string true
category string false
genre string false
period string false today
orderby string false published
page integer false 1
count integer false 20

period: today/week/month/history (i believe history is all time)
orderby: published/view-count/comment-count/favorite-count


##### shows/show method: `GET`
parameter type required default
client_id string true
show_id string true
##### shows/show_batch method: `GET`
parameter type required default
client_id string true
show_ids string true

show_ids: comma-separated list of values

##### shows/show_premium method: `GET`
parameter type required default
client_id string true
show_ids string true
page integer false 1
count integer false 20

show_ids: comma-separated list of values

##### shows/by_category method: `GET`
parameter type required default
client_id string true
category string false
genre string false
area string false
release_year integer false
paid string false today
orderby string false published
streamtypes string false
person string false
page integer false 1
count integer false 20

paid: 0 for free, 1 for pay
orderby: view-count/comment-count/reference-count/favorite-count/view-today-count/view-week-count/release-date/score/updated
streamtypes: flvhd/flv/3gphd/3gp/hd/hd2
person: character name or ID

##### shows/by_related method: `GET`
parameter type required default
client_id string true
show_id string true
count integer false 20
##### shows/videos method: `GET`
parameter type required default
client_id string true
show_id string true
show_videotype string true
show_videostage string true
orderby string false published
page integer false 1
count integer false 20

show_videotype: not sure
show_videostage: not sure
orderby: videoseq-asc/videoseq-desc



Search


People


Schemas


OAuth2 Authorization


Image verification


Uploads