{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reels Search Scraper",
    "description": "Search public Instagram Reels by keyword or hashtag. Returns Reel URL, caption, plays, likes, comments, author, music, location and date. Word filters, date window, sorting. No login. MCP-ready.",
    "version": "0.1",
    "x-build-id": "Tc4qHdmcrNHR9smFh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~instagram-reels-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-instagram-reels-search-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-reels-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-instagram-reels-search-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-reels-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-instagram-reels-search-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": {
          "keywords": {
            "title": "Keywords or hashtags",
            "type": "array",
            "description": "Topics to search, one search per entry. Plain keywords or phrases (e.g. 'home workout', 'vegan breakfast') and hashtags (e.g. '#homeworkout') find Reels ABOUT the topic from Instagram's public index. An '@handle' or instagram.com profile link fetches that account's latest Reels instead. Each Reel is saved once even if several keywords match it.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerKeyword": {
            "title": "Maximum Reels per keyword",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most Reels saved per keyword; you are charged only for saved Reels. About 9 Reels per provider page and up to 11 pages, so roughly 99 Reels per keyword is the practical ceiling. Default 20.",
            "default": 20
          },
          "mustIncludeWords": {
            "title": "Caption must include (all of)",
            "type": "array",
            "description": "Keep only Reels whose caption contains EVERY word or phrase listed (whole words, any letter case; Chinese/Japanese/Korean terms match as text). Example: ['workout','beginner']. Filtered Reels are never charged. Default empty.",
            "items": {
              "type": "string"
            }
          },
          "anyOfWords": {
            "title": "Caption includes at least one of",
            "type": "array",
            "description": "Keep only Reels whose caption contains AT LEAST ONE of these words, phrases or #hashtags (OR). Example: ['#fitness','gym']. Filtered Reels are never charged. Default empty.",
            "items": {
              "type": "string"
            }
          },
          "excludeWords": {
            "title": "Caption must NOT include",
            "type": "array",
            "description": "Drop Reels whose caption contains any of these words or phrases (NOT). Example: ['giveaway','sponsored']. Filtered Reels are never charged. Default empty.",
            "items": {
              "type": "string"
            }
          },
          "datePosted": {
            "title": "Posted within",
            "enum": [
              "any",
              "last-week",
              "last-month",
              "last-year"
            ],
            "type": "string",
            "description": "Ask the search source for Reels from the last week, month or year. 'any' applies no window. Hour or day windows are not offered by the source.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "most-played",
              "newest"
            ],
            "type": "string",
            "description": "'relevance' keeps the search source's order and stops early once enough Reels are found. 'most-played' and 'newest' fetch up to the page limit, then return the top Reels by plays or by date. Sorting applies within the pages fetched.",
            "default": "relevance"
          },
          "minimumLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Skip Reels with fewer public likes than this. Skipped Reels are never charged. Default 0 (keep all).",
            "default": 0
          },
          "minPlayCount": {
            "title": "Minimum play count",
            "minimum": 0,
            "type": "integer",
            "description": "Skip Reels with fewer plays than this. Skipped Reels are never charged. Default 0 (keep all).",
            "default": 0
          },
          "onlyReelsNewerThan": {
            "title": "Only Reels newer than (ISO date)",
            "type": "string",
            "description": "Skip Reels posted before this date (ISO 8601, e.g. 2026-01-01). Skipped Reels are never charged. Default empty (no date cut). For a quick window use 'Posted within' below."
          },
          "maxProviderPages": {
            "title": "Maximum provider pages",
            "minimum": 1,
            "maximum": 11,
            "type": "integer",
            "description": "Most provider pages fetched per keyword (about 9 Reels each, maximum 11). Raise it when filters discard many Reels; lower it for cheap test runs. Pages are fetched in parallel. Default 5.",
            "default": 5
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "full",
              "compact"
            ],
            "type": "string",
            "description": "Use this to choose between concise agent-friendly rows and richer research rows. Choose compact for the most important Reel and author fields, or full for all fields including media URLs, music metadata, cursor provenance, and engagement rates. Default is full.",
            "default": "full"
          },
          "providerOrder": {
            "title": "Data route order (advanced)",
            "enum": [
              "scrapecreators-first",
              "tikhub-first",
              "sociavault-first",
              "scrapecreators-only",
              "tikhub-only",
              "sociavault-only"
            ],
            "type": "string",
            "description": "Which data route is tried first; the others are automatic backups. Leave the default unless a route is failing for you.",
            "default": "scrapecreators-first"
          },
          "startCursor": {
            "title": "Start cursor",
            "maxLength": 200,
            "type": "string",
            "description": "Continue ONE keyword from a previous run: paste keywordSummaries[].nextCursor from that run's RUN_SUMMARY (a page number for the main route). Leave blank to start from the first page."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}