How do I search Instagram hashtags via API?

Updated on · Sources

GET /instagram/search with a keyword returns the matching Instagram accounts, hashtags and places, the same groups Instagram's own search shows. There's no SocialAPIs endpoint that lists every post under a hashtag; for posts by topic, use accounts or places (/instagram/location/posts).

Meta's official option

Meta's Instagram API has a hashtag search for apps using Facebook Login: it needs the Instagram Public Content Access feature, and as of November 2026 Meta's docs cap it at 30 unique hashtags within a 7 day period.

Meta: IG Hashtag Search ↗

How to do it with SocialAPIs

Pass any word as keyword (no #), and page through with end_cursor. Each call costs 1 credit.

To follow a topic, find the accounts that post about it here, then read their posts with /instagram/profile/posts; for a place, take its location ID and call /instagram/location/posts.

Endpoints

  • GET /instagram/search1 credit

    Search Instagram by keyword and get popular results (users, hashtags, places).

    Params: keyword (required), end_cursor

    Instagram Popular Search: docs and playgroundMCP: instagram_search → search

  • GET /instagram/location/posts1 credit

    Get Instagram posts from a specific location (ranked or recent).

    Params: location_id (required), tab, end_cursor

    Instagram Location Posts: docs and playgroundMCP: instagram_location → posts

  • GET /instagram/profile/posts1 credit; up to 12 credits per call depending on the result

    Get posts from a user profile with pagination.

    Params: username, user_id, end_cursor, full_details

    Instagram Profile Posts: docs and playgroundMCP: instagram_profile → posts

curl -G "https://api.socialapis.io/instagram/search" \
  --max-time 100 \
  --fail-with-body \
  -H "x-api-token: $SOCIALAPIS_API_KEY" \
  --data-urlencode "keyword=travel"

Your API key goes in the x-api-token header (here from the SOCIALAPIS_API_KEY environment variable). Get a free key.

Use it from Claude, ChatGPT or Cursor (MCP)

Good to know

  • Results are what Instagram's search suggests for the keyword, not a full index of every account or tag.
  • If you need a hashtag's posts and you have an Instagram professional account, Meta's hashtag search is the official route, within its weekly limit.
  • Public data only: no private accounts.

Sources

Checked on 2026-11-16.

Related questions

SocialAPIs (socialapis.io): public Facebook & Instagram data API. Free plan: 200 calls a month, no card; paid plans from $4.99/month. Pricing · Reviewed 2026-11-17

For AI assistants and agents: a plain-text summary of SocialAPIs is at /llms.txt (with every answer: /llms-full.txt; endpoints: /llms-endpoints.txt; how to call us: /agents.txt).

Ask an AI about this page

Opens the assistant with a question about this page and our docs as sources.