I
I
Islamfon2015-10-23 10:44:23
In contact with
Islamfon, 2015-10-23 10:44:23

Why VK API method video.search does not return direct links to videos?

I make a simple request:

$xml= simplexml_load_file('https://api.vk.com/method/video.search.xml?q=test&offset=0&count=1&access_token=token&v=5.37');

print_r($xml);

Returns everything except direct links to videos.
Although the documentation says that direct links to files are returned: {}
https://vk.com/dev/video.search

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Rubanyuk, 2015-10-23
@Islamfon

If direct authorization is used in your application , an additional file field is returned containing a link to the video file (if the video is hosted on the VKontakte server) or a link to an external resource (if the video is embedded from some video hosting).

video.search documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question