Platforms · Instagram

Instagram Search Scraper API

Returns mixed Instagram search matches for a query: accounts, hashtags, and places in one payload, the same mix Instagram's own search box shows.

GET /api/v1/data/instagram/search · 1 credit per call · The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Inputs

  • query (required): An account, hashtag or place name as typed in Instagram's search box (a name, not a topic sentence). For posts about a topic use instagram/search/reels.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.hashtags (array): Matching hashtags, in Instagram's order.
  • source_data.hashtags.id (string): The hashtag's id.
  • source_data.hashtags.media_count (number): How many posts use the hashtag.
  • source_data.hashtags.name (string): The hashtag, without the #.
  • source_data.hashtags.position (integer): Where Instagram ranks the hashtag in the mixed results.
  • source_data.hashtags.search_result_subtitle (string): A line Instagram shows under the hashtag, or null.
  • source_data.keywords (array): Keyword suggestions for the search. Often empty.
  • source_data.places (array): Matching places, in Instagram's order.
  • source_data.places.facebook_places_id (string): The place's id on Facebook.
  • source_data.places.id (string): The place's Instagram id.
  • source_data.places.name (string): The place name.
  • source_data.places.position (integer): Where Instagram ranks the place in the mixed results.
  • source_data.places.subtitle (string): The place's address or area. Empty when Instagram gives none.
  • source_data.places.title (string): The place name as Instagram titles it.
  • source_data.query (string): The search text, as Instagram received it.
  • source_data.rank_token (string): Instagram's token for this search.
  • source_data.users (array): Matching accounts, in Instagram's order.
  • source_data.users.full_name (string): The account's display name.
  • source_data.users.id (string): The account's numeric Instagram id.
  • source_data.users.is_verified (boolean): Whether the account is verified.
  • source_data.users.position (integer): Where Instagram ranks the account in the mixed results.
  • source_data.users.profile_pic_url (string): A link to the account's profile picture.
  • source_data.users.username (string): The account's handle, without the @.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 1 credit. A call that finds nothing, or fails, is free.
  • The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Example call

GET /api/v1/data/instagram/search?query=nike

Questions

How much does the Instagram Search API cost?

Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send query. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Do I need an Instagram account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Instagram endpoints

More Instagram scraper APIs