Instagram Graph API Response

GET /{ig-user-id}/media

User Media

Displaying recent media from the Instagram Business Account

A colorful sunset over the ocean
Chasing sunsets 🌅 #beachlife #summervibes
PhotoPosted 2 days ago@instagramuser
Behind the scenes at our latest photoshoot! 📸 #fashionweek
VideoPosted 5 days ago@instagramuser
A delicious looking plate of pasta
Homemade pasta night! 🍝 Recipe in bio. #foodie #homecooking
PhotoPosted 1 week ago@instagramuser

API Response Sample


{
  "data": [
    {
      "id": "17895695668004550",
      "caption": "Chasing sunsets 🌅 #beachlife #summervibes",
      "media_type": "IMAGE",
      "media_url": "https://example.com/img1.jpg",
      "permalink": "https://www.instagram.com/p/abcd1234/",
      "thumbnail_url": null,
      "timestamp": "2023-07-15T18:45:00+0000",
      "username": "instagramuser"
    },
    {
      "id": "17895695668004551",
      "caption": "Behind the scenes at our latest photoshoot! 📸 #fashionweek",
      "media_type": "VIDEO",
      "media_url": "https://example.com/video1.mp4",
      "permalink": "https://www.instagram.com/p/efgh5678/",
      "thumbnail_url": "https://example.com/video1_thumbnail.jpg",
      "timestamp": "2023-07-12T14:30:00+0000",
      "username": "instagramuser"
    },
    {
      "id": "17895695668004552",
      "caption": "Homemade pasta night! 🍝 Recipe in bio. #foodie #homecooking",
      "media_type": "IMAGE",
      "media_url": "https://example.com/img2.jpg",
      "permalink": "https://www.instagram.com/p/ijkl9012/",
      "thumbnail_url": null,
      "timestamp": "2023-07-08T20:15:00+0000",
      "username": "instagramuser"
    }
  ],
  "paging": {
    "cursors": {
      "before": "QVFIUmNOeGZA1aGZABZAVhSN1JIeC1B...",
      "after": "QVFIUmNkNkZA2RmNubWpn..."
    },
    "next": "https://graph.facebook.com/v13.0/17841405309211844/media?fields=id%2Ccaption%2Cmedia_type%2Cmedia_url%2Cpermalink%2Cthumbnail_url%2Ctimestamp%2Cusername&limit=25&after=QVFIUmNkNkZA2RmNubWpn..."
  }
}
    

Note: This is a simulated response based on typical Instagram Graph API results. In a real scenario, you would need to provide a valid access token and user ID to receive actual data.