# Quick Instagram Posts Checker (`apify/quick-instagram-posts-checker`) Actor

Fast Instagram stats (for profiles and post only) for bulk tracking and analytics

- **URL**: https://apify.com/apify/quick-instagram-posts-checker.md
- **Developed by:** [Apify](https://apify.com/apify) (Apify)
- **Categories:** Social media, E-commerce
- **Stats:** 1,504 total users, 3 monthly users, 100.0% runs succeeded, 24 bookmarks
- **User rating**: 4.78 out of 5 stars

## 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/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

### Features
Fastest tracking of Instagram web shareable data: get stats for any public post or profile.

### Usage Costs
Around 0.02CUs per 100 posts or profiles

### Input example
```json
{
  "startUrls": [
    {
      "url": "https://www.instagram.com/kimkardashian"
    },
    {
      "url": "https://www.instagram.com/p/CrzMaNlP_3G"
    }
  ]
}
````

### Output example

```json
[{
	"url": "https://www.instagram.com/kimkardashian",
	"followers_count": 354919225,
	"full_name": "Kim Kardashian",
  "graphql_media": [],
	"has_public_story": true,
	"is_verified": true,
	"owner_id": 18428658,
	"posts_count": 5841,
	"profile_link": "https://www.instagram.com/kimkardashian/?utm_source=ig_embed&ig_rid=68ddfaca-38d1-4370-9944-a6735aacbe62",
	"profile_link_ios": "user?username=kimkardashian&utm_source=ig_embed&ig_rid=68ddfaca-38d1-4370-9944-a6735aacbe62",
	"profile_pic_url": "https://scontent.cdninstagram.com/v/t51.2885-19/314397231_636674618202803_1672434101401302981_n.jpg?stp=dst-jpg_s240x240&_nc_ht=scontent.cdninstagram.com&_nc_cat=1&_nc_ohc=tt2XwTDfqyUAX_8kZo5&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfBMbJoMPBV9-W-dU07uQrVoP2y24YVDeZCHMauIFQiwSg&oe=6460ED1E&_nc_sid=978cb9",
	"pronouns": [],
	"type": "Profile",
	"username": "kimkardashian",
	"verified": true
},
{
	"url": "https://www.instagram.com/p/CrzMaNlP_3G",
	"shortcode_media": {
		"__typename": "GraphSidecar",
		"id": "3094871946781785542",
		"shortcode": "CrzMaNlP_3G",
		"commenter_count": 5436,
		"dimensions": {
			"height": 1346,
			"width": 1080
		},
		"display_url": "https://scontent.cdninstagram.com/v/t51.2885-15/344530446_949085502911094_8765323194692383808_n.jpg?stp=dst-jpg_e35_p1080x1080&_nc_ht=scontent.cdninstagram.com&_nc_cat=1&_nc_ohc=KLc0jhh_kmYAX-UgDpi&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfDM3LxGwtdZND5SXXTMszqpgy9pCBkmYlqKyjl5O6x-Qw&oe=646101B7&_nc_sid=978cb9",
		"display_resources": [],
		"is_video": false,
		"media_overlay_info": null,
		"owner": {
			"id": "18428658",
			"profile_pic_url": "https://scontent.cdninstagram.com/v/t51.2885-19/314397231_636674618202803_1672434101401302981_n.jpg?stp=dst-jpg_s150x150&_nc_ht=scontent.cdninstagram.com&_nc_cat=1&_nc_ohc=tt2XwTDfqyUAX_8WJ_U&edm=APs17CUBAAAA&ccb=7-5&oh=00_AfDz_Rcpz45V97KGb5XTQZKPfPpfPg-XC1QxZpkel73Uyg&oe=6460ED1E&_nc_sid=978cb9",
			"username": "kimkardashian",
			"followed_by_viewer": false,
			"has_public_story": true,
			"is_private": false,
			"is_unpublished": false,
			"is_verified": true,
			"edge_followed_by": {
				"count": 354916592
			},
			"edge_owner_to_timeline_media": {},
			"edge_owner_to_timeline_video_media": {}
		},
		"taken_at_timestamp": 1683157507,
		"edge_media_to_caption": {
			"edges": [
				{
					"node": {
						"text": "Thank you so much u0040schiaparelli and u0040danielroseberry for making my pearly Met dreams come true. 50,000 pearls!!! And to u0040lorraineschwartz for the prettiest diamonds"
					}
				}
			]
		},
		"edge_media_to_sponsor_user": {
			"edges": []
		},
		"is_affiliate": false,
		"is_paid_partnership": false,
		"like_and_view_counts_disabled": false,
		"media_preview": null,
		"location": null,
		"edge_media_to_comment": {
			"count": 6526
		},
		"edge_liked_by": {
			"count": 1686970
		},
		"coauthor_producers": [],
		"pinned_for_users": [],
		"edge_sidecar_to_children": {
			"edges": []
		}
	}
}]
```

### How much will scraping Quick Instagram Post Checker cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

[Watch this video](https://www.youtube.com/watch?v=-wyz2iscZ30) for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

### Integrations and Quick Instagram Posts Scraper

Last but not least, Instagram Quick Posts Scraper can be connected with almost any cloud service or web app thanks to  <a href="https://apify.com/integrations"  target="_blank"> integrations on the Apify platform</a>. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, <a href="https://docs.apify.com/integrations"  target="_blank"> and more</a>. Or you can use <a href="https://docs.apify.com/integrations/webhooks"  target="_blank"> webhooks</a> to carry out an action whenever an event occurs, e.g. get a notification whenever Quick Instagram Posts Scraper successfully finishes a run.

### Using Quick Instagram Posts Checker with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the <a href="https://docs.apify.com/api/v2"  target="_blank"> Apify API reference</a> docs for full details or click on the <a href="https://apify.com/alexey/quick-instagram-posts-checker/api"  target="_blank"> API tab</a> for code examples.

### Not your cup of tea? Build your own scraper

Quick Instagram Posts Checker doesn’t exactly do what you need? You can always build your own! We have various [scraper templates](https://apify.com/templates) in Python, JavaScript, and TypeScript to get you started. Alternatively, you can write it from scratch using our [open-source library Crawlee](https://crawlee.dev/). You can keep the scraper to yourself or make it public by adding it to Apify Store (and [find users](https://blog.apify.com/make-regular-passive-income-developing-web-automation-actors-b0392278d085/) for it).

Or let us know if you need a [custom scraping solution](https://apify.com/custom-solutions).

### **Your feedback**

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for Quick Instagram Posts Checker or simply found a bug, please create an issue on the Actor’s [Issues tab](https://console.apify.com/actors/kSeqiCrezHumrvHF5/issues) in Apify Console.

# Actor input Schema

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

Only URLs to public profiles or posts expected to work, everything else will return error

## `proxy` (type: `object`):

Either use an Apify residential proxy, or provide your own proxy servers. Datacenter proxies will not work.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.instagram.com/p/CeoM7sMsLIU/"
    }
  ],
  "proxy": {
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": [
        {
            "url": "https://www.instagram.com/p/CeoM7sMsLIU/"
        }
    ],
    "proxy": {
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("apify/quick-instagram-posts-checker").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": [{ "url": "https://www.instagram.com/p/CeoM7sMsLIU/" }],
    "proxy": { "apifyProxyGroups": ["RESIDENTIAL"] },
}

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    {
      "url": "https://www.instagram.com/p/CeoM7sMsLIU/"
    }
  ],
  "proxy": {
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call apify/quick-instagram-posts-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=apify/quick-instagram-posts-checker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Quick Instagram Posts Checker",
        "description": "Fast Instagram stats (for profiles and post only) for bulk tracking and analytics",
        "version": "0.0",
        "x-build-id": "Ho80J5Wmdc5fG69o1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/apify~quick-instagram-posts-checker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-apify-quick-instagram-posts-checker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/apify~quick-instagram-posts-checker/runs": {
            "post": {
                "operationId": "runs-sync-apify-quick-instagram-posts-checker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/apify~quick-instagram-posts-checker/run-sync": {
            "post": {
                "operationId": "run-sync-apify-quick-instagram-posts-checker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Instagram PROFILES or POST URLs",
                        "type": "array",
                        "description": "Only URLs to public profiles or posts expected to work, everything else will return error",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Either use an Apify residential proxy, or provide your own proxy servers. Datacenter proxies will not work.",
                        "default": {
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
