Instagram

Search Instagram Posts

Search for Instagram posts by keyword. Returns post captions, engagement metrics (likes, comments, shares, reposts, views), author metadata, hashtags, mentions, media URLs, carousel slides, audio track info, tagged users, and location. Supports fetching multiple pages in a single API call (billed per page).

Price: $0.006 per page. Free tier: 50 requests/month.

get/v1/instagram/posts

Request

  • Base URL: https://apidirect.io
  • URL: https://apidirect.io/v1/instagram/posts
  • Auth: API key in header X-API-Key

Query parameters

querystring required

Search keyword (max 500 characters). Cannot start with @ or #, though either character may appear elsewhere in the query.

pagesinteger

Number of pages to fetch and merge into one response (1-20, billed per page)

get_sentimentboolean

Set to true to add AI emotion analysis to each post. Adds a sentiment object containing emotions (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), dominant_emotion, emotional_intensity (0-10), and polarity (positive, negative or neutral). Any post that cannot be scored returns sentiment: null.

Response

Successful response

countnumber nullable
pagesnumber nullable

Changes

No recorded changes to this operation across all 1 revision of this API.