Get user medias
GET /ig/user/media/{user_id}
Profile grid posts. Upstream: feed/user/{id}/.
Request
| Parameter | In | Required | Description |
|---|---|---|---|
user_id | path | yes | Numeric user id |
count | query | no | Page size, 1-50 (default 12) |
max_id | query | no | Cursor 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.