Search Hashtags
Search for a specific hashtag (max 20 results)
Params
Name | Type | Default | Description |
---|---|---|---|
query (required) | string | – | The search query |
Usage
- Python
- PHP
- cURL
from rocketapi import InstagramAPI
instagram_api = InstagramAPI(token="your-api-key")
print(instagram_api.search_hashtags(query="cats"))
<?php
require('vendor/autoload.php');
use RocketAPI\InstagramAPI;
$api = new InstagramAPI('your-api-key');
print_r($api->searchHashtags('cats'));
curl --request POST \
--url https://v1.rocketapi.io/instagram/hashtag/search \
--header 'Content-Type: application/json' \
--header 'Authorization: Token your-api-key' \
--data '{
"query": "cats"
}'
Response example
Loading...