Get location medias
GET /ig/location/media/{pk}
Media by location (sections grid). Upstream: locations/{pk}/sections/.
Request
| Parameter | In | Required | Description |
|---|---|---|---|
pk | path | yes | Numeric location id |
count | query | no | Page size, 1-50 (default 12) |
max_id | query | no | Cursor from next_max_id |
Response
{
"sections": [
{
"layout_type": "media_grid",
"feed_type": "media",
"layout_content": {"medias": [{"media": {}}]}
}
],
"next_max_id": "...",
"more_available": true,
"status": "ok"
}
note
Flatten sections[].layout_content.medias[].media to get a plain media list.