{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Influencer Audit & Rate Calculator",
    "description": "Screen TikTok creators using explainable quality, engagement, consistency, and risk signals, then estimate a transparent sponsored-video rate from recent public performance.",
    "version": "0.1",
    "x-build-id": "PnPI9bpcev63ozatt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/funny_ground~tiktok-influencer-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-funny_ground-tiktok-influencer-audit",
        "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/funny_ground~tiktok-influencer-audit/runs": {
      "post": {
        "operationId": "runs-sync-funny_ground-tiktok-influencer-audit",
        "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/funny_ground~tiktok-influencer-audit/run-sync": {
      "post": {
        "operationId": "run-sync-funny_ground-tiktok-influencer-audit",
        "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": {
          "mode": {
            "title": "Run mode",
            "enum": [
              "collectAndAnalyze",
              "analysisOnly"
            ],
            "type": "string",
            "description": "Collect mode calls the owned TikTok creator-video Actor. Analysis-only mode reuses existing Apify datasets and starts no scraper.",
            "default": "collectAndAnalyze"
          },
          "creators": {
            "title": "TikTok creators",
            "minItems": 1,
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Usernames, @handles, or TikTok profile URLs. Required in collect mode. In analysis-only mode, creators can be inferred from video rows.",
            "items": {
              "type": "string"
            }
          },
          "videoDatasetIds": {
            "title": "Existing video Dataset IDs",
            "uniqueItems": true,
            "type": "array",
            "description": "Used in analysis-only mode. Each dataset may contain one or many creators from funny_ground/tiktok-creator-videos or a compatible schema.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "profileDatasetIds": {
            "title": "Optional profile Dataset IDs",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional datasets from funny_ground/tiktok-influencer-finder. Public profile stats are also resolved directly when possible.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "commentDatasetIds": {
            "title": "Optional comment Dataset IDs",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional existing datasets from funny_ground/tiktok-comments-scraper. Reusing them adds comment-quality signals without a new scrape.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "audienceDatasetIds": {
            "title": "Optional audience Dataset IDs",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional existing follower-profile datasets. The Actor never requests a TikTok login cookie.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "depth": {
            "title": "Audit depth",
            "enum": [
              "quick",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "Quick uses profile and video data only. Standard additionally collects a small comment sample. Deep only uses audience datasets you explicitly provide.",
            "default": "quick"
          },
          "maxVideos": {
            "title": "Videos per creator",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum recent videos collected and analyzed per creator. Twenty to thirty is normally enough for a robust median.",
            "default": 30
          },
          "analysisWindowDays": {
            "title": "Analysis window in days",
            "minimum": 30,
            "maximum": 730,
            "type": "integer",
            "description": "Prefer videos published within this many days. Older videos are used only when fewer than five recent valid videos exist.",
            "default": 180
          },
          "maxCommentVideos": {
            "title": "Videos sampled for comments",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Standard mode samples representative videos, not every video.",
            "default": 2
          },
          "commentsPerVideo": {
            "title": "Comments per sampled video",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "A small sample controls cost. Replies are not collected.",
            "default": 50
          },
          "brandKeywords": {
            "title": "Brand-fit keywords",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional niche, product, brand, or campaign keywords. When omitted, brand-fit scoring is marked unavailable rather than guessed.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "market": {
            "title": "Target market",
            "type": "string",
            "description": "Displayed as a pricing assumption. The initial model does not infer private audience demographics.",
            "default": "GLOBAL"
          },
          "niche": {
            "title": "Creator niche",
            "type": "string",
            "description": "Displayed as a pricing assumption. The initial model applies no hidden niche premium.",
            "default": "general"
          },
          "cpmLowUsd": {
            "title": "Low CPM benchmark (USD)",
            "minimum": 0.1,
            "maximum": 500,
            "type": "number",
            "description": "Override the low performance benchmark. Defaults to $5 per 1,000 expected views."
          },
          "cpmRecommendedUsd": {
            "title": "Recommended CPM benchmark (USD)",
            "minimum": 0.1,
            "maximum": 500,
            "type": "number",
            "description": "Override the central benchmark. Defaults to $10 per 1,000 expected views."
          },
          "cpmHighUsd": {
            "title": "High CPM benchmark (USD)",
            "minimum": 0.1,
            "maximum": 500,
            "type": "number",
            "description": "Override the high benchmark. Defaults to $15 per 1,000 expected views."
          },
          "minimumCreatorFeeUsd": {
            "title": "Minimum creator fee (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Production floor applied before optional rights. Set 0 to disable.",
            "default": 50
          },
          "productionFeeUsd": {
            "title": "Additional production fee (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Optional fixed creative-production cost added to each estimate.",
            "default": 0
          },
          "usageRightsDays": {
            "title": "Paid usage rights (days)",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Optional paid-media/content usage duration. 0 means organic post only.",
            "default": 0
          },
          "sparkAdsDays": {
            "title": "Spark Ads authorization (days)",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Optional Spark Ads authorization duration.",
            "default": 0
          },
          "exclusivityDays": {
            "title": "Category exclusivity (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Optional period during which the creator cannot promote competing brands.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max creator concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Bounds lightweight profile requests and child-Actor concurrency.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Profile request timeout",
            "minimum": 10,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each lightweight public profile metadata request.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}