{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Profile Reels Scraper - Feed by Username",
    "description": "Scrape public Instagram Reels from a profile's Reels tab by username or profile URL. Returns plays, likes, comments, duration, video URL and audio for each Reel, with no login or cookies.",
    "version": "0.1",
    "x-build-id": "fXcIY0GOxc9d9vaC9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~instagram-profile-reels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-instagram-profile-reels-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/khadinakbar~instagram-profile-reels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-instagram-profile-reels-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/khadinakbar~instagram-profile-reels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-instagram-profile-reels-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",
        "required": [
          "usernames"
        ],
        "properties": {
          "usernames": {
            "title": "Instagram usernames or profile URLs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Public Instagram handles whose Reels tab should be scraped. Accepts plain handles (for example natgeo), @handles, full profile URLs, or profile /reels tab URLs. Direct Reel, post, or hashtag URLs belong on sibling Actors. Default quality sample is one public creator handle.",
            "items": {
              "type": "string"
            }
          },
          "maxReelsPerProfile": {
            "title": "Max Reels per profile",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Upper bound on Reels saved per username. Accepts 1-200; defaults to 12 (one page of the public Reels tab). Raising this adds extra pages. With a filter or most-played sorting the Actor scans more Reels than it saves (up to 5x, max 400) but you are only charged for saved rows.",
            "default": 12
          },
          "maxTotalReels": {
            "title": "Max total Reels per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard global cap on saved Reel rows across all profiles. The run stops when the cap is reached. Accepts 1-10000; defaults to 100. Use this as the spend guard together with the per-Reel event. It does not raise the per-profile cap.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest",
              "mostPlayed"
            ],
            "type": "string",
            "description": "newest saves the latest Reels first (fastest, cheapest). mostPlayed scans a wider window per profile (about 3x the per-profile cap, at least 48) and saves the top Reels by play count.",
            "default": "newest"
          },
          "onlyReelsNewerThan": {
            "title": "Only Reels newer than",
            "type": "string",
            "description": "Keep Reels posted on or after this cutoff. Accepts an ISO date such as 2026-09-01 or a relative window such as 7 days. Leave empty to keep the full public tab up to the caps. Filtered Reels are unbilled and counted in RUN_SUMMARY."
          },
          "minPlays": {
            "title": "Minimum plays",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only Reels with at least this many plays. Reels below the threshold are skipped and not charged. 0 disables the filter. Use it with maxReelsPerProfile to pull a creator's best-performing Reels.",
            "default": 0
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only Reels with at least this many likes. Reels below the threshold are skipped and not charged. 0 disables the filter. Combine with minPlays to find breakout content.",
            "default": 0
          },
          "skipPinnedPosts": {
            "title": "Skip pinned Reels when flagged",
            "type": "boolean",
            "description": "When true, drop Reels the profile owner pinned. Uses richer data routes, so runs can be slightly slower. Defaults to false so every public Reel is kept.",
            "default": false
          },
          "includeAudioDetails": {
            "title": "Include audio details",
            "type": "boolean",
            "description": "When true, rows carry audioTitle, audioArtist and audioType (original sound or licensed music). Uses richer data routes, so it can be a little slower. Defaults to false; leave off when you only need plays, likes and media links.",
            "default": false
          },
          "includeRawData": {
            "title": "Include raw response payload",
            "type": "boolean",
            "description": "When true, each row also carries the unmodified provider item under a raw key for field-level analysis. Defaults to false because raw payloads roughly triple row size. Leave off for normal scraping; every normalized field is already extracted.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}