Search code examples
iosobjective-ciphoneinstagraminstagram-api

How to get the Instagram Media_ID of video In Ios.?


I'm am looking for the MediaID of an Instagram video which has been uploaded. It should look like 1234567894561231236_33215652

I use the instagram document @" https://www.instagram.com/developer/embedding/ but this are done by manually..?

I want this programatically using Instagram API or any other way..?

please help me?


Solution

  • You can use this API:

    https://api.instagram.com/v1/media/shortcode/{short-code}?access_token=ACCESS-TOKEN
    

    https://www.instagram.com/developer/endpoints/media/#get_media_by_shortcode

    {short-code} is the code in Instagram URL: for example BOn2hFYjz5a in https://www.instagram.com/p/BOn2hFYjz5a/