{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Hashtag Video Scraper & Filters — Beta",
    "description": "Instagram hashtag video/Reels scraper with chosen output fields and date, engagement and literal caption filters. Beta: one hashtag, up to 20 rows; popular-source availability varies. $0.01/start + $0.001/output row. No Instagram login.",
    "version": "0.0",
    "x-build-id": "kFDL4xaHJjGzT6gqj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zexorama~instagram-popular-video-selector-beta/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zexorama-instagram-popular-video-selector-beta",
        "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/zexorama~instagram-popular-video-selector-beta/runs": {
      "post": {
        "operationId": "runs-sync-zexorama-instagram-popular-video-selector-beta",
        "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/zexorama~instagram-popular-video-selector-beta/run-sync": {
      "post": {
        "operationId": "run-sync-zexorama-instagram-popular-video-selector-beta",
        "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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "One hashtag and output quota",
            "minItems": 1,
            "maxItems": 1,
            "type": "array",
            "description": "JSON array containing exactly one {hashtag, limit}. The per-hashtag output quota is 1–20 and defaults to 20 when omitted; enough qualifying source records are not guaranteed.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "hashtag"
              ],
              "properties": {
                "hashtag": {
                  "type": "string",
                  "title": "Hashtag",
                  "description": "Exact caption hashtag, with or without the leading #.",
                  "minLength": 1,
                  "maxLength": 200
                },
                "limit": {
                  "type": "integer",
                  "title": "Attribution limit",
                  "description": "Maximum qualifying records credited to the one hashtag, from 1 to 20; defaults to 20 when omitted.",
                  "minimum": 1,
                  "maximum": 20,
                  "default": 20
                }
              }
            }
          },
          "maxItems": {
            "title": "Maximum unique beta output rows",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum unique qualifying beta output records, from 1 to 20; defaults to 20. A smaller source sample or spending allowance can reduce delivery.",
            "default": 20
          },
          "metricScope": {
            "title": "Metric scope",
            "enum": [
              "source_reported",
              "instagram"
            ],
            "type": "string",
            "description": "Source-reported likes/comments may reflect a broader platform scope and are not verified Instagram-only counts. Strict Instagram leaves optional unsupported metrics null and rejects active likes/comments minima or required likes/comments. Plays/shares are unavailable in this product.",
            "default": "source_reported"
          },
          "fields": {
            "title": "Output fields",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Select output fields. Dates, owner and supported source-reported likes/comments are acquired when projected, required or needed by a filter. The existing default fields include dates, likes and comments. Unsupported optional plays/shares and strict-scope metrics remain null. Required fields still apply when omitted from this projection.",
            "items": {
              "type": "string",
              "enum": [
                "id",
                "shortCode",
                "url",
                "contentType",
                "caption",
                "hashtags",
                "ownerUsername",
                "publishedAt",
                "likesCount",
                "commentsCount",
                "playsCount",
                "sharesCount",
                "metricScope",
                "matchedHashtags",
                "selectedForHashtags",
                "fieldStatus"
              ]
            },
            "default": [
              "id",
              "url",
              "contentType",
              "caption",
              "publishedAt",
              "likesCount",
              "commentsCount",
              "playsCount",
              "metricScope",
              "matchedHashtags",
              "selectedForHashtags"
            ]
          },
          "requiredFields": {
            "title": "Required available fields",
            "uniqueItems": true,
            "type": "array",
            "description": "Fields that must be available for a record to qualify, independently of output projection. Dates and owner are supported in both scopes; likes/comments only in source_reported. Required plays/shares or strict Instagram likes/comments fail before acquisition.",
            "items": {
              "type": "string",
              "enum": [
                "id",
                "shortCode",
                "url",
                "contentType",
                "caption",
                "hashtags",
                "ownerUsername",
                "publishedAt",
                "likesCount",
                "commentsCount",
                "playsCount",
                "sharesCount"
              ]
            },
            "default": [
              "id",
              "url"
            ]
          },
          "publishedAfter": {
            "title": "Published at or after",
            "type": "string",
            "description": "Absolute ISO timestamp with a timezone, inclusive. No relative dates."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Absolute ISO timestamp with a timezone, exclusive. Must follow publishedAfter."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "maximum": 9007199254740991,
            "type": "integer",
            "description": "Optional source-reported minimum. Explicit zero requires a known value; missing or hidden likes do not pass. Unsupported in strict Instagram scope."
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "maximum": 9007199254740991,
            "type": "integer",
            "description": "Optional source-reported minimum. Explicit zero requires a known value; missing comments do not pass. Unsupported in strict Instagram scope."
          },
          "candidatesPerHashtag": {
            "title": "Maximum source candidates",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Inspect at most this many popular-video candidates for the one hashtag, from 1 to 100. Separate from desired output quantity; candidates need not match all filters or provide every required field.",
            "default": 100
          },
          "timeoutSecs": {
            "title": "Acquisition timeout in seconds",
            "minimum": 30,
            "maximum": 120,
            "type": "integer",
            "description": "Bounded source acquisition deadline, from 30 to 120 seconds. The parent run must leave at least another 30 seconds for processing and output confirmation.",
            "default": 120
          },
          "allowPartial": {
            "title": "Allow partial source acquisition",
            "type": "boolean",
            "description": "Allow valid records from an incomplete source and retain an explicit partial report. Disable to reject incomplete acquisition. A filled output quota does not prove a complete source.",
            "default": true
          },
          "relevance": {
            "title": "Optional literal caption relevance",
            "type": "object",
            "description": "Literal consecutive caption words, normalized with trim, NFKC and lowercase; punctuation separates words, while diacritics and scripts remain distinct. includeAny and localityAny each require at least one phrase from the caption body after removing hashtags, mentions and URLs; excludeAny rejects matches anywhere in the full caption, including hashtags. Empty arrays impose no extra condition. At most20 unique phrases per array,1–80 characters each; no leading #/@, URLs, domains, paths, control characters or contradictory required/excluded phrases. This checks text evidence only: no language detection, geolocation, semantic or visual-relevance promise. Evidence is report-only; output fields are unchanged.",
            "properties": {
              "includeAny": {
                "type": "array",
                "maxItems": 20,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "title": "Include any caption-body phrase",
                "description": "At least one literal phrase must match the caption body outside hashtags, mentions and URLs. Empty means no inclusion condition.",
                "editor": "json"
              },
              "excludeAny": {
                "type": "array",
                "maxItems": 20,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "title": "Exclude any full-caption phrase",
                "description": "Reject a literal phrase anywhere in the full caption, including hashtags, mentions and URLs. Empty means no exclusion condition.",
                "editor": "json"
              },
              "localityAny": {
                "type": "array",
                "maxItems": 20,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "title": "Require any caption-body place phrase",
                "description": "At least one supplied literal phrase must match the caption body outside hashtags, mentions and URLs. This is text evidence, not verified geolocation. Empty means no locality condition.",
                "editor": "json"
              }
            },
            "default": {
              "includeAny": [],
              "excludeAny": [],
              "localityAny": []
            },
            "additionalProperties": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}