Get id by share
Get media id by share code (for links like https://www.instagram.com/share/BA384x3Dn6
).
Params
Name | Type | Default | Description |
---|---|---|---|
share (required) | string | – | Share code |
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_media_id_by_share("BA384x3Dn6"))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->getMediaIdByShare("BA384x3Dn6"));
curl --request POST \
--url https://v1.rocketapi.io/instagram/media/get_id_by_share \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"share": "BA384x3Dn6"
}'
Response example
Loading...