Skip to content

IG Hashtag Search

Justin Stolpe edited this page May 21, 2022 · 3 revisions

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' ) );
Clone this wiki locally