arunk2
arunk2

Reputation: 2426

Upload media with Instagram API

Currently we are integrating Instragram with our platform and need a feature to automatically upload media (like youtube and facebook). We have gone thorugh the developer portal and found no documentation about media upload. I have googled for a while and no positive results. The below url(instagram offical API) lists the endpoint. It only has GET media related APIs https://www.instagram.com/developer/endpoints/media/

Question:

Has anyone been in similar situation? is there anywork around?

Upvotes: 5

Views: 4238

Answers (2)

Saulo M
Saulo M

Reputation: 328

This is now possible with the Instagram API. Here are some examples from their docs:

UPLOAD MEDIA

curl -X POST "https://graph.instagram.com/v22.0/<IG_ID>/media"
 -H "Content-Type: application/json" 
 -d '{
       "image_url":"https://www.example.com/images/bronz-fonz.jpg"
     }'

PUBLISH

curl -X POST "https://graph.instagram.com/v22.0/<IG_ID>/media_publish"
 -H "Content-Type: application/json" 
 -d '{
       "creation_id=<IG_CONTAINER_ID>"
     }'

Upvotes: 0

arunk2
arunk2

Reputation: 2426

After spending considerable amount of time, Concluded that - as of today it is not possible legally. The workarounds seems to reverse engineer the actual media post by Instagram. And strict against the privacy policy and Instagram can take legal action. Hence, as of today

Media cannot be uploaded with Instagram API

However, you can

  • Add/Remove comments on a media
  • Set/Remove Like on a media

with Instagram API.

Hope it will save someone time, unless Instagram revisits its APIs on media.

Upvotes: 4

Related Questions