> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram

> Integrate your application with the Instagram API

## 🚀 Quickstart

Connect to Instagram with Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Instagram*.

**2. Authorize Instagram**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection* -> *Authorize*, then log in to Instagram. Later, you'll let your users do the same directly from your app.

**3. Call the Instagram API**

Let's make your first request to the Instagram API. Replace the placeholders below with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/me" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>     endpoint: '/me',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> console.log(res.data);
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/primitives/auth.md) to integrate Nango in your app.

To obtain your own credentials, follow the setup guide linked below.

## 📚 Instagram Integration Guides

Nango maintained guides for common use cases.

* [How to register your own Instagram OAuth app](https://nango.dev/docs/api-integrations/instagram/how-to-register-your-own-instagram-api-oauth-app)\
  Register an OAuth app with Instagram and obtain credentials to connect it to Nango

Official docs: [Instagram Basic Display API docs](https://developers.facebook.com/docs/instagram-basic-display-api)

## 🧩 Pre-built syncs & tools for Instagram

Explore Nango-provided tools in your dashboard. Extend and customize them to fit your needs.

### Others

| Function name | Description | Type |
| - | - | - |
| `create-comment-reply` | Reply to a comment on Instagram media. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `create-media-container` | Create an Instagram publishing container for an image, video, reel, or carousel item. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-comment` | Delete an Instagram comment by comment ID. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `delete-media` | Attempt to delete a published Instagram media object. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-account` | Retrieve Instagram business or creator account details. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-comment` | Retrieve a single Instagram comment. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-media-insights` | Retrieve insights metrics for an Instagram media object. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-media` | Retrieve a single Instagram media object. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `get-user-insights` | Retrieve account-level insights for an Instagram business or creator account. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-conversations` | List Instagram Direct conversations for the connected business account. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-media-children` | List child media for an Instagram carousel container. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-media-comments` | List comments on an Instagram media object. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-media` | List media published by an Instagram business or creator account. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `list-stories` | List story media for an Instagram business or creator account. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `publish-media-container` | Publish a prepared Instagram media container. | [Tool](https://nango.dev/docs/guides/functions/tools.md) |
| `account-media` | Sync media published by Instagram business or creator accounts in scope. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `conversations` | Sync Instagram Direct conversations for the connected business account. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `media-comments` | Sync comments for Instagram media items in scope. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |
| `stories` | Sync story media for Instagram business or creator accounts in scope. | [Sync](https://nango.dev/docs/guides/functions/syncs/sync-functions.md) |

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.