{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Trending Reels & API: Viral Reels Right Now",
    "description": "Instagram trending Reels right now, no keyword needed: fresh Reels from Instagram's trending topics with plays, plays per hour, likes, comments, date, MP4 link and creator. Filters, sort by growth, only-new monitoring. No login.",
    "version": "0.1",
    "x-build-id": "czVKlBIKIaQswtcPG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~instagram-trending-reels/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-instagram-trending-reels",
        "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-trending-reels/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-instagram-trending-reels",
        "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-trending-reels/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-instagram-trending-reels",
        "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": {
          "sections": {
            "title": "📈 Trending sections",
            "type": "array",
            "description": "Which parts of Instagram's trending page to read: every section lists 12 topics that Instagram shows to a visitor without an account, and the Actor returns the fresh Reels of those topics. Empty = all 7 sections (84 topics). Trending now, What's happening now and Pop culture moments have the most fresh Reels.",
            "items": {
              "type": "string",
              "enum": [
                "TRENDING_NOW",
                "TRENDING_MONTH",
                "ENTERTAINMENT",
                "SHOP_THE_TRENDS",
                "LEARN_SOMETHING_NEW",
                "GET_INSPIRED",
                "BROWSE_CATEGORIES"
              ],
              "enumTitles": [
                "Trending now",
                "What's happening now (this month)",
                "Pop culture moments",
                "Shop the trends",
                "Learn something new",
                "Get inspired",
                "Find what you're into (categories)"
              ]
            }
          },
          "postedWithin": {
            "title": "📅 Posted within",
            "enum": [
              "24 hours",
              "3 days",
              "7 days",
              "14 days",
              "30 days"
            ],
            "type": "string",
            "description": "Only Reels posted within this period. Instagram's trending topics hold mostly older Reels (about 1 in 8 is younger than a week, 1 in 80 younger than a day), so a longer period returns more Reels.",
            "default": "7 days"
          },
          "maxReels": {
            "title": "💯 Max Reels",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many Reels to return in total (the best by the Sort below). The Actor reads topics in Instagram's order until it has twice this number of fresh Reels, so a small number is a quick, cheap run; for the full picture set it high (a week of the 7 sections is ~950 Reels).",
            "default": 100
          },
          "maxReelsPerTopic": {
            "title": "🔖 Max Reels per topic",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Keeps one hot topic from filling the whole list: at most this many Reels of each topic (the best by Sort).",
            "default": 25
          },
          "sortBy": {
            "title": "↕️ Sort",
            "enum": [
              "fastest",
              "plays",
              "likes",
              "comments",
              "newest"
            ],
            "type": "string",
            "description": "Order of the Reels, and which ones are kept when there are more than Max Reels.",
            "default": "fastest"
          },
          "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. Reels whose author hides likes are left out when this is set. 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 'all-trends' and 'pop-culture'). Empty = default."
          },
          "maxConcurrency": {
            "title": "⚡ Topics at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many topics are read 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}