Go to example tasks

Get the top Instagram posts for a hashtag through an API

See what ranks on an Instagram hashtag with this ready-made Instagram API task: one call returns the top posts Instagram shows for #sourdough, in order, with likes, comments, reel plays, caption, owner, date and media links. Change the hashtag or use a keyword, and page on with the cursor. No Instagram login or cookies. You pay $5.00 per 1,000 pages of up to 50 posts.

Try for free
Instagram API - Profiles, Posts, Reels, Comments & Hashtags
Instagram API - Profiles, Posts, Reels, Comments & Hashtagssocialscrapers/instagram-api
Image
Account
Posted
Type
+5 fields
Text
Number
Boolean
List
Object

Input

Endpoint:hashtag
Hashtag or keyword:sourdough

Output fields

Image
Account
Posted
Type
Caption
Likes
Comments
Plays
Post

How it works

Sign up on Apify or log in

The Instagram API - Profiles, Posts, Reels, Comments & Hashtags Actor is ready to run with the inputs already set for "Get the top Instagram posts for a hashtag through an API". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Get the top Instagram posts for a hashtag through an API" task

The Instagram API - Profiles, Posts, Reels, Comments & Hashtags Actor will start running based on the input automatically. You can also change all the input fields, like endpoint and hashtag or keyword, to match your specific use case.

Receive the "Get the top Instagram posts for a hashtag through an API" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as image, account, posted, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Get the top Instagram posts for a hashtag through an API" task via API.

Image

Integrate "Get the top Instagram posts for a hashtag through an API" into your workflow

Connect "Get the top Instagram posts for a hashtag through an API" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The Instagram hashtag API task returns one page of up to 50 top posts for #sourdough, in Instagram's order, each with likes, comments, reel plays, caption, owner, date and media links.

No. The Instagram hashtag API task reads public Instagram pages without a login, cookies or an API key.

The Instagram hashtag API task costs $5.00 per 1,000 pages of up to 50 posts, and only for results saved. Apify Silver and Gold plans pay 10% and 20% less.