{
  "openapi": "3.0.1",
  "info": {
    "title": "Social Content Repurposing Opportunity Finder",
    "version": "2.0",
    "x-build-id": "JJVZxh6fbrt6anqp5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayhermes~social-content-repurposing-opportunity-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayhermes-social-content-repurposing-opportunity-finder",
        "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~social-content-repurposing-opportunity-finder/runs": {
      "post": {
        "operationId": "runs-sync-kayhermes-social-content-repurposing-opportunity-finder",
        "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~social-content-repurposing-opportunity-finder/run-sync": {
      "post": {
        "operationId": "run-sync-kayhermes-social-content-repurposing-opportunity-finder",
        "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": {
          "contents": {
            "title": "contents",
            "type": "array",
            "description": "Ranks content assets for specific repurposing formats using normalized performance, freshness, evergreen value, rights, asset availability, target fit, and duplicate-format prevention.",
            "default": [
              {
                "contentId": "video-101",
                "title": "How we cut churn by 31%",
                "platform": "youtube",
                "contentType": "long-video",
                "publishedAt": "2026-07-01T12:00:00Z",
                "followers": 18000,
                "views": 48000,
                "likes": 3100,
                "comments": 420,
                "shares": 620,
                "saves": 890,
                "completionRate": 0.67,
                "retentionRate": 0.59,
                "evergreenScore": 0.9,
                "uniqueInsightScore": 0.9,
                "businessValueScore": 0.9,
                "bestHook": "Most churn programs start too late.",
                "transcript": "Most churn programs start too late. We show three retention experiments, pricing lessons, and customer interview evidence.",
                "topics": [
                  "retention",
                  "pricing"
                ],
                "rights": {
                  "allowRepurposing": true,
                  "paidMedia": false
                },
                "formatsAlreadyUsed": [
                  "newsletter"
                ]
              },
              {
                "contentId": "ugc-77",
                "title": "Customer testimonial",
                "platform": "instagram",
                "contentType": "testimonial",
                "publishedAt": "2026-07-10T12:00:00Z",
                "followers": 7000,
                "views": 21000,
                "likes": 1300,
                "comments": 110,
                "shares": 180,
                "saves": 240,
                "completionRate": 0.74,
                "evergreenScore": 0.7,
                "uniqueInsightScore": 0.55,
                "businessValueScore": 0.95,
                "transcript": "The onboarding checklist saved our team six hours every week.",
                "rights": {
                  "allowRepurposing": true,
                  "paidMedia": true
                }
              }
            ]
          },
          "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": "Analysis options",
            "type": "object",
            "description": "Provide Analysis options.",
            "default": {
              "asOfDate": "2026-07-14T00:00:00Z",
              "targetTopics": [
                "retention",
                "pricing",
                "onboarding"
              ],
              "targetPlatforms": [
                "tiktok",
                "instagram",
                "linkedin",
                "youtube"
              ],
              "minimumOpportunityScore": 45
            }
          },
          "stateStoreName": {
            "title": "Optional named state store",
            "type": "string",
            "description": "Provide Optional named state store."
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Provide Maximum records.",
            "default": 10000
          },
          "webhookUrl": {
            "title": "Alert or completion webhook",
            "type": "string",
            "description": "Provide Alert or 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}