Video Search Web Services
Submitting Video Queries
The Video Search service allows you to search the Internet for video clips.
Request URL
http://search.yahooapis.com/VideoSearchService/V1/videoSearch
Request parameters
See information on constructing REST queries
| Parameter | Value | Description |
|---|---|---|
| appid | string (required) | The application ID. See Application IDs for more information. |
| query | string (required) | The query to search for. Use + to include terms, - to exclude terms, and put quotes around "exact phrase". |
| type | all (default), any, or phrase |
The kind of search to submit:
|
| results | integer: default 10, max 50 | The number of results to return. |
| start | integer: default 1 | The starting result position to return (1-based). The finishing position (start + results - 1) cannot exceed 1000. |
| format | any (default), avi, flash, mpeg, msmedia, quicktime, realmedia |
Specifies the kind of video file to search for. You may submit as many values as you wish (format=mpeg&format=quicktime). |
| adult_ok | no value or 1 | The service filters out adult content by default. Enter a 1 to allow adult content. |
| site | string: default no value | A domain to restrict your searches to (e.g. www.yahoo.com). You may submit up to 30 values (site=www.yahoo.com&site=www.cnn.com). |
| output | string: xml (default), json, php | The format for the output. If json is requested, the results will be returned in JSON format. If php is requested, the results will be returned in Serialized PHP format. |
| callback | string | The name of the callback function to wrap around the JSON data. The following characters are allowed: A-Z a-z 0-9 . [] and _. If output=json has not been requested, this parameter has no effect. More information on the callback can be found in the Yahoo! Developer Network JSON Documentation. |
Sample Request Url: http://search.yahooapis.com/VideoSearchService/V1/videoSearch?appid=YahooDemo&query=madonna&results=2
Response fields
The schema document for this service response is located at http://search.yahooapis.com/VideoSearchService/V1/VideoSearchResponse.xsd
| Field | Description |
|---|---|
| ResultSet |
Contains all of the query responses. Has attributes:
|
| Result | Contains each individual response. |
| Title | The title of the video file. |
| Summary | Summary text associated with the video file. |
| Url | The URL for the video file or stream. |
| ClickUrl | The URL for linking to the video file. See URL linking for more information. |
| RefererUrl | The URL of the web page hosting the content. |
| FileSize | The size of the file in bytes. |
| FileFormat |
One of avi, flash, mpeg, msmedia, quicktime, or realmedia. |
| Height | The height of the keyframe Yahoo! extracted from the video in pixels. The video has this height if rendered at 100%. |
| Width | The width of the keyframe Yahoo! extracted from the video in pixels. The video has this width if rendered at 100%. |
| Duration | The duration of the video file in seconds. |
| Channels | The number of channels in the audio. Usually 1 (mono) or 2 (stereo). |
| Streaming | Whether the video file is streaming (true) or not (false). |
| Thumbnail | The URL of the thumbnail file and its height and width in pixels. |
| Publisher | The creator of the video file. |
| Restrictions |
Provides any restrictions for this media object. Restrictions include noframe and noinline.
|
| Copyright | The copyright owner. |
Sample response
The following is a sample response for the query madonna:
Rate Limits
The Video Search API is limited to 5,000 queries per IP address per day and to noncommercial use. See information on rate limiting.
Terms of Use
Please see our Usage Policy to learn about acceptable uses and how to request additional queries.
Errors
The Video Search service returns the standard errors. There are no service-specific errors.
Support & Community
The Video Search API is discussed on the yws-search-general mailing list.
Ready to get started?
By applying for an Application ID for this service, you hereby agree to the Terms of Use
Yahoo! Groups Discussions
view all
Fri, 10 Oct 2008
Newbie Sending a request with accent
Thu, 09 Oct 2008
Re: Getting 'No Valid Host' using unserialized php Yahoo API
Thu, 09 Oct 2008
Thu, 09 Oct 2008


Send Your Suggestions