I have a link to a photo post - photo

How to get a direct link to the image of the form https://pp.vk.me/c320525/v320525404/5502/wDguXeHdmZk.jpg to download the Universal Image Loader ?


PS I didn’t find the right method in VK Api to get the link to the photo by its id (213737404_316668269), so there’s no idea but to get the link directly - no.

    1 answer 1

    The docks say that you need to use the photos.getById method:

    https://vk.com/dev/photos.getById?params[photos[=213737404_316668269¶ms[extendedmented=1¶ms[photo_sizes=0¶ms retvms=5.52

    enter image description here

    Those. The final query is:

     https://api.vk.com/method/photos.getById?photos=213737404_316668269 

    The answer is:

     {"response":[{"pid":316668269,"aid":-6,"owner_id":213737404,"src":"http:\/\/cs320525.vk.me\/v320525404\/5501\/Js1OGe3cJMs.jpg","src_big":"http:\/\/cs320525.vk.me\/v320525404\/5502\/wDguXeHdmZk.jpg","src_small":"http:\/\/cs320525.vk.me\/v320525404\/5500\/FfVY13pbe3I.jpg","width":600,"height":600,"text":"","created":1388256629,"post_id":972}]} 
    • one
      So, that means "returns information about photos" ... Thank you :). - user189127