meta_graph_instagram_posts
Pack: meta-graph · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/meta_graph_instagram_posts for the schema, then POST the same URL with its arguments for the data.
ANSWERS “what has @after. Same account rules as meta_graph_instagram_profile: pass your own ig_user_id; only business and creator accounts. Not returned: play/view count, author details, location, carousel children. Data: Meta, Graph API. Requires your own Meta access token as _apiKey.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
username | string | yes | Instagram username to look up, without the @. |
ig_user_id | string | yes | The Instagram user ID of YOUR professional account that the token belongs to. |
limit | number | no | Posts per page, 1-50 (default 25). |
after | string | no | The next_cursor from a previous response. |
_apiKey | string | no | Your Meta access token (BYO). |
Example call
Arguments
{
"username": "bluebottle",
"ig_user_id": "17841400000000000",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/meta-graph/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"meta_graph_instagram_posts","arguments":{"username":"bluebottle","ig_user_id":"17841400000000000","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('meta_graph_instagram_posts', {
"username": "bluebottle",
"ig_user_id": "17841400000000000",
"limit": 5
});
Response shape
Always returns: source, user_id, username, count, posts, next_cursor, has_next_page, not_available
| Field | Type | Description |
|---|---|---|
source | string | Publisher and dataset |
user_id | string | null | Instagram user ID |
username | string | null | Username |
count | number | Posts in this page of results |
posts | array | Recent posts |
next_cursor | string | null | Cursor to pass as after for the next page, or null when there is no further page |
has_next_page | boolean | Whether another page exists |
not_available | array | Fields a caller may expect that this API does not provide |
note | string | Present only when no posts were returned |
Full JSON Schema
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Publisher and dataset"
},
"user_id": {
"type": [
"string",
"null"
],
"description": "Instagram user ID"
},
"username": {
"type": [
"string",
"null"
],
"description": "Username"
},
"count": {
"type": "number",
"description": "Posts in this page of results"
},
"posts": {
"type": "array",
"description": "Recent posts",
"items": {
"type": "object",
"properties": {
"post_id": {
"type": [
"string",
"null"
],
"description": "Media ID"
},
"caption": {
"type": [
"string",
"null"
],
"description": "Caption"
},
"media_type": {
"type": [
"string",
"null"
],
"description": "IMAGE, VIDEO or CAROUSEL_ALBUM"
},
"product_type": {
"type": [
"string",
"null"
],
"description": "FEED, REELS, STORY..."
},
"permalink": {
"type": [
"string",
"null"
],
"description": "Post URL"
},
"created_at": {
"type": [
"string",
"null"
],
"description": "Timestamp"
},
"like_count": {
"type": [
"number",
"null"
],
"description": "Likes"
},
"comment_count": {
"type": [
"number",
"null"
],
"description": "Comments"
},
"media_url": {
"type": [
"string",
"null"
],
"description": "Media URL; omitted by Meta for some videos and reels"
},
"thumbnail_url": {
"type": [
"string",
"null"
],
"description": "Thumbnail URL for videos"
}
},
"required": [
"post_id",
"caption",
"media_type",
"product_type",
"permalink",
"created_at",
"like_count",
"comment_count",
"media_url",
"thumbnail_url"
]
}
},
"next_cursor": {
"type": [
"string",
"null"
],
"description": "Cursor to pass as `after` for the next page, or null when there is no further page"
},
"has_next_page": {
"type": "boolean",
"description": "Whether another page exists"
},
"not_available": {
"type": "array",
"description": "Fields a caller may expect that this API does not provide",
"items": {
"type": "string"
}
},
"note": {
"type": "string",
"description": "Present only when no posts were returned"
}
},
"required": [
"source",
"user_id",
"username",
"count",
"posts",
"next_cursor",
"has_next_page",
"not_available"
]
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the meta-graph pack
{
"mcpServers": {
"meta-graph": {
"url": "https://gateway.pipeworx.io/meta-graph/mcp"
}
}
}
See Getting Started for client-specific install steps.