# Instagram Signals & Content Scraper API (`oneary/instagram-signals-content-scraper-api`) Actor

Extract Instagram profile, post, Reels, hashtag, and comment signals through one structured Actor. Submit usernames, IDs, URLs, or hashtags and receive integration-ready JSON for research, monitoring, creator discovery, and social analytics workflows.

- **URL**: https://apify.com/oneary/instagram-signals-content-scraper-api.md
- **Developed by:** [Luan M.](https://apify.com/oneary) (community)
- **Categories:** Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.50 / 1,000 successful results

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 Signals & Content Scraper API

Instagram scraper API for extracting structured profile, post, Reels, hashtag, and comment data from one Apify Actor. Use it for creator discovery, content monitoring, audience research, social analytics, and agent workflows without maintaining separate integrations.

### What this Instagram scraper extracts

- Instagram profile data by username
- Account history and verification signals by user ID
- User posts and Reels with pagination
- Post and Reel details by URL
- Comments by media ID with recent or popular sorting
- Hashtag posts for discovery and trend monitoring

Every target produces one dataset row with operation, target, request ID, timestamp, latency, structured data, and safe error details. Failed targets are not charged as `result` events.

### Example input

```json
{
  "operation": "profile",
  "targets": ["instagram", "natgeo"],
  "count": 15,
  "includeRaw": false,
  "failOnError": false,
  "maxConcurrency": 3
}
```

The `targets` format depends on `operation`:

| Operation | Target format |
|---|---|
| `profile` | Username, with or without `@` |
| `about`, `posts`, `reels` | Numeric Instagram user ID |
| `post` | Full Instagram post or Reel URL |
| `comments` | Media ID |
| `hashtag` | Hashtag, with or without `#` |

### Output schema

Results are written to the default Apify dataset. A successful row has this shape:

```json
{
  "product": "Instagram Signals & Content Scraper API",
  "platform": "instagram",
  "operation": "profile",
  "target": "instagram",
  "endpoint": "instagram-v1-fetch-user-info-by-username-v2",
  "success": true,
  "requestId": "req_opaque",
  "fetchedAt": "2026-09-06T12:00:00.000Z",
  "latencyMs": 842,
  "data": {},
  "error": null
}
```

The dataset schema keeps failures machine-readable, making retries and scheduled monitoring straightforward.

### Run through the Apify API

```bash
curl -X POST "https://api.apify.com/v2/acts/oneary~instagram-signals-content-scraper-api/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d @examples/input.json
```

### Pricing

Each successful target costs `$0.0035`. Failed targets are not charged, and the Actor respects the maximum charge selected for each run.

### Reliability and privacy

- Idempotency keys are unique per Actor run and target.
- Concurrency is bounded from 1 to 10.
- Credentials never enter Actor input or dataset output.
- Error rows contain safe codes and messages, not secrets.
- `failOnError` can stop a run early for strict pipelines.

Use the Actor only for lawful, authorized data workflows and follow applicable platform terms, privacy rules, and data-retention requirements.

### Development

```bash
npm test
npm run lint
npm run typecheck
npm run validate:actor
npm run build
```

# Actor input Schema

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

Select the type of Instagram data to retrieve. The target format changes with the selected operation.

## `targets` (type: `array`):

Add up to 100 targets. Use usernames for Profile, numeric user IDs for About/Posts/Reels, full URLs for Post, media IDs for Comments, and hashtags without # for Hashtag.

## `count` (type: `integer`):

Requested page size when the selected operation supports it.

## `cursor` (type: `string`):

Optional cursor returned by a previous run. Leave empty for the first page.

## `sort` (type: `string`):

Sorting used by the Comments operation.

## `includeRaw` (type: `boolean`):

When enabled, each dataset item includes request, billing, and timing metadata with the data payload.

## `failOnError` (type: `boolean`):

When disabled, failed targets are written as error rows while remaining targets continue.

## `maxConcurrency` (type: `integer`):

Number of targets processed in parallel. Lower this value when you need gentler request pacing.

## Actor input object example

```json
{
  "operation": "profile",
  "targets": [
    "instagram"
  ],
  "count": 15,
  "cursor": "",
  "sort": "recent",
  "includeRaw": false,
  "failOnError": false,
  "maxConcurrency": 3
}
```

# Actor output Schema

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

Successful and failed target rows in the default dataset.

# 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("oneary/instagram-signals-content-scraper-api").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("oneary/instagram-signals-content-scraper-api").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 oneary/instagram-signals-content-scraper-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,oneary/instagram-signals-content-scraper-api"
        }
    }
}

```

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/XGVZ6R8BTFxrphTIq/builds/HzrgGheDHlN5BR1o0/openapi.json
