K
K
kirigosh2022-03-28 21:41:03
In contact with
kirigosh, 2022-03-28 21:41:03

How does offset work when searching for videos?

I'm trying to find a video. I make a request like this:

$data = ["access_token"=>$token,
  "v"=>"5.130",
  "q"=>"oxxxymiron",
  "adult"=>1,
  "count"=>200,
  "sort"=>0,
  ];

I get back an array of the first 200 videos. These 200 are not enough for me, then I make an offset and set 200, 400, 600. Only at 600 I get back such an array:
{
"response": {
"count": 129358,
"items": [],
"profiles": [],
"groups": []
}
}


If the video is 129k, then why after 600 I can't see anything, given that I should see the first mower of the video?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2022-03-29
@HemulGM

Why is it difficult to open the documentation? https://dev.vk.com/method/video.search

Note that even when using the offset parameter, only the first 1000 results are available to get information.

The data in the documentation may not be accurate, because. API is updated frequently. Nevertheless, everything is clear that the restrictions have been reduced.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question