IG Hashtag Search - jstolpe/instagram-graph-api-php-sdk GitHub Wiki

Get the ID for a hashtag.

use Instagram\HashtagSearch\HashtagSearch;

$config = array( // instantiation config params
    'user_id' => '<IG_USER_ID>',
    'access_token' => '<ACCESS_TOKEN>',
);

// instantiate hashtag search
$hashtagSearch = new HashtagSearch( $config );

// get ID for the "developer" hashtag
$hashtagDeveloper = $hashtagSearch->getSelf( 'developer' ) );

// get ID for the "coding" hashtag
$hashtagCoding = $hashtagSearch->getSelf( 'coding' ) );
⚠️ **GitHub.com Fallback** ⚠️