Skip to main content

Get Media

Retrieve location media by location id.

Params

NameTypeDefaultDescription
id (required)intLocation id
tabstringrecentTab (allowed values: recent or ranked)
pageintNoneUse for pagination
max_idstringNoneUse for pagination

In order to use pagination, you need to use both the max_id and page parameters. You can obtain these values from the response's next_page and next_max_id fields.

Usage

from rocketapi import InstagramAPI


instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_location_media(30630047))

Response example

Loading...