YepAPI
Instagram API

User Reels

Get reels posted by an Instagram user.

POST/v1/instagram/user-reels
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/instagram/user-reels', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ username: 'natgeo' }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/instagram/user-reels \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "natgeo"}'

Request Body

ParameterTypeRequiredDescriptionDefault
usernamestringYesInstagram username
end_cursorstringNoPagination cursor from previous response

Response

{
  "ok": true,
  "data": {
    "has_next_page": true,
    "end_cursor": "QVFDcE...",
    "reels": [
      {
        "id": "3456789012345678901",
        "shortcode": "C5xAbCdEfGh",
        "caption": "Watch this incredible migration in the Serengeti",
        "like_count": 890000,
        "comment_count": 3400,
        "play_count": 12000000,
        "taken_at": 1712345678,
        "video_duration": 30.5,
        "display_url": "https://scontent.cdninstagram.com/...",
        "video_url": "https://scontent.cdninstagram.com/..."
      }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.has_next_pagebooleanWhether more reels are available
data.end_cursorstringCursor for fetching the next page
data.reelsobject[]Array of reel objects
data.reels[].idstringUnique reel identifier
data.reels[].shortcodestringReel shortcode (used in URLs)
data.reels[].captionstringReel caption text
data.reels[].like_countnumberNumber of likes
data.reels[].comment_countnumberNumber of comments
data.reels[].play_countnumberNumber of plays/views
data.reels[].taken_atnumberUnix timestamp of when the reel was published
data.reels[].video_durationnumberVideo duration in seconds
data.reels[].display_urlstringCover image URL
data.reels[].video_urlstringVideo playback URL

Use the end_cursor value from the response to paginate through reels.

On this page