{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reels Search & API: Viral Reels by Keyword",
    "description": "Search Instagram Reels by keyword or hashtag: plays, likes, comments, date, duration, MP4 video URL, caption, hashtags and the creator. Related keywords, date and plays filters, sort by plays, only-new monitoring. No login.",
    "version": "0.1",
    "x-build-id": "4H0nAmfqNQiKZcKTP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~instagram-reels-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-instagram-reels-search",
        "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/s_actors~instagram-reels-search/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-instagram-reels-search",
        "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/s_actors~instagram-reels-search/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-instagram-reels-search",
        "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": "What to search, one per line: a phrase (home workout, dubai real estate, coffee recipes), a hashtag (#homeworkout) or an Instagram search link (https://www.instagram.com/popular/home-workout/). Specific phrases work best: Instagram has a Reels search page for most of them, but not for some one-word topics (coffee, fitness).",
            "items": {
              "type": "string"
            }
          },
          "maxReelsPerKeyword": {
            "title": "💯 Max Reels per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Instagram shows up to ~90 Reels per keyword (the top Reels for it, popular and recent). For more Reels on a topic, add related keywords below or more phrases above.",
            "default": 50
          },
          "relatedKeywords": {
            "title": "➕ Also search related keywords",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "For each keyword, also search the first N related keywords Instagram suggests (home workout → home workout plan for a week, dumbbell workout routine for home...). Each one adds up to Max Reels per keyword. 0 = only your keywords. The full list of related keywords is saved in the KEYWORDS record either way.",
            "default": 0
          },
          "similarKeywordsWhenMissing": {
            "title": "🧭 Find close keywords when Instagram has no page",
            "type": "boolean",
            "description": "When Instagram has no Reels search page for a keyword (often one-word topics like coffee), look up close keywords that have one with a Google search (coffee → coffee trends, coffee types...) and return their Reels. Charged once per keyword, only when close keywords are found.",
            "default": true
          },
          "sortBy": {
            "title": "↕️ Sort",
            "enum": [
              "relevance",
              "plays",
              "likes",
              "comments",
              "newest"
            ],
            "type": "string",
            "description": "Order of the Reels of each keyword. Other than Instagram's order, all ~90 Reels of the keyword are read and the top Max Reels per keyword are returned.",
            "default": "relevance"
          },
          "postedAfter": {
            "title": "📅 Posted after",
            "type": "string",
            "description": "Only Reels posted after this date (2026-10-01) or within this period (7 days, 2 weeks, 3 months, 1 year)."
          },
          "minPlays": {
            "title": "▶️ Minimum plays",
            "minimum": 0,
            "type": "integer",
            "description": "Only Reels played at least this many times (100000 = viral Reels only). Empty = every Reel."
          },
          "minLikes": {
            "title": "❤️ Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Only Reels with at least this many likes. Empty = every Reel."
          },
          "minComments": {
            "title": "💬 Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Only Reels with at least this many comments. Empty = every Reel."
          },
          "onlyNew": {
            "title": "🆕 Only new Reels since the previous run",
            "type": "boolean",
            "description": "Return only Reels not returned by your earlier runs with the same monitor name. The first run returns everything and remembers it.",
            "default": false
          },
          "monitorName": {
            "title": "🏷️ Monitor name",
            "type": "string",
            "description": "Separate memory for separate schedules (for example 'fitness' and 'travel'). Empty = default."
          },
          "maxConcurrency": {
            "title": "⚡ Keywords at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many keywords are searched in parallel.",
            "default": 3
          },
          "debugLog": {
            "title": "🐞 Debug log",
            "type": "boolean",
            "description": "Log every retried request.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}