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 @ posted”, “how many likes do its posts get”, lists recent media of an Instagram business or creator account via Meta business_discovery: post ID, caption, media type, permalink, timestamp, like count, comment count, media URL and thumbnail URL (media URL is omitted by Meta for some videos and reels). Pages with 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

NameTypeRequiredDescription
usernamestringyesInstagram username to look up, without the @.
ig_user_idstringyesThe Instagram user ID of YOUR professional account that the token belongs to.
limitnumbernoPosts per page, 1-50 (default 25).
afterstringnoThe next_cursor from a previous response.
_apiKeystringnoYour 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

FieldTypeDescription
sourcestringPublisher and dataset
user_idstring | nullInstagram user ID
usernamestring | nullUsername
countnumberPosts in this page of results
postsarrayRecent posts
next_cursorstring | nullCursor to pass as after for the next page, or null when there is no further page
has_next_pagebooleanWhether another page exists
not_availablearrayFields a caller may expect that this API does not provide
notestringPresent 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.

Regenerated from source · build December 4, 2026