# Instagram Post Scraper (`reapx/qa-instagram-post-scraper`) Actor

Keep Instagram posts in a dated, source-linked content file. Review captions, authors, media, hashtags, mentions, comments, and engagement across a saved URL list.

- **URL**: https://apify.com/reapx/qa-instagram-post-scraper.md
- **Developed by:** [ReapX](https://apify.com/reapx) (community)
- **Categories:** Social media, For creators, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 dataset items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Instagram Post Scraper

Keep Instagram posts in a dated, source-linked content file. Review captions, authors, media, hashtags, mentions, comments, and engagement across a saved URL list.

![Instagram Post Scraper interface](https://reapx.dev/assets/products/instagram-post-scraper/readme.png)

### The record

The dataset schema names every field before the run. The first working set is `shortcode`, `url`, `owner`, `caption`, `mediaType`, `mediaId`, `imageUrl`, `sourceUrl`, `route`, `scrapedAt`, `ownerVerified`, and `ownerFollowers`. Dataset views keep related fields together without changing the underlying row.

#### Captured row

```json
{
  "mediaId": "3660778310592222546",
  "mediaType": "image",
  "ownerVerified": true
}
```

### Input

Instagram Post Scraper accepts source URLs. Run controls stay in the same form.

| Field | What it controls | Starting value |
| --- | --- | --- |
| `startUrls` | Paste exact Instagram URLs, one per line. | `["https://www.instagram.com/p/DLNsnpUTdVS/"]` |
| `maxItems` | Stop after this many dataset rows. | `50` |
| `maxSeconds` | Stop after this many seconds and keep completed rows. | `180` |

#### Example input

```json
{
  "startUrls": [
    "https://www.instagram.com/p/DLNsnpUTdVS/"
  ],
  "maxItems": 1,
  "maxSeconds": 180
}
```

### Price

$0.00001 per dataset item. Other Apify plans use the rates shown in the Pricing tab.

![Instagram Post Scraper input and result demonstration](https://reapx.dev/assets/products/instagram-post-scraper/demo.svg)

### Console, API, schedules, and exports

Runs can begin in Apify Console, from a saved task, or through the Actor API. A schedule can reuse the same input. Completed rows remain in the run dataset for API retrieval and Apify dataset exports.

```text
POST https://api.apify.com/v2/acts/GVRGvxadL11KZG8sT/runs
GET  https://api.apify.com/v2/datasets/{datasetId}/items
```

### Saved tasks

Twenty task pages cover distinct research, comparison, operations, automation, and export jobs. The opening set is:

- **Instagram post exact item**: Review one Instagram record around `shortcode`, `url`, `owner`, and `caption`. The saved task uses `startUrls`, `maxItems`, and `maxSeconds` and opens the `overview` view. Configured in Instagram Post Scraper.
- **Instagram post publishing comparison**: Compare Instagram posts using `ownerFollowers`, `likes`, `comments`, and `shortcode`. The `stats` view keeps the differences close together. Configured in Instagram Post Scraper.
- **Instagram post source list**: Process a saved Instagram input queue with `startUrls`, `maxItems`, and `maxSeconds`. Source and identifier fields remain visible in the `identity` view. Configured in Instagram Post Scraper.
- **Instagram post publisher index**: Index Instagram posts by `shortcode`, `url`, `owner`, and `caption`. The saved input keeps the same matching fields from run to run. Configured in Instagram Post Scraper.
- **Instagram post author register**: Assemble a focused Instagram register centered on `shortcode`, `url`, `owner`, and `caption`. The task keeps `startUrls`, `maxItems`, and `maxSeconds` visible for later review. Configured in Instagram Post Scraper.
- **Instagram post engagement benchmark**: Compare numeric and status fields across Instagram posts, led by `ownerFollowers`, `likes`, `comments`, and `hashtags`. Results open as the `content` table. Configured in Instagram Post Scraper.

### Related products

- [Instagram Video Scraper](https://apify.com/reapx/instagram-video-scraper)
- [Instagram Profile Scraper](https://apify.com/reapx/instagram-profile-scraper)
- [Instagram Comment Scraper](https://apify.com/reapx/instagram-comment-scraper)
- [YouTube Video Scraper](https://apify.com/reapx/qa-youtube-video-scraper)
- [Instagram Reel Scraper](https://apify.com/reapx/instagram-reel-scraper)

### Support

Include the Actor ID, run ID, saved task name, and affected input when reporting an issue. That is enough to locate the run and its dataset.

# Actor input Schema

## `startUrls` (type: `array`):

Paste exact Instagram URLs, one per line.

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

Stop after this many dataset rows.

## `maxSeconds` (type: `integer`):

Stop after this many seconds and keep completed rows.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.instagram.com/p/DLNsnpUTdVS/",
    "https://www.instagram.com/p/DbWtf_8tkbu/"
  ],
  "maxItems": 50,
  "maxSeconds": 180
}
```

# Actor output Schema

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

Rows returned by this run.

## `json` (type: `string`):

Clean JSON records from this run.

## `csv` (type: `string`):

CSV export from this run.

# 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 = {
    "startUrls": [
        "https://www.instagram.com/p/DLNsnpUTdVS/"
    ],
    "maxItems": 50,
    "maxSeconds": 180
};

// Run the Actor and wait for it to finish
const run = await client.actor("reapx/qa-instagram-post-scraper").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 = {
    "startUrls": ["https://www.instagram.com/p/DLNsnpUTdVS/"],
    "maxItems": 50,
    "maxSeconds": 180,
}

# Run the Actor and wait for it to finish
run = client.actor("reapx/qa-instagram-post-scraper").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 '{
  "startUrls": [
    "https://www.instagram.com/p/DLNsnpUTdVS/"
  ],
  "maxItems": 50,
  "maxSeconds": 180
}' |
apify call reapx/qa-instagram-post-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reapx/qa-instagram-post-scraper"
        }
    }
}

```

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/GVRGvxadL11KZG8sT/builds/necEDB01XZvFlSZuT/openapi.json
