Get Media
Retrieve location media by location id.
Params
| Name | Type | Default | Description | 
|---|---|---|---|
| id (required) | int | – | Location id | 
| tab | string | recent | Tab (allowed values: recentorranked) | 
| page | int | None | Use for pagination | 
| max_id | string | None | Use 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
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_location_media(30630047))
<?php
    require('vendor/autoload.php');
    use RocketAPI\InstagramAPI;
    $api = new InstagramAPI('your-api-key');
    print_r($api->getLocationMedia(30630047));
curl --request POST \
    --url https://v1.rocketapi.io/instagram/location/get_media \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Token your-api-key' \
    --data '{
        "id": 30630047
    }'
Response example
Loading...