Instagram: Profile
instagram_profileInstagram profiles: details, user ID, posts, reels, highlights and highlight stories.
Actions:
action=details: Get an Instagram profile by username: bio, follower and post counts, verification status and related profiles. Pricing: 1 credit per call. Inputs: username (required), link (optional).
action=id: Resolve an Instagram username or profile URL to its two IDs: user_id (long, e.g. 17841401474538262), used by action=posts and action=reels, and pk (short, e.g. 528817151), used by action=highlights. Pricing: 1 credit per call. Inputs: link (optional), username (optional).
action=posts: List an Instagram profile's posts (photos, videos, carousels) with captions, like and comment counts and media URLs. Pass username (returns more results) or user_id (the long user_id from action=id, not the pk). Returns an end_cursor for the next page. For reels only, use action=reels. Pricing: 1 credit per call. Inputs: username (optional), user_id (optional), end_cursor (optional).
action=reels: List an Instagram profile's reels with play counts, captions, video URLs and audio metadata. Needs the long user_id from action=id (not the pk). Returns an end_cursor for the next page. Pricing: 1 credit per call. Inputs: user_id (required), end_cursor (optional).
action=highlights: List an Instagram profile's story highlights with titles, cover images and highlight IDs. Needs the profile's pk from action=id, passed as user_id (not the long user_id). Use action=highlight_details to get the stories in one highlight. Pricing: 1 credit per call. Inputs: user_id (required).
action=highlight_details: Get the stories inside one Instagram highlight. Needs a highlight_id from action=highlights. Pricing: 1 credit per call. Inputs: highlight_id (required).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | Instagram profile URL (alternative to username). Optional for: details, id. | |
| action | Yes | Which operation to run. See the tool description for what each action returns and which parameters it needs. | |
| user_id | No | Instagram profile ID from action=id. posts, reels: its long user_id (e.g. 17841401474538262) · highlights: its pk (e.g. 528817151). For posts, an alternative to username. Required for: reels, highlights. Optional for: posts. | |
| username | No | Instagram username, without the @. For posts it returns more results than user_id. Required for: details. Optional for: id, posts. | |
| end_cursor | No | Pagination cursor for next page. Optional for: posts, reels. | |
| highlight_id | No | Highlight ID (from profile highlights endpoint). Required for: highlight_details. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | JSON response from the SocialAPIs REST endpoint, unchanged. Object or array depending on the endpoint; most include a `meta` block (statusCode, duration, creditsCharged, creditsRemaining). | |
| creditsCharged | No | Credits charged for this call, or null if the endpoint did not report it. | |
| creditsRemaining | No | Credits left on the API key after this call, or null if not reported. |