{
  "openapi": "3.0.1",
  "info": {
    "title": "Influencer Rate Calculator & Rate Card Generator (YT/IG/TT)",
    "description": "Creator handle or metrics in; a sponsorship rate card out: low/mid/high per format with cited CPM sources and authenticity adjustment. $0.015 per card.",
    "version": "2.0",
    "x-build-id": "JnDJGyzwLGmqd8xCC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apricot_blackberry~rate-card-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apricot_blackberry-rate-card-generator",
        "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/apricot_blackberry~rate-card-generator/runs": {
      "post": {
        "operationId": "runs-sync-apricot_blackberry-rate-card-generator",
        "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/apricot_blackberry~rate-card-generator/run-sync": {
      "post": {
        "operationId": "run-sync-apricot_blackberry-rate-card-generator",
        "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": {
          "creators": {
            "title": "Creators",
            "type": "array",
            "description": "Creators to price, as a JSON array. Each object: {platform: youtube | instagram | tiktok, handle, niche?, followers?, avgViews?, recentViews?[], authenticityScore? (0-100)}. A YouTube handle alone is enough (public data is fetched, no key needed). Instagram and TikTok need followers plus avgViews or recentViews. Example: [{\"platform\": \"youtube\", \"handle\": \"@mkbhd\", \"niche\": \"tech\"}]"
          },
          "datasetId": {
            "title": "Dataset of creators",
            "type": "string",
            "description": "Optional ID of an Apify dataset whose items hold creator metrics (same fields as Creators, or the output of the Fake Follower Checker / Audience Authenticity Audit actor). Error items are skipped. Leave empty otherwise. Example: aBcDeFgHiJkLmNoPq",
            "default": ""
          },
          "defaultNiche": {
            "title": "Default niche",
            "enum": [
              "finance",
              "tech",
              "business",
              "education",
              "health_fitness",
              "beauty_fashion",
              "food",
              "travel",
              "gaming",
              "entertainment",
              "general"
            ],
            "type": "string",
            "description": "Niche used when a creator has none and the legacy niche is auto. general uses the overall CPM range with low confidence. Example: tech",
            "default": "general"
          },
          "formats": {
            "title": "Formats",
            "type": "array",
            "description": "Which rate-card formats to return: yt_integration, yt_dedicated, yt_shorts, ig_reel, ig_story, ig_feed, tt_video. Empty (default) returns all formats of each creator's platform; formats that do not match a creator's platform are ignored. Example: [\"yt_integration\", \"yt_shorts\"]",
            "items": {
              "type": "string",
              "enum": [
                "yt_integration",
                "yt_dedicated",
                "yt_shorts",
                "ig_reel",
                "ig_story",
                "ig_feed",
                "tt_video"
              ],
              "enumTitles": [
                "YouTube integration",
                "YouTube dedicated video",
                "YouTube Shorts",
                "Instagram Reel",
                "Instagram Story",
                "Instagram feed post",
                "TikTok video"
              ]
            },
            "default": []
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "INR",
              "JPY",
              "BRL",
              "MXN"
            ],
            "type": "string",
            "description": "Output currency (ISO code). Benchmarks are USD; other currencies use a static approximate rate (not live FX) and say so in warnings. Example: USD",
            "default": "USD"
          },
          "computeAuthenticity": {
            "title": "Compute authenticity",
            "type": "boolean",
            "description": "When no authenticityScore is supplied and public YouTube data was fetched, score audience authenticity in-process and apply the 0.6-1.0 multiplier. No extra cost. Example: true",
            "default": true
          },
          "includeAddOns": {
            "title": "Include add-on multipliers",
            "type": "boolean",
            "description": "Return usage-rights (+20-30%) and exclusivity (+15-25%) multipliers as separate add-ons, never baked into the base rate. Example: true",
            "default": true
          },
          "youtubeApiKey": {
            "title": "YouTube Data API key (optional)",
            "type": "string",
            "description": "Optional: bring your own YouTube Data API v3 key for exact subscriber counts and duration-based Shorts detection. Encrypted, never logged or stored in results. Leave empty to use public pages and RSS. Example: AIzaSy... (39 characters)"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy for YouTube requests, in the standard proxy editor format. When neither this nor the legacy proxyConfig is set, Apify datacenter proxy is used. Example: {\"useApifyProxy\": true}"
          },
          "profiles": {
            "title": "Profile URLs (legacy v1)",
            "type": "array",
            "description": "Legacy v1 input, still supported: YouTube, Instagram or TikTok profile URLs. YouTube URLs are fetched keyless; Instagram and TikTok URLs return a METRICS_REQUIRED error row, so use Creators with metrics for those. Example: https://youtube.com/@mkbhd",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "niche": {
            "title": "Niche (legacy v1)",
            "type": "string",
            "description": "Legacy v1 input, still supported. auto detects the niche from channel keywords when possible; otherwise a niche name or synonym such as finance, personal finance, gaming. Example: tech",
            "default": "auto"
          },
          "includePackages": {
            "title": "Include packages (legacy v1)",
            "type": "boolean",
            "description": "Legacy v1 option, still supported. Add bundle totals such as Integration + Short. Bundles are plain sums of line items with no discount applied. Example: false",
            "default": false
          },
          "competitorAnalysis": {
            "title": "Competitor analysis (legacy v1, ignored)",
            "type": "boolean",
            "description": "Legacy v1 input. Still accepted so existing integrations do not break, but ignored in v2; a note is logged. Example: false",
            "default": false
          },
          "proxyConfig": {
            "title": "Proxy config (legacy v1)",
            "type": "object",
            "description": "Legacy v1 proxy object, still supported. Used only when Proxy configuration is not set. Example: {\"useApifyProxy\": true}"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}