Get Likes
Retrieve up to 1000 media likes by shortcode.
Params
Name | Type | Default | Description |
---|---|---|---|
shortcode (required) | string | – | Shortcode |
This endpoint does not support pagination.
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.get_media_likes("Ckv3mrWq7W1"))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->getMediaLikes("Ckv3mrWq7W1"));
curl --request POST \
--url https://v1.rocketapi.io/instagram/media/get_likes_by_shortcode \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"shortcode": "Ckv3mrWq7W1"
}'
Response example
Loading...