Skip to main content

Get user medias

GET /ig/user/media/{user_id}

Profile grid posts. Upstream: feed/user/{id}/.

Request​

ParameterInRequiredDescription
user_idpathyesNumeric user id
countquerynoPage size, 1-50 (default 12)
max_idquerynoCursor from next_max_id

Response​

{
"items": [
{
"pk": "4003541350560126622",
"id": "4003541350560126622_25025320",
"code": "DePb6WLuVae",
"taken_at": 1760112000,
"media_type": 2,
"product_type": "clips",
"caption": {"text": "...", "user": {}},
"like_count": 625368,
"comment_count": 14923,
"image_versions2": {"candidates": [{"url": "...", "width": 1440, "height": 1800}]},
"video_versions": [{"url": "...", "width": 720, "height": 900}]
}
],
"num_results": 12,
"more_available": true,
"next_max_id": "QVFC...",
"status": "ok"
}
note

media_type: 1 = photo, 2 = video, 8 = carousel (then carousel_media[]). code is the /p/<code>/ shortcode.