# 🏯 Instagram Scraper (Pay Per Result) (`apidojo/instagram-scraper`) Actor

Famous for its blazing-fast speed and completeness, it offers rapid and efficient scraping of many URLs such as; location, audio, tag, and profile.  It's incredibly cost-effective at only $0.50 for every 1000 posts, capable of scraping 100-200 posts each second!

- **URL**: https://apify.com/apidojo/instagram-scraper.md
- **Developed by:** [API Dojo](https://apify.com/apidojo) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 6,948 total users, 1,099 monthly users, 98.9% runs succeeded, 246 bookmarks
- **User rating**: 4.86 out of 5 stars

## Pricing

$0.50 / 1,000 posts

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

## 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

[comment]: <> (internal-ad-start)
<p><strong>Check out our newest actor:</strong></p>

<table>
  <tr>
    <td style="width: 100px;">
      <img src="https://images.apifyusercontent.com/pDgHQrmAKP4yQ6-q3IoWMMmvtkhRHuhz9k1NMrBkwBE/rs:fill:128:128/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vWGdpZmtoNDhqaTVBNTVCcFotYWN0b3ItWlNCdUdjQU9jVFpqSFVWeXYteFE2N0pGUkljSy1pbnN0YWdyYW0tbG9nby5qcGVn.jpeg" alt="Instagram Hashtag Scraper" style="width: 100px;">
    </td>
    <td style="padding-left: 16px;">
      <a href="https://apify.com/apidojo/instagram-hashtag-scraper?fpr=yhdrb&fp_sid=top_ihs" target="_blank" style="text-decoration: none; color: inherit;">
        <strong>Instagram Hashtag Scraper</strong>
      </a>
      <br />
      <a href="https://apify.com/apidojo/instagram-hashtag-scraper?fpr=yhdrb&fp_sid=top_ihs" target="_blank" style="text-decoration: none; color: inherit;">
        Best posts & reels hashtag scraper! $0.016 / hashtag gets you 60 items FREE, then $0.0004 / additional item. No authentication, no proxy needed. Perfect for content research and social media intelligence! Fast, reliable results in clean CSV format.
      </a>
    </td>
  </tr>
</table>

<p><em style="font-size: 13px; color: gray;">Built by us - the API Dojo team. Same quality, same support level. Scroll down to continue reading the documentation</em></p>

[comment]: <> (internal-ad-end)

![](https://www.dropbox.com/scl/fi/oq5dq6cnf01b8sqi1tznx/instagram-scraper.jpeg?rlkey=w36uigtoe7mxrpd4yk1xa4kz1&dl=1)

## 🏯 Instagram Scraper: The Ultimate Swiss-knife you were looking for 🏯
Presenting the Instagram Scraper, the premier tool for extracting data from [Instagram.com](https://instagram.com). Famous for its blazing fast speed and completeness, it offers rapid and efficient scraping of many URLs such as; location, audio, tag, reels, and profile. Perfect for researchers requiring detailed Instagram data or businesses looking to understand customer sentiments and trends, the Instagram Scraper stands as the tool of choice. What's more, it's incredibly cost-effective at only $0.50 for every 1000 posts, capable of scraping 100-200 posts each second!

### ℹ️ Disclaimer
We are professionals specializing in data extraction. This actor is exceptionally fine-tuned for scraping [Instagram](https://instagram.com), providing you with a comprehensive suite of tools. Moreover, we provide top-tier maintenance and exceptional support. Pure data - at your fingertips. You name it, we get it.

#### Important Note About Usage
This scraper is designed to fetch posts from Instagram profiles and hashtags. Please follow these rules:  

- Each query or profile must fetch **at least 10 posts**. Fetching fewer creates unnecessary overhead and may be blocked.  
- Do not artificially limit results with a very near `until` parameter, this causes inefficient runs.  
- Scraping below these limits may trigger our **rate-limiter** and result in blocked requests.  

### 🐉 Features and Functionality
- Lightning speed, extreme efficiency, and fits for all types of usage.
- In-depth user information for thorough data analysis.
- Very detailed information related with location, video, carousel, image, owner and more.
- High flexibility, perfectly customized.

### 🆓 Demo Mode & Free Users
The users that are on Free Plan can use the actor only on Demo Mode. **Please keep in mind that the users that are on Free Plan can retrieve a maximum of 10 items, and cannot use the actor via API.** If you want to use this actor without any limitation, you have to subscribe to a paid plan on Apify. You can check this [link to subscribe easily](https://apify.com/pricing?fpr=yhdrb).

### 👹 Competitors
There are not much Instagram Scraper on the market since it is hard to retrieve the data from and requires high maintenance. Luckily, The Dojo is there for you. Try it, and you will see the difference than the other ones exists on the market. Please be aware that although all the tests used identical inputs and resources, the recorded speeds and costs may differ and might not accurately reflect the real metrics.

| Feature | 🏯 Instagram Scraper | Apify Instagram Scraper | Instagram Scraper - All in one
| ----- | ---- | ----------- | -------------|
| Authentication Information Required | ❌ | ❌ | ✔️ |
| Pricing Plan  | $0.50 per 1k results | Monthly Price | Monthly Price |
| Price Per 100k Results | $50 | Monthly Price | Monthly Price |
| Posts Per Second (Location) | 183 | 1 | 1 |
| Posts Per Second (Audio)  | 115 | 2 | 3 |
| Posts Per Second (Tags)  | 199 | 4 | 1 |
| Posts Per Second (User)  | 147 | 2 | 1 |
| Posts Per Second (Reels)  | 94 | 2 | 1 |
| Posts Per Second (Users' Tagged)  | 85 | 4 | 2 |
| Maximum Posts Per Input Limit  | ✔️ | ❌ | ❌ |
| Maximum Posts Total Limit  | ✔️ | ✔️ | ✔️ |
| Scrape Specific Profiles  | ✔️ | ✔️ | ✔️ |
| Scrape From Location URLs | ✔️ | ✔️ | ❌ |
| Scrape From Tag URLs | ✔️ | ✔️ | ❌ |
| Scrape From User URLs | ✔️ | ✔️ | ✔️ |
| Scrape From Audio URLs | ✔️ | ❌ | ❌ |
| Scrape From Reels URLs | ✔️ | ✔️ | ✔️ |
| Scrape From Users' Tagged URLs | ✔️ | ❌ | ❌ |
| Simple Output | ✔️ | ✔️ | ❌ |
| No Proxy Required | ✔️ | ❌ | ❌ |

### 🎎 Who needs this?
The Instagram Scraper is engineered to deliver outstanding efficiency, rapid performance, and affordability for a wide variety of users:

- **Lead Generation:** By scraping posts related to specific hashtags, locations, or user interests, lead generators can identify and segment potential customers based on their interests, behaviors, and interactions on [Instagram](https://instagram.com).
- **Social Media Marketing Agencies:** These agencies can use the Instagram Scraper to gather data on popular trends, hashtags, and content from specific locations or user profiles, helping them develop targeted marketing strategies and content plans for their clients.
- **Market Research Firms:** Market researchers can utilize this tool to analyze consumer behavior, preferences, and trends based on the posts from different [Instagram](https://instagram.com) tags, locations, or user profiles, providing valuable insights for market analysis and reports.
- **Fashion and Retail:** Brands in these sectors can leverage the Instagram Scraper to track popular fashion trends, influencer partnerships, and consumer engagement with different products, aiding in product development and marketing strategies.
- **Event Planners and Promoters:** By scraping posts from specific locations or events, planners and promoters can gauge public interest and engagement, helping them design better marketing campaigns and enhance event experiences.

### 🍜 Output Example
````

{
"id": "3245142029192513970\_62815273217",
"code": "C0JD3tntcmy",
"url": "https://www.instagram.com/p/C0JD3tntcmy/",
"createdAt": "2023-11-27T07:48:34.000Z",
"likeCount": 114,
"commentCount": 5,
"isPinned": false,
"isLikeAndViewCountsDisabled": false,
"isPaidPartnership": false,
"caption": "Na zajęciach z Pomkami nie brakowało buziaków i przytulasów 🥰🤗 \n\n#pomeranian #pomeranianpuppies #szpicminiaturowy #szpic #bydgoszcz #warsztaty #pieski #psieżycie #psieszczęście #psiezabawy #usmiech #szczęście #szczeniaki #pieseły",
"owner": {
"id": "62815273217",
"username": "jogi.lapki.bydgoszcz",
"fullName": "Joga z pieskami 📍Bydgoszcz🐾",
"profilePicUrl": "https://scontent-fra3-2.cdninstagram.com/v/t51.2885-19/400119638\_1273742020004099\_7576288759792512400\_n.jpg?\_nc\_ht=scontent-fra3-2.cdninstagram.com&\_nc\_cat=111&\_nc\_ohc=6nX5af-qQH8AX9QMRJU\&edm=ACaJ6XgBAAAA\&ccb=7-5\&oh=00\_AfBI9GACGoUxAmo-WtdryYfE92tSfSy226uf662nqURTUQ\&oe=658BE275&\_nc\_sid=594fa5",
"isPrivate": false,
"isVerified": false,
"followerCount": 5917,
"followingCount": 5917,
"postCount": 48
},
"coowners": \[
{
"id": "11830955",
"username": "taylorswift",
"fullName": "Taylor Swift",
"profilePicUrl": "https://scontent-cdg4-1.cdninstagram.com/v/t51.2885-19/558299267\_18598352038054956\_7239389867355254960\_n.jpg?stp=dst-jpg\_e0\_s150x150\_tt6\&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&\_nc\_ht=scontent-cdg4-1.cdninstagram.com&\_nc\_cat=1&\_nc\_oc=Q6cZ2QFTGZPFSxifoL-mbHp\_bddfuwmhZyG7wLZtjVLNO0k8zmcm4YbJL9Ia2SwDtYgyAGk&\_nc\_ohc=kt3Rw9h2HlQQ7kNvwFgfuNb&\_nc\_gid=b7v3CyGnA1Es0v\_jrpaz3g\&edm=ABmJApABAAAA\&ccb=7-5\&oh=00\_Afr7rI02OmETc08J0965kqBTv\_lX0Bp8rJRHerOFah5-eQ\&oe=69742551&\_nc\_sid=b41fef",
"isPrivate": false,
"isVerified": true
}
],
"location": {
"id": "215927995",
"name": "Bydgoszcz, Poland",
"slug": "Bydgoszcz",
"address": "",
"city": "",
"lat": 53.1222,
"lng": 17.9986
},
"isCarousel": false,
"isVideo": true,
"video": {
"id": "235268832770811v",
"url": "https://scontent-fra5-1.cdninstagram.com/o1/v/t16/f1/m69/GICWmACmUiQOyEkBAIXvggE-hRNYbpR1AAAF.mp4?efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uY2xpcHMuYzIuMTA3OC5oaWdoIn0&\_nc\_ht=scontent-fra5-1.cdninstagram.com&\_nc\_cat=108\&vs=235268832770811\_2877876632&\_nc\_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HSUNXbUFDbVVpUU95RWtCQUlYdmdnRS1oUk5ZYnBSMUFBQUYVAALIAQAVAhg6cGFzc3Rocm91Z2hfZXZlcnN0b3JlL0dFa0R1QUpONU5kS2RiWUFBT0lTa082OXRHSnpicFIxQUFBRhUCAsgBACgAGAAbABUAACb8ytegy8y9PxUCKAJDMywXQDxEGJN0vGoYEmRhc2hfaGlnaF8xMDgwcF92MREAdf4HAA%3D%3D&\_nc\_rid=b9547d3757\&ccb=9-4\&oh=00\_AfAp3PkOsXvaU2jWx9agAEBfAdluckNUD1xbBJZufq63QA\&oe=658A48CD&\_nc\_sid=594fa5",
"width": 1078,
"height": 1916,
"duration": 28.281,
"playCount": 3321
},
"image": {
"url": "https://scontent-fra5-1.cdninstagram.com/v/t51.2885-15/404322568\_7096724227032530\_1699247048939566807\_n.jpg?stp=dst-jpg\_e15\&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgweDE5MjAuc2RyIn0&\_nc\_ht=scontent-fra5-1.cdninstagram.com&\_nc\_cat=102&\_nc\_ohc=orHK3-26z1IAX9Lvg5s\&edm=ACaJ6XgBAAAA\&ccb=7-5\&ig\_cache\_key=MzI0NTE0MjAyOTE5MjUxMzk3MA%3D%3D.2-ccb7-5\&oh=00\_AfCaNtH-B79PI2lwiwQ\_GrI-0ry120WwgjOCnpxhbU-ZXg\&oe=658A3A26&\_nc\_sid=594fa5",
"width": 1080,
"height": 1920
}
}

````

### 🍚 Input Parameters
| Field | Type | Description | Default value
| ----- | ---- | ----------- | -------------|
startUrls | array | [Instagram](https://instagram.com) URLs. Paste the URLs and get the results immediately. Profile, Search, Location or Audio URLs are supported. | `[]` |
until | string | A special date-string that allows you to retrieve posts newer than this date. | `null` |
maxItems | number | Maximum number of items that you want to receive as output | `Infinity` |
customMapFunction | String | Function that takes each of the objects as argument and returns data that will be mapped by the function itself. This function is not intended for filtering, please don't use it for filtering purposes or you will get banned automatically. | `null` |

### 🔧 Troubleshooting
- **Getting Few Results?** Check "Maximum number of items on output" (`maxItems`) field, and "Maximum charged results" fields. These two fields enable you to handle the total number of results. Leaving both empty will result infinite results.
- **Are Some Outputs Missing?** Ensure that you review all fields, not just the overview. You can navigate to the "Storage" tab and select either "Download the results" or "Open in a New Tab."
- **Getting No Results?** Confirm that your parameters are not overly restrictive.
- **Not Receiving New Items After a Large Batch?** Examine the log for messages like "Logging is too fast, some lines were skipped." If you encounter this issue, consider scraping smaller amounts of data to avoid it.

### 📞 Contact and Feature Requests
If you need any sort of support, please send an email to [apidojo10@gmail.com](mailto:apidojo10@gmail.com). You name it, we get it.

### 🈴 Other Actors you might want to check
- [Twitter Scraper Lite](https://apify.com/apidojo/twitter-scraper-lite?fpr=yhdrb)
- [Instagram Scraper Scraper](https://apify.com/apidojo/instagram-scraper?fpr=yhdrb)
- [Instagram Location Scraper](https://apify.com/apidojo/instagram-location-scraper?fpr=yhdrb)
- [Instagram Comments Scraper](https://apify.com/apidojo/instagram-comments-scraper?fpr=yhdrb)
- [Tweet Scraper](https://apify.com/apidojo/tweet-scraper?fpr=yhdrb)
- [Twitter User Scraper](https://apify.com/apidojo/twitter-user-scraper?fpr=yhdrb)
- [TikTok Comment Scraper](https://apify.com/apidojo/tiktok-comments-scraper?fpr=yhdrb)
- [TikTok User Scraper](https://apify.com/apidojo/tiktok-user-scraper?fpr=yhdrb)

# Actor input Schema

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

Instagram URLs. Paste the URLs, and get the results immediately. User, Tag, Location, Audio, Reels and Users' Tagged URLs are supported.
## `maxItems` (type: `integer`):

Maximum number of items that you want as output.
## `until` (type: `string`):

Returns posts newer than this date.
## `customMapFunction` (type: `string`):

Function that takes each of the objects as argument and returns data that will be mapped by the function itself. This function is not intended for filtering, please don't use it for filtering purposes or you will get banned automatically.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.instagram.com/taylorswift/",
    "https://www.instagram.com/explore/tags/travel",
    "https://www.instagram.com/explore/locations/213131048/berlin-germany/",
    "https://www.instagram.com/reels/audio/271328201351336/",
    "https://www.instagram.com/taylorswift/reels",
    "https://www.instagram.com/taylorswift/tagged"
  ],
  "maxItems": 1000,
  "until": "2023-12-31",
  "customMapFunction": "(object) => { return {...object} }"
}
````

# Actor output Schema

## `overview` (type: `string`):

No description

# 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/taylorswift/",
        "https://www.instagram.com/explore/tags/travel",
        "https://www.instagram.com/explore/locations/213131048/berlin-germany/",
        "https://www.instagram.com/reels/audio/271328201351336/",
        "https://www.instagram.com/taylorswift/reels",
        "https://www.instagram.com/taylorswift/tagged"
    ],
    "maxItems": 1000,
    "until": "2023-12-31",
    "customMapFunction": (object) => { return {...object} }
};

// Run the Actor and wait for it to finish
const run = await client.actor("apidojo/instagram-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/taylorswift/",
        "https://www.instagram.com/explore/tags/travel",
        "https://www.instagram.com/explore/locations/213131048/berlin-germany/",
        "https://www.instagram.com/reels/audio/271328201351336/",
        "https://www.instagram.com/taylorswift/reels",
        "https://www.instagram.com/taylorswift/tagged",
    ],
    "maxItems": 1000,
    "until": "2023-12-31",
    "customMapFunction": "(object) => { return {...object} }",
}

# Run the Actor and wait for it to finish
run = client.actor("apidojo/instagram-scraper").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": [
    "https://www.instagram.com/taylorswift/",
    "https://www.instagram.com/explore/tags/travel",
    "https://www.instagram.com/explore/locations/213131048/berlin-germany/",
    "https://www.instagram.com/reels/audio/271328201351336/",
    "https://www.instagram.com/taylorswift/reels",
    "https://www.instagram.com/taylorswift/tagged"
  ],
  "maxItems": 1000,
  "until": "2023-12-31",
  "customMapFunction": "(object) => { return {...object} }"
}' |
apify call apidojo/instagram-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🏯 Instagram Scraper (Pay Per Result)",
        "description": "Famous for its blazing-fast speed and completeness, it offers rapid and efficient scraping of many URLs such as; location, audio, tag, and profile.  It's incredibly cost-effective at only $0.50 for every 1000 posts, capable of scraping 100-200 posts each second!",
        "version": "0.0",
        "x-build-id": "FTWwI8bJ5d4Ovg7Ib"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/apidojo~instagram-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-apidojo-instagram-scraper",
                "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/apidojo~instagram-scraper/runs": {
            "post": {
                "operationId": "runs-sync-apidojo-instagram-scraper",
                "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/apidojo~instagram-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-apidojo-instagram-scraper",
                "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",
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Instagram URLs. Paste the URLs, and get the results immediately. User, Tag, Location, Audio, Reels and Users' Tagged URLs are supported.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Maximum number of items on output",
                        "type": "integer",
                        "description": "Maximum number of items that you want as output."
                    },
                    "until": {
                        "title": "Scrape Until",
                        "type": "string",
                        "description": "Returns posts newer than this date."
                    },
                    "customMapFunction": {
                        "title": "Custom map function",
                        "type": "string",
                        "description": "Function that takes each of the objects as argument and returns data that will be mapped by the function itself. This function is not intended for filtering, please don't use it for filtering purposes or you will get banned automatically."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
