Agents are good at research until the answer is on Instagram. Here's why that's hard, and how to give any agent Instagram search and posts in one step.
The official API is the right tool for posting, replying to comments and DMs, and reading insights on accounts you own. It isn't built for an agent that needs to look things up.
instapi.co is a read-only Instagram API built for agents. It handles the Instagram side, so your agent gets clean JSON instead of login walls.
meta.next_steps, so an agent can sign up, create a key and query without a human.claude mcp add --transport http instapi https://instapi.co/mcp \
--header "Authorization: Bearer sk_instapi_..."
Your agent gets instagram_search,
instagram_user_profile and
instagram_user_posts as tools. Config for other clients
is on the Instagram MCP page.
Any agent with a fetch or shell tool can start from one URL:
curl https://instapi.co/api/start
The response explains signup, API keys and queries, with the exact next calls to make. Paste this into your agent's prompt:
You can read Instagram through https://instapi.co.
GET https://instapi.co/api/start and follow meta.next_steps.
curl "https://instapi.co/api/instagram/search?q=blue+bottle" \
-H "Authorization: Bearer sk_instapi_..."
curl "https://instapi.co/api/instagram/users/bluebottle/posts?count=10" \
-H "Authorization: Bearer sk_instapi_..."
Every field is documented in the API docs.
| Agent browsing instagram.com | Official Instagram API | instapi.co | |
|---|---|---|---|
| Setup | Your login and cookies | Meta app, Business account, Facebook Page | Email signup, one key |
| Approval | None, until it's blocked | App review for Advanced Access | None |
| Whose data | What the login wall lets through | Your accounts, other Professional accounts | Any public account |
| User and place search | Unreliable | No | Yes |
| Images and video | Raw media | Media URLs | URLs plus AI text descriptions |
| Agent integration | Browser tool | Build your own | Hosted MCP and REST |
| Publishing, DMs, insights | Risky | Yes, your accounts | No, read-only |
| Cost | Your account's standing | Free within rate limits | 10 free credits, then $1 per 100 requests |
Not reliably. Logged-out visitors hit a login wall after a few pages, and logged-in automation gets challenged, rate limited or suspended. Agents also can't see images, so even a loaded page gives them little.
Only for people with a role on your Meta app. Serving anyone else needs Advanced Access, which means app review and business verification. instapi.co needs no Meta app: sign up with an email and query immediately.
No. Since the Basic Display API shut down on December 4, 2024, the official APIs only cover Business and Creator accounts, and Business Discovery can only look up other Professional accounts.
No. There is no keyword search for users or places, and hashtag search is capped at 30 unique hashtags per account per 7 days. instapi.co's search returns users, hashtags and places for any keyword.
Official API details from Meta's Instagram Platform overview.
Get a key with 10 free credits.