# Instagram Post Info | Cheapest $0.20/1k results (`thescrappa/instagram-post-info-cheapest-0-20-1000-results`) Actor

Look up a public Instagram post to see its caption, media type and engagement counts. Paste a public post URL or its shortcode to retrieve the details for that post.

- **URL**: https://apify.com/thescrappa/instagram-post-info-cheapest-0-20-1000-results.md
- **Developed by:** [Scrappa](https://apify.com/thescrappa) (community)
- **Categories:** Social media, Marketing
- **Security:** Limited permissions
- **Stats:** 8 total users, 7 monthly users, 84.5% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 1,000 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?

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

## Instagram Post Info | Cheapest $0.20/1k results

Look up a public Instagram post to see its caption, media type and engagement counts. Paste a public post URL or its shortcode to retrieve the details for that post.

### What data can you extract?

Post and profile details reflect information visible on public Instagram pages; optional fields can be absent.

| Field | Type | Description |
| --- | --- | --- |
| `success` | boolean | Whether the lookup completed successfully; false is a reported value, while null means Instagram provided no flag. |
| `data` | object | Instagram post details with shortcode, caption, publication time, likes, comments and media type; null when the source provides no details. |
| `error` | string | Diagnostic text for the Instagram lookup; null when the request completes without an error. |

### Use cases

- Social teams can review public post captions and engagement details.
- Brand researchers can compare post data while monitoring a campaign.
- Creators can archive source-linked posts for a recurring content review.

### How to use

1. Open the Actor’s **Input** tab and start with the JSON below.
2. Set `url` to the search term or source identifier you want to look up, then use the optional filters listed below.
3. Start the run and open its default dataset to inspect or download the rows.

```json
{
  "url": "https://www.instagram.com/instagram/p/DdUYPr8Piav/"
}
```

The run dataset can be downloaded as JSON, CSV, Excel or another format offered by Apify.

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | No | Full Instagram post URL or shortcode. Include the username to enable an exact-match fallback through the account’s recent posts, for example https://www.instagram.com/instagram/p/DdUYPr8Piav/. |
| `shortcode` | string | No | Instagram post shortcode. Use this when you do not have the full post URL. Example shortcode: DUBtwxGEqz2. |
| `media_id` | string | No | Deprecated legacy input name. Use the URL or shortcode field above for new integrations. This actor treats media_id as the Instagram post shortcode. |

### Output example

The record below is synthetic. Names and links are examples, and private contact fields are omitted.

```json
{
  "success": true,
  "data": {
    "shortcode": "DJx8sQmP4ab",
    "caption": "Three easy ways to style a vintage wool coat for cooler days.",
    "taken_at": "2026-09-25T09:15:00Z",
    "like_count": 864,
    "comment_count": 27,
    "media_type": "video"
  }
}
```

### Pricing

**Current live price:** $0.20 per 1,000 results.

Each saved dataset record counts as one result.

### FAQ

#### Is it legal to collect public information?

This Actor is for information visible on the public source pages it reads. You are responsible for checking the source terms, privacy and copyright rules, and the laws that apply to your use.

#### How many records will a run return?

The result count depends on the input limits, pagination settings and what the source makes available. A small query or unavailable page can return fewer records, including none.

#### Can I call it through the API or connect it to other tools?

Yes. Send the same JSON input to `POST https://api.apify.com/v2/acts/thescrappa~instagram-post-info-cheapest-0-20-1000-results/runs`, then read the run’s default dataset. Make, Zapier and n8n can start runs and pass dataset rows to the next step; Google Sheets can receive rows through those workflows or a dataset export.

#### What happens when a request fails?

Check the run log for the source or input error, correct the input and retry after a temporary source issue. A run can contain rows saved before a later request failed. If Instagram shows a post only to logged-in users, the run ends with no result and no result charge; `OUTPUT` has `error_code` `instagram_login_required`.

#### Can I use an Instagram shortcode instead of a post URL?

Yes. Submit the shortcode field or paste the public post URL in the url field.

### Related Scrappa Actors

- [Instagram User Info | Cheapest $0.20/1k results](https://apify.com/thescrappa/instagram-user-info-cheapest-0-20-1000-results)
- [Instagram User Posts Scraper](https://apify.com/thescrappa/instagram-user-posts-cheapest-0-20-1000-results)
- [Pinterest Search Scraper](https://apify.com/thescrappa/pinterest-search-scraper)
- [TikTok Search Scraper](https://apify.com/thescrappa/tiktok-search-scraper)

# Actor input Schema

## `url` (type: `string`):

Full Instagram post URL or shortcode. Include the username to enable an exact-match fallback through the account’s recent posts, for example https://www.instagram.com/instagram/p/DdUYPr8Piav/. Posts that Instagram shows only to logged-in users end with no result and no result charge.

## `shortcode` (type: `string`):

Instagram post shortcode. Use this when you do not have the full post URL. Example shortcode: DUBtwxGEqz2.

## `media_id` (type: `string`):

Deprecated legacy input name. Use the URL or shortcode field above for new integrations. This actor treats media_id as the Instagram post shortcode.

## Actor input object example

```json
{
  "url": "https://www.instagram.com/instagram/p/DdUYPr8Piav/"
}
```

# Actor output Schema

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

All results from this run 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 = {
    "url": "https://www.instagram.com/instagram/p/DdUYPr8Piav/"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrappa/instagram-post-info-cheapest-0-20-1000-results").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 = { "url": "https://www.instagram.com/instagram/p/DdUYPr8Piav/" }

# Run the Actor and wait for it to finish
run = client.actor("thescrappa/instagram-post-info-cheapest-0-20-1000-results").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 '{
  "url": "https://www.instagram.com/instagram/p/DdUYPr8Piav/"
}' |
apify call thescrappa/instagram-post-info-cheapest-0-20-1000-results --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thescrappa/instagram-post-info-cheapest-0-20-1000-results"
        }
    }
}
```

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/nfdzs1z0cRIU1Bfhw/builds/FPjOaRK2xSPjbYFWu/openapi.json
