title: How to get media_id of a post from permalink using Instagram API?
body: <p>I am trying to obtain <code>media_id</code> from the permalink of an Instagram post.</p>
  <p>I know that there exists:</p>
  <pre><code>GET https://graph.facebook.com/{api-version}/?fields=business_discovery.username(username){media,id}&amp;access_token={access-token}
  </code></pre>
  <p>This lets me get <code>media_id</code> for all latest posts from a specific account.</p>
  <p>But that does not help me as I need to get <code>media_id</code> for any particular post instead of any account as my objective is to get <code>media_url</code> of any post using its <code>media_id</code>.</p>
  <p>Also, I could not find anything related in the official Facebook/Instagram API documentation.</p>