# Instagram Post Image Analyzer - Vision Tagging (`seemuapps/instagram-post-image-analyzer`) Actor

Analyze the images on any Instagram profile or post with vision models. Get a description, content category, detected objects and brands, on-image text, brand safety, and suggested hashtags for every post.

- **URL**: https://apify.com/seemuapps/instagram-post-image-analyzer.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:** Social media, AI, Developer tools
- **Stats:** 7 total users, 3 monthly users, 90.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $18.00 / 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?

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 Image Analyzer

See what is actually in your Instagram images, at scale. Point it at a profile or a list of posts and a vision model describes every image, detects objects and brands, reads on-image text, flags brand safety, and suggests hashtags.

### What you get

For every post:

- Post basics: shortcode, URL, media type, caption, like and comment counts, thumbnail URL, author
- **Description**: one sentence describing the image
- **Category**: the content category
- **Objects**: notable objects detected in the image
- **Brands**: visible brands or logos
- **On-image text**: any text read from the image
- **Brand safety**: safe, review, or risky
- **Suggested hashtags**: relevant hashtags for the image

### Use cases

- Auto tag and categorize a creator's or competitor's feed
- Detect product placements and brand logos across posts
- Build searchable image catalogs from Instagram content
- Brand safety screening before a partnership
- Generate hashtag ideas from real post imagery

### How to use

1. Enter a **Username** to analyze recent posts, or paste specific **Post URLs**
2. Set **Max posts** when using a username
3. Optionally change the **Vision model**
4. Run the actor. Each post becomes one row in the **Dataset** tab

### Output example

```json
{
  "shortcode": "DZ8cY6xAElr",
  "postUrl": "https://www.instagram.com/p/DZ8cY6xAElr/",
  "mediaType": "video",
  "category": "wildlife",
  "description": "A close-up of a baby sea turtle swimming through clear turquoise water above a sandy seabed.",
  "objects": ["baby sea turtle", "water", "seabed"],
  "brands": [],
  "onImageText": [],
  "brandSafety": "safe",
  "suggestedHashtags": ["BabySeaTurtle", "OceanLife", "WildlifePhotography", "MarineLife", "SeaTurtle"]
}
```

### Notes

- For videos and Reels, the cover image is analyzed.
- Posts without an available image are returned with empty analysis fields so no post is silently dropped.
- The default model is a fast, low cost vision model. Any vision model that accepts image input can be used.

# Actor input Schema

## `username` (type: `string`):

Instagram username whose recent posts to analyze (with or without @). Leave empty if you provide Post URLs instead.

## `postUrls` (type: `array`):

Specific Instagram post or Reel URLs or shortcodes to analyze. If set, these are used instead of the username's recent posts.

## `maxPosts` (type: `integer`):

Maximum number of posts to analyze when using a username. 0 means no cap.

## `model` (type: `string`):

Vision model used to analyze each image. A fast, low cost model is recommended.

## Actor input object example

```json
{
  "username": "natgeo",
  "postUrls": [],
  "maxPosts": 12,
  "model": "google/gemini-2.5-flash"
}
```

# Actor output Schema

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

One record per post. Fields: postId, shortcode, postUrl, mediaType, caption, likeCount, commentCount, thumbnailUrl, authorUsername, description, category, objects, brands, onImageText, brandSafety, suggestedHashtags.

# 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 = {
    "username": "natgeo",
    "postUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/instagram-post-image-analyzer").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 = {
    "username": "natgeo",
    "postUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/instagram-post-image-analyzer").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 '{
  "username": "natgeo",
  "postUrls": []
}' |
apify call seemuapps/instagram-post-image-analyzer --silent --output-dataset

```

## MCP server setup

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

```

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/fZT73FT8Gl7aJF0BG/builds/yRVfHfdhGcBoIjoxp/openapi.json
