Get Media by canonical id
Retrieve audio media by audio canonical id.
Params
Name | Type | Default | Description |
---|---|---|---|
id (required) | int | – | Audio canonical id |
max_id | string | None | Use for pagination |
You can use the max_id
parameter to paginate through the media (take from the next_max_id
field of the response).
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_audio_media_by_canonical_id(18268742092099139))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->getAudioMediaByCanonicalId(18268742092099139));
curl --request POST \
--url https://v1.rocketapi.io/instagram/audio/get_media_by_canonical_id \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"id": 18268742092099139
}'
Response example
Loading...