# Bulk Instagram Posts (`listingsapi/bulk-instagram-posts`) Actor

Queue up to 500 Instagram posts in one request and poll the per-row result.

- **URL**: https://apify.com/listingsapi/bulk-instagram-posts.md
- **Developed by:** [Local Business Listings Submission API](https://apify.com/listingsapi) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bulk Instagram Posts

Queue up to 500 Instagram posts in one request and poll the per-row result.

This Actor calls the Social endpoints of the [Listings API](https://www.listingsapi.com) v4. Requests are authenticated with the `Authorization: API <YOUR_API_KEY>` request header and go to `https://listingsapi.com/api/v4`.

### What this Actor does

- Creates a brand, the container that owns connected social accounts and every post published from them
- Issues a hosted connection link so an end user authorizes their own account without you handling platform OAuth credentials
- Lists a brand's connections with the platform, display name and archival state of each
- Creates one post as a draft, a scheduled post, or an immediate publish, targeting one or more connected accounts
- Queues up to 500 posts in a single bulk request and returns a job to poll for per-row results
- Cancels a scheduled post before it publishes
- Reads the live per-channel publish state, link and error for any post
- Reports your connection cap and current usage

### Who this is for

- Brands publishing the same content to several platforms on a fixed schedule
- Agencies running social for many clients, each as its own brand
- Teams replacing a scheduling tool with something their own systems drive
- Anyone who needs per-channel publish results in a dataset rather than a dashboard

### What you need

A Listings API account with the **Social** product enabled, and an API key.

Social is billed separately from Listings. It is priced per connection, where one connection is one authorized social account attached to a brand: a Facebook Page, an Instagram professional account, an X account, a LinkedIn Page, or a Pinterest account. Launch includes 20 connections at 69 dollars a month, Growth includes 125 at 299 dollars a month, and connection packs of 5 cost 25 dollars a month each. Self-serve accounts cap at 250 connections. Brands are unlimited on every tier and are not billed. See [Social pricing](https://www.listingsapi.com/pricing?product=social).

A Listings-only key returns an error on every `/social` endpoint. Run `socialLimits` first to confirm the product is enabled and to read your remaining connection allowance.

| Access level | Covers |
| --- | --- |
| Read | Every `GET` operation in the table below |
| Write | Every `POST` operation in the table below |

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiKey` | string | Yes | Your Listings API key. Stored as a secret. |
| `operation` | string | Yes | Which endpoint to call. See the operations table. |
| `pathParams` | object | No | Values for placeholders in the path, for example `{ "brandId": "brand-4412" }`. |
| `query` | object | No | Query string values such as `limit`, `after` or a status filter. |
| `body` | object | No | JSON request body for the `POST` operations. |
| `paginate` | boolean | No | Keep requesting pages while `pageInfo.hasNextPage` is true. Default `false`. |
| `maxItems` | integer | No | Stop after this many dataset items. `0` means no limit. |

### Operations

| Operation | Method and path | Returns |
| --- | --- | --- |
| `listBrands` | `GET /social/brands` | List brands |
| `getBrand` | `GET /social/brands/{brandId}` | Get a brand |
| `createBrand` | `POST /social/brands` | Create a brand |
| `updateBrand` | `POST /social/brands/update` | Update a brand |
| `archiveBrand` | `POST /social/brands/archive` | Archive a brand |
| `listConnections` | `GET /social/brands/{brandId}/connections` | List a brand's connections |
| `connectionLink` | `POST /social/brands/{brandId}/connections/link` | Get a hosted connection link |
| `disconnectConnection` | `POST /social/connections/disconnect` | Disconnect a social account |
| `listPosts` | `GET /social/brands/{brandId}/posts` | List a brand's posts |
| `getSocialPost` | `GET /social/posts/{postId}` | Get a social post |
| `createSocialPost` | `POST /social/posts` | Create, schedule or publish a post |
| `cancelScheduledPost` | `POST /social/posts/cancel` | Cancel a scheduled post |
| `createBulkSocialPosts` | `POST /social/bulk-posts` | Create up to 500 posts in one request |
| `getBulkJob` | `GET /social/bulk-posts/{bulkJobId}` | Get a bulk job's per-row results |
| `postInsights` | `GET /social/posts/{postId}/insights` | Get engagement metrics for a post |
| `socialLimits` | `GET /social/limits` | Get plan connection cap and usage |

Publishing is asynchronous. `createSocialPost` returns only that the post was accepted. Poll `getSocialPost` for the per-channel state, link and error. Bulk requests carry their rows in the request payload. There is no file upload and no CSV.

### Examples

Check the product is enabled and read your remaining connections:

```json
{
  "apiKey": "<your key>",
  "operation": "socialLimits"
}
```

List a brand's connected accounts to get the channel IDs:

```json
{
  "apiKey": "<your key>",
  "operation": "listConnections",
  "pathParams": {
    "brandId": "brand-4412"
  }
}
```

Schedule one post to specific Instagram channels:

```json
{
  "apiKey": "<your key>",
  "operation": "createSocialPost",
  "body": {
    "brandId": "brand-4412",
    "lifecycle": "SCHEDULE",
    "scheduledAt": "2026-10-07T09:00:00Z",
    "connectedChannelIds": [
      "conn-8801",
      "conn-8802"
    ],
    "content": {
      "text": "Autumn menu is live in every store from Monday.",
      "mediaUrls": [
        "https://example.com/img/autumn.jpg"
      ]
    }
  }
}
```

Queue a content calendar in one request:

```json
{
  "apiKey": "<your key>",
  "operation": "createBulkSocialPosts",
  "body": {
    "brandId": "brand-4412",
    "posts": [
      {
        "lifecycle": "SCHEDULE",
        "scheduledAt": "2026-10-07T09:00:00Z",
        "connectedChannelIds": [
          "conn-8801"
        ],
        "content": {
          "text": "Autumn menu is live from Monday."
        }
      },
      {
        "lifecycle": "SCHEDULE",
        "scheduledAt": "2026-10-14T09:00:00Z",
        "connectedChannelIds": [
          "conn-8801"
        ],
        "content": {
          "text": "Two weeks left on the autumn menu."
        }
      }
    ]
  }
}
```

Poll the bulk job for per-row results:

```json
{
  "apiKey": "<your key>",
  "operation": "getBulkJob",
  "pathParams": {
    "bulkJobId": "job-5521"
  }
}
```

Read the live per-channel state after publishing:

```json
{
  "apiKey": "<your key>",
  "operation": "getSocialPost",
  "pathParams": {
    "postId": "sp-7781"
  }
}
```

### Output

Each post becomes one dataset row. A partial failure is visible per channel rather than hidden behind a single status.

```json
{
  "id": "sp-7781",
  "brandId": "brand-4412",
  "status": "PUBLISHED",
  "scheduledAt": "2026-10-07T09:00:00Z",
  "content": {
    "text": "Autumn menu is live in every store from Monday."
  },
  "channels": [
    {
      "connectionId": "conn-8801",
      "platform": "FACEBOOK",
      "status": "PUBLISHED",
      "url": "https://...",
      "error": null
    },
    {
      "connectionId": "conn-8802",
      "platform": "INSTAGRAM",
      "status": "FAILED",
      "url": null,
      "error": "Media aspect ratio not supported"
    }
  ]
}
```

Exact fields follow the API response. Download the dataset as JSON, CSV, Excel or XML, or read it from the Apify API.

The run also writes a `SUMMARY` record to the key value store with the operation, the path called, pages requested and items pushed.

### Running it on a schedule

Schedule `createBulkSocialPosts` for a recurring content calendar, then schedule `getBulkJob` a few minutes later to record the per-row outcome. For monitoring only, schedule `listPosts` with a `SCHEDULED` status filter and alert on anything that should have published and did not.

### Rate limits and pagination

Requests go out one at a time. The Actor reads `pageInfo.hasNextPage` before requesting the next page, waits out a `429` using `retry_after_seconds`, and retries `5xx` responses with an exponential backoff up to five attempts. Plan limits are 10 requests per minute on Launch and 50 on Growth. See [rate limits](https://listingsapi.com/docs/rate-limits).

### Errors

A non-success response stops the run and logs the status code, the URL and the response body including `correlation_id`. Codes are listed at [error codes](https://listingsapi.com/docs/error-codes).

Publisher rejections behave differently. A post can be accepted by the API and then rejected by the publisher for content reasons. That result is reported in the per-channel `state` field rather than as a failed run, so read the output rather than only the exit code.

### Cost

You pay Apify for the platform usage of the run. Publishing and reading insights are billed by your Listings API Social plan, which starts at 69 dollars a month for 20 connections. See [Social pricing](https://www.listingsapi.com/pricing?product=social).

### Related Actors

- [Local Business Posts API](https://apify.com/listingsapi/local-business-posts-api) for announcements, events and offers on Google and Facebook
- [Local Business Reviews API](https://apify.com/listingsapi/local-business-reviews-api) for reading and replying to reviews
- [Local SEO Analytics API](https://apify.com/listingsapi/local-seo-analytics-api) for publisher performance and listing coverage
- [Local Business Listings Submission API](https://apify.com/listingsapi/local-business-listings-submission-api) for creating locations and syncing them across the publisher network

### Links

- Guides: [listingsapi.com/guides](https://listingsapi.com/guides)
- Full reference: [listingsapi.com/docs](https://listingsapi.com/docs)
- More info: [www.listingsapi.com](https://www.listingsapi.com)
- MCP server: [listingsapi.com/mcp](https://www.listingsapi.com/mcp)
- Support: support@listingsapi.com

# Actor input Schema

## `apiKey` (type: `string`):

Your Listings API key. Create one at https://www.listingsapi.com/pricing. Needs the Social product enabled. Write operations need a key with Write access.

## `operation` (type: `string`):

Which endpoint to call.

## `pathParams` (type: `object`):

Values for placeholders in the endpoint path, for example { "brandId": "brand-4412" }.

## `query` (type: `object`):

Query string values such as limit, after or status filters.

## `body` (type: `object`):

JSON request body for the POST operations. Payload shapes are at https://listingsapi.com/docs/social.

## `paginate` (type: `boolean`):

Keep requesting pages while pageInfo.hasNextPage is true.

## `maxItems` (type: `integer`):

Stop after this many dataset items. Set 0 for no limit.

## Actor input object example

```json
{
  "operation": "listBrands",
  "pathParams": {},
  "query": {},
  "body": {},
  "paginate": false,
  "maxItems": 0
}
```

# Actor output Schema

## `results` (type: `string`):

Every post, bulk post, connected account or location returned by the operation you ran.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("listingsapi/bulk-instagram-posts").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("listingsapi/bulk-instagram-posts").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call listingsapi/bulk-instagram-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,listingsapi/bulk-instagram-posts"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ASpUEEngWLdVmdiBU/builds/TgafSZERuvDDKpPcI/openapi.json
