Endpoints Overview
| Endpoint | Description | Credits |
|---|---|---|
POST /instagram/posts | Get user’s posts | 1 + 1/post |
POST /instagram/comments | Get post comments | 1 + 0.5/comment |
POST /instagram/hashtag/posts | Search posts by hashtag | 2 + 1/post |
Get User Posts
Fetch posts from an Instagram user’s profile.Basic Request
Using Numeric User ID
Instagram also accepts numeric user IDs:With Pagination
With ML Enrichment
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
username | string | Yes | - | Instagram username or user ID |
limit | integer | No | 10 | Posts to fetch (1-100) |
cursor | string | No | - | Pagination cursor |
enrich | array | No | - | ML enrichments |
categories | object | No | - | Custom topic categories |
llm_provider | string | No | gemini-2.0-flash | LLM for enrichment |
Response
Get Post Comments
Fetch comments from Instagram posts. Supports multiple URL formats.Using Full URL
Using Partial URL (without https://)
Using Shortcode Only
Mixed URL Formats
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
post_urls | array | Yes | - | Post URLs or shortcodes |
limit_per_post | integer | No | 50 | Comments per post (1-500) |
enrich | array | No | - | ML enrichments |
Response
Search Hashtag Posts
Search Instagram posts by hashtags.Single Hashtag
Multiple Hashtags with Enrichment
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
hashtags | array | Yes | - | Hashtags to search (1-10) |
days | integer | No | 7 | Look back period (1-30) |
max_posts_per_hashtag | integer | No | 100 | Max posts per tag (1-500) |
enrich | array | No | - | ML enrichments |
categories | object | No | - | Custom topic categories |