Answer the question
In order to leave comments, you need to log in
How to get a direct link to a vk_api photo?
The bottom line is this, I'm writing a bot
that will search for similar pictures in Yandex The
general
form of a request to Yandex is this: and he should get a direct link to this photo, but in attachments VK api throws links in different sizes, which Yandex simply does not perceive, I tried to connect GetById, but it does not work with bots in groups, so I additionally connected a page bot, which is admin of this community and tried to use GetById , but the result is always the same
vk_api.exceptions.ApiError: [200] Access denied, this error indicates that access to the album is denied Although I passed all the necessary parameters in the
form of my request owner-id_photo-id_access-key
Any idea how to get a direct link to a photo? Link must end with .jpg etc.
Answer the question
In order to leave comments, you need to log in
you when you become authorized through oauth2 should specify access rights. read "vk api auth" everything is written there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question