{
  "openapi": "3.0.1",
  "info": {
    "title": "Viral Content Pattern Miner",
    "version": "2.0",
    "x-build-id": "BcCH2XDQFqaD5NOB7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayhermes~viral-content-pattern-miner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayhermes-viral-content-pattern-miner",
        "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/kayhermes~viral-content-pattern-miner/runs": {
      "post": {
        "operationId": "runs-sync-kayhermes-viral-content-pattern-miner",
        "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/kayhermes~viral-content-pattern-miner/run-sync": {
      "post": {
        "operationId": "run-sync-kayhermes-viral-content-pattern-miner",
        "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": {
          "posts": {
            "title": "Post records",
            "type": "array",
            "description": "At least three posts; 20 or more is recommended. Include views, engagement metrics, text and content attributes.",
            "default": [
              {
                "postId": "p1",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-01T14:00:00Z",
                "caption": "3 mistakes nobody tells you. Save this guide.",
                "hookText": "3 mistakes nobody tells you",
                "hashtags": [
                  "growth",
                  "tips"
                ],
                "durationSeconds": 18,
                "format": "talking-head",
                "audioName": "trend-audio",
                "followersAtPost": 10000,
                "views": 180000,
                "likes": 28000,
                "comments": 2200,
                "shares": 7000,
                "saves": 5000
              },
              {
                "postId": "p2",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-02T14:00:00Z",
                "caption": "4 mistakes nobody tells you. Save this guide.",
                "hookText": "4 mistakes nobody tells you",
                "hashtags": [
                  "growth",
                  "tips"
                ],
                "durationSeconds": 18,
                "format": "talking-head",
                "audioName": "trend-audio",
                "followersAtPost": 10000,
                "views": 190000,
                "likes": 29000,
                "comments": 2200,
                "shares": 7000,
                "saves": 5000
              },
              {
                "postId": "p3",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-03T14:00:00Z",
                "caption": "5 mistakes nobody tells you. Save this guide.",
                "hookText": "5 mistakes nobody tells you",
                "hashtags": [
                  "growth",
                  "tips"
                ],
                "durationSeconds": 18,
                "format": "talking-head",
                "audioName": "trend-audio",
                "followersAtPost": 10000,
                "views": 200000,
                "likes": 30000,
                "comments": 2200,
                "shares": 7000,
                "saves": 5000
              },
              {
                "postId": "p4",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-04T14:00:00Z",
                "caption": "6 mistakes nobody tells you. Save this guide.",
                "hookText": "6 mistakes nobody tells you",
                "hashtags": [
                  "growth",
                  "tips"
                ],
                "durationSeconds": 18,
                "format": "talking-head",
                "audioName": "trend-audio",
                "followersAtPost": 10000,
                "views": 210000,
                "likes": 31000,
                "comments": 2200,
                "shares": 7000,
                "saves": 5000
              },
              {
                "postId": "p5",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-05T14:00:00Z",
                "caption": "A normal day at work with a short update.",
                "hookText": "A normal day at work",
                "hashtags": [],
                "durationSeconds": 75,
                "format": "vlog",
                "audioName": "original",
                "followersAtPost": 10000,
                "views": 9000,
                "likes": 400,
                "comments": 20,
                "shares": 18,
                "saves": 10
              },
              {
                "postId": "p6",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-06T14:00:00Z",
                "caption": "A normal day at work with a short update.",
                "hookText": "A normal day at work",
                "hashtags": [],
                "durationSeconds": 75,
                "format": "vlog",
                "audioName": "original",
                "followersAtPost": 10000,
                "views": 9250,
                "likes": 400,
                "comments": 20,
                "shares": 18,
                "saves": 10
              },
              {
                "postId": "p7",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-07T14:00:00Z",
                "caption": "A normal day at work with a short update.",
                "hookText": "A normal day at work",
                "hashtags": [],
                "durationSeconds": 75,
                "format": "vlog",
                "audioName": "original",
                "followersAtPost": 10000,
                "views": 9500,
                "likes": 400,
                "comments": 20,
                "shares": 18,
                "saves": 10
              },
              {
                "postId": "p8",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-08T14:00:00Z",
                "caption": "A normal day at work with a short update.",
                "hookText": "A normal day at work",
                "hashtags": [],
                "durationSeconds": 75,
                "format": "vlog",
                "audioName": "original",
                "followersAtPost": 10000,
                "views": 9750,
                "likes": 400,
                "comments": 20,
                "shares": 18,
                "saves": 10
              },
              {
                "postId": "p9",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-09T14:00:00Z",
                "caption": "A normal day at work with a short update.",
                "hookText": "A normal day at work",
                "hashtags": [],
                "durationSeconds": 75,
                "format": "vlog",
                "audioName": "original",
                "followersAtPost": 10000,
                "views": 10000,
                "likes": 400,
                "comments": 20,
                "shares": 18,
                "saves": 10
              },
              {
                "postId": "p10",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-10T14:00:00Z",
                "caption": "A normal day at work with a short update.",
                "hookText": "A normal day at work",
                "hashtags": [],
                "durationSeconds": 75,
                "format": "vlog",
                "audioName": "original",
                "followersAtPost": 10000,
                "views": 10250,
                "likes": 400,
                "comments": 20,
                "shares": 18,
                "saves": 10
              },
              {
                "postId": "p11",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-11T14:00:00Z",
                "caption": "A normal day at work with a short update.",
                "hookText": "A normal day at work",
                "hashtags": [],
                "durationSeconds": 75,
                "format": "vlog",
                "audioName": "original",
                "followersAtPost": 10000,
                "views": 10500,
                "likes": 400,
                "comments": 20,
                "shares": 18,
                "saves": 10
              },
              {
                "postId": "p12",
                "platform": "tiktok",
                "creatorId": "creator-1",
                "publishedAt": "2026-07-12T14:00:00Z",
                "caption": "A normal day at work with a short update.",
                "hookText": "A normal day at work",
                "hashtags": [],
                "durationSeconds": 75,
                "format": "vlog",
                "audioName": "original",
                "followersAtPost": 10000,
                "views": 10750,
                "likes": 400,
                "comments": 20,
                "shares": 18,
                "saves": 10
              }
            ]
          },
          "datasetId": {
            "title": "Source Dataset ID",
            "type": "string",
            "description": "Provide Source Dataset ID."
          },
          "sourceUrls": {
            "title": "CSV or JSON source URLs",
            "type": "array",
            "description": "Provide CSV or JSON source URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "options": {
            "title": "Mining options",
            "type": "object",
            "description": "Control topPercent (5-50), minSupport, and minimumLift.",
            "default": {
              "topPercent": 20,
              "minSupport": 3,
              "minimumLift": 1.15
            }
          },
          "maxItems": {
            "title": "Maximum posts",
            "minimum": 3,
            "maximum": 100000,
            "type": "integer",
            "description": "Provide Maximum posts.",
            "default": 10000
          },
          "webhookUrl": {
            "title": "Completion webhook",
            "type": "string",
            "description": "Provide Completion webhook."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}