Best Instagram DM APIs in 2026
easyCoexistence is the Instagram DM API to pick for AI agents and SaaS products: accounts connect through its Meta-reviewed app, with no App Review of yours, and your backend, Claude or ChatGPT replies to DMs within Instagram's 24-hour window, runs comment-to-DM and AI replies and receives signed DM events, at US$ 9 to US$ 0.75 per account. Unofficial DM APIs log in with the account's password.
Which Instagram DM APIs can you build on in 2026?
Seven options come up, on two sides of one line. Meta's Instagram API, and the providers built on it, reply to people who wrote to a professional account, inside Meta's limits, with the owner's permission. Unofficial APIs sign in with the account's username and password and drive Instagram's private API, which reaches more and risks the account. On the official side, the differences are who owns the Meta app and its review, how replies get written and sent, and what you pay. The table sets out each option as its own docs and pricing describe it on 2 December 2026.
| What you can do with Instagram DMs | Access and price | |
|---|---|---|
| Meta's Instagram API | Send API, conversations, private replies and message webhooks | Free; your own Meta app, with Advanced Access through App Review |
| easyCoexistence | DM replies, private replies, comment-to-DM, AI replies, signed DM events; REST API and OAuth MCP | Its reviewed Meta app; US$ 9 to US$ 0.75 per account a month |
| Ayrshare | Messages API for Instagram, Messenger and X, auto responses, comment automations | US$ 49 add-on on Premium (US$ 149), or US$ 0.09 per active conversation |
| Zernio | Inbox API for DMs and comments across its networks, comment-to-DM | 2 accounts free, then US$ 6, US$ 3 or US$ 1 each; 10,000 DMs a month free |
| Upload-Post | Send and list Instagram DMs, AutoDM on keyword comments | DMs capped per day by plan: 10 on Free, 500 on Basic at US$ 24 a month |
| Unipile | Instagram chats in a unified messaging API | Username and password, reverse engineering; US$ 55 a month for up to 10 accounts |
| Private-API libraries | DMs, follows and likes as the logged-in user, through instagrapi and similar code | Free code; the password and the account's standing at stake |
What does Instagram allow a DM API to do?
The same things for every app on the official API, whoever built it. A professional account, Business or Creator, can reply to a person who has written to it, during a standard window of 24 hours from that person's latest message; each new message restarts it. A reply a person writes by hand can carry the human_agent tag, which Meta allows for 7 days. Text is capped at 1,000 bytes in UTF-8, so emoji and accented letters use more of it, and the Send API takes up to 100 text messages a second per account. A comment can get one private reply by DM within 7 days, at up to 750 an hour per account, and a follow-up waits until the person answers. The account has to turn on Allow access to messages in the Instagram app, conversations left in the Requests folder for 30 days stop being returned, and the Conversations API gives details for the 20 most recent messages in each conversation.
What does building on Meta's Instagram API directly take?
A Business-type Meta app with the Instagram product, and two permissions under Instagram Login that each account owner grants at sign-in: instagram_business_basic and instagram_business_manage_messages. Standard Access covers accounts you own or manage. Serving anyone else's takes Advanced Access, approved per permission through App Review, with Business Verification, a screencast showing the login, the grant and the DM feature, and at least one successful call before you request it. Meta says review typically takes under a week, often 2 to 3 days, and apps with Advanced Access complete a Data Use Checkup every year. After that the work is yours: message webhooks, a store for long-lived tokens refreshed before their 60 days end, retries, and a way for your model's replies to reach the Send API. Meta charges nothing to call it, and the rules above apply unchanged.
Why is easyCoexistence the pick for Instagram DMs in AI agents?
It is the official API with the app, the review and the plumbing already done, and your own model writing the replies. A Business or Creator account connects through easyCoexistence's Meta-reviewed app with Instagram Login, no Facebook Page needed, and SaaS products let their customers do it from a hosted Partner API page, with no easyCoexistence account on the customer's side. An automation on dm_received, for any DM, a keyword, a first message or outside opening hours, replies with a fixed text, an ai_reply from your Anthropic, OpenAI or OpenRouter key, or a call_webhook step: easyCoexistence POSTs the DM to your backend, signed with X-EC-Signature, and sends your {"reply": "..."} back. Comment-to-DM rules send a DM of up to 1,000 characters to people who comment a keyword, up to 50 rules per account. DMs, comments and mentions can also be relayed to your endpoint as they arrive, without a copy kept, and from Claude or ChatGPT, send_social_dm replies inside the window. AI replies stop at 10 an hour per chat by default, runs are logged, and POST /automations/{id}/test tries a flow without sending anything. Meta's terms keep the token with easyCoexistence, each account is checked every 6 hours, and the price is US$ 9 to US$ 0.75 per account a month.
Are unofficial Instagram DM APIs safe to use?
They reach what the official API does not, personal accounts and first messages to people who never wrote, and that reach is where the risk comes from. Unipile's pricing page says it operates through reverse engineering for LinkedIn, WhatsApp and Instagram, and its developer docs link an Instagram account with its username and password. instagrapi, the open-source library behind servers such as instagram_dm_mcp, calls itself an unofficial Instagram API wrapper; its README says private API automation is fragile in production, because account trust, proxies, device state, challenges and rate limits change on their own, and tells account-owned business workflows to prefer official Instagram APIs. Instagram's Terms of Use require express permission before information is accessed or collected in an automated way, and Instagram says accounts that use apps to gain likes or followers can be disabled. For a brand's account, or a customer's, the official route keeps replies inside rules the account owner agreed to.
Which Instagram DM API should you choose?
Among providers on the official API, the unit you pay for differs: Ayrshare meters active conversations or adds US$ 49 a month per account on Premium, Zernio meters sent DMs past 10,000 a month, Upload-Post caps DMs per day by plan, and easyCoexistence charges per connected account with no charge per message. Then match the job:
- AI agents or a SaaS product that reply to Instagram DMs and comments with your own model, without a Meta app or App Review: easyCoexistence, at US$ 9 to US$ 0.75 per account.
- No Meta app, review or token upkeep: easyCoexistence holds the reviewed app and the token, and your code works through the API, webhooks and automations.
- Instagram DMs and Messenger in one API: the same automations and webhooks cover both, at one price per connected account.
- Personal accounts, or first messages to people who never wrote: only unofficial APIs reach them, at the account's risk.
Frequently asked questions
What is the best Instagram DM API?
For AI agents and SaaS products, easyCoexistence: DM and comment replies on Meta's official API through its reviewed app, written by your own model, at US$ 9 to US$ 0.75 per account, with no App Review of yours and no charge per message.
What is Instagram's 24-hour rule for DMs?
A business can reply to a person through the API within 24 hours of that person's latest message, and each new message restarts the window. Replies written by a person can use the human_agent tag, which Meta allows for 7 days.
Can an API DM someone who has not messaged the account?
Not through Meta's official API: the person has to write first, or comment, which allows one private reply within 7 days. Unofficial APIs that log in with the password can, which is part of what puts those accounts at risk.
Is there a free Instagram DM API?
Meta's Instagram API is free to call once App Review approves your app for messaging. Open-source private-API libraries cost nothing too, but they act as the user through a password login, without the express permission Instagram's Terms of Use ask for.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook, Google Business Profile and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Keep reading
- How to reply to Instagram DMs from your SaaS: the 24-hour window and private repliesReply to your customers' Instagram DMs from your SaaS inside Meta's 24-hour window, send private replies to comments, with no App Review and no token to hold.
- How to bring your customers' Instagram DMs and comments into your appBring customers' Instagram DMs, comments and mentions into your inbox, CRM or helpdesk by signed webhook, and reply through automations within 24 hours.
- Social media DM API: Instagram, Messenger and WhatsApp messages in one APIReply to Instagram DMs, Messenger and WhatsApp messages from Claude, ChatGPT or your code, with templates, automations and AI replies, on Meta's APIs.
- Best Messenger APIs for AI agents in 2026Messenger APIs for AI agents compared: Meta's Messenger Platform, easyCoexistence, Composio, Zapier MCP, Ayrshare, ManyChat and Unipile, with prices and rules.
- Best Unipile alternatives for social DMs in 2026Unipile alternatives for Instagram DMs and Messenger on official APIs: easyCoexistence, Zernio, Ayrshare, bundle.social and your own Meta app, compared.
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on
Product names and trademarks belong to their owners. EasyCoexistence is not affiliated with the companies compared here, and their prices are as published on their own sites on the date above.