Videos TV & Movies Channels Community

veoh.video.getSimilar

Get the list of similar videos given a video's id

Request URL

HTTP://www.veoh.com/rest/v1/?method=veoh.video.getSimilar&apiKey=[your api key]

HTTP method

POST

Arguments

videoId(Required)
The Id for the video to retrieve, it has to be valid id existed in the system
numOfResults(Required)
The number of results intended to retrieve in this request, it has to be a positive integer greater than 0 and less than or equal to 100.
offset(Required)
The offset from which the results will be retrieved, it has to be 0, or a positive integer within the limit of total number of objects.
type(Required)
The type for the search, the value has to be 'v', 's', 'c', or 'u' for video, series, channel and user respectively.
contentRatingId(Required)
The Id for a contentRating, it has to be valid contentRating id existed in the system
verbose(Optional)
The verbose level of the response. It has to be 0,1,or 2. Default is 2.

Example Response

#EXAMPLERESPONSE#

Error Codes

300 : rest.media.noIdProvided
No Id has been provided in the request
302 : rest.media.idNegative
The Id provided in the request is negative
301 : rest.media.idNotInteger
The Id provided in the request is not a valid integer
100 : rest.api.serviceUnavailable
The REST API service in temporarily unavailable
118 : rest.api.invalidApiKey
The api key provided in the url is not valid.
117 : rest.api.noApiKeyProvided
No api key has been provided in the request.
131 : rest.api.tooManyRequests
The number of requests made has exceeded the limit of this apiKey.
117 : rest.api.noApiKeyProvided
No api key has been provided in the request.
132 : rest.api.gapNotEnough
The request has to be made after a certain period of time associated with this apiKey
114 : rest.api.verboseNotInt
The verbose level provided in the request is not a valid integer
115 : rest.api.invalidVerbose
The verbose level provided in the request is invalid, it has to be 0, 1,or 2
109 : rest.api.noNumOfResultsProvided
No numOfResults has been provided in the request
111 : rest.api.numOfResultsNotInteger
The numOfResults provided in the request is not a valid integer
112 : rest.api.numOfResultsNegative
The numOfResults provided in the request is negative
105 : rest.api.noOffsetProvided
No offset has been provided in the request
107 : rest.api.offsetNotInteger
The offset provided in the request is not a valid integer
108 : rest.api.offsetNegative
The offset provided in the request is negative
704 : rest.api.noObjectTypeProvided
No type has been provided in the request.
313 : rest.media.invalidTypeValue
The type provide in the request is not valid, it has to be one of the values:c,s,v,video,channel,series
329 : rest.media.noContentRatingIdProvided
No content rating id has been provided in the request.
330 : rest.media.contentRatingIdNotInteger
The content rating id provided in the request is not an integer.
331 : rest.media.invalidContentRatingIdValue
The content rating id provided in the request is not valid, a valid content rating id has to be 1, 2, or 3.

API Explorer

API Explorer : veoh.video.getSimilar

Copyright © 2008 Veoh Networks, Inc.  |  Terms of Use  |  Copyright  |  Privacy Policy