Skip to main content

Get location medias

GET /ig/location/media/{pk}

Media by location (sections grid). Upstream: locations/{pk}/sections/.

Request​

ParameterInRequiredDescription
pkpathyesNumeric location id
countquerynoPage size, 1-50 (default 12)
max_idquerynoCursor 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.