Instagram Multi Hashtag Search

Find posts that match multiple hashtags or locations on Instagram

Table of Contents

Find the IG posts that matter the most

This API will search for multiple hashtags and/or location on Instagram at the same time, then return the posts that match at least two of them.

For example, using #vegan and Paris France as input, you'll know who's talking about vegetables in the most beautiful city in the world!

To get your imagination going, here are some other examples:

  • #sponsored + #healthy: Healthy posts being sponsored on IG right now
  • #beach + #makeup: Makeup products that are beach-ready
  • #ootd + San Francisco California: Who's wearing what in SF today?

You get the idea! There is no limit to the number of hashtags you can use, so if you're feeling like a power user, put more than 2 :)

What will you need? ⚙️

  • List of hashtags and/or locations: Provide a list of hashtags beginning with # (like #phantombuster) or a locations (like New York) and the API will find the IG posts that match at least two of them
  • Session cookie (sessionid): Your Instagram sessionid session cookie (more info below)

Which steps to follow?

1. Create an account on 💻

If you haven't already, create a FREE account on Phantombuster. Our service will browse the web for you. It’s a website automator which runs in the cloud. Once done we'll follow up.

2. Use this API on your account.👌

Now that you're connected to Phantombuster, Click on the following button (it will open a new tab).

3. Click on Configure me!

You'll now see the 3 configuration dots blinking. Click on them.

4. Enter at least two hashtags/locations

In the 1st configuration field, you have to add at least 2 hashtags or locations so that the API can search for those terms in Instagram.

Hashtags and locations are differentiated by the presence of a # in front of the word. Successively enter either a hashtag beginning with # (example: #phantombuster) or a location (example: New York).

You can also enter a Google spreadsheet URL or a CSV with each line containing multiple hashtags or locations in a single cell, separated by commas (ex: 'New York, #selfie'). Each line will be treated as a single multi-hashtag search.

5. Easy & safe authentication

This automation will connect to Instagram on your behalf. The safest and most efficient way for Phantombuster to authenticate as yourself is by using your session cookies.

To make that process as easy as possible you can use Phantombuster's browser extension. It's a 2-click installation.

If you're operating from another browser and/or want to do it manually, here is how to do it.

Click on Launch & Enjoy!

It’s done! All that is left to do is to click on "launch" to try your script!


Instagram limits the number of requests you can do per hour, per account. We've found that in general, after doing a search for 5000 posts, the API will need to pause for at least 15min.


This API will output CSV and/or JSON containing the following fields:

  • profileUrl (Profile URL of post author)
  • profileName (Instagram username of post author)
  • postUrl (Instagram post URL)
  • description (Post description)
  • pubDate (Post publication date)
  • likes (Number of likes the post received)
  • views (Number of views, if the post contains a video)
  • location (Where the photo was taken, if specified)
  • matches (Which hashtags or location lead to this post)
  • postVideo (Link to raw video file, can contains more than one link if the data is available)
  • videoThumbnail (Link to raw video thumbnail, if available)

Share this API

Your friends & colleagues need to know about this!