{
  "openapi": "3.0.1",
  "info": {
    "title": "BVAL: Brand Deal Rate Calculator for Creators",
    "description": "Paste a brand offer, get the verdict: fair rate, itemised usage, whitelisting and exclusivity, walk-away/floor/ask, and a counter-offer email. Instagram, TikTok, YouTube.",
    "version": "0.1",
    "x-build-id": "FcVXGLVttaLZd1xGJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agupta1~bval/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agupta1-bval",
        "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/agupta1~bval/runs": {
      "post": {
        "operationId": "runs-sync-agupta1-bval",
        "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/agupta1~bval/run-sync": {
      "post": {
        "operationId": "run-sync-agupta1-bval",
        "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",
        "required": [
          "platform",
          "handle"
        ],
        "properties": {
          "platform": {
            "title": "Platform",
            "enum": [
              "instagram",
              "tiktok",
              "youtube"
            ],
            "type": "string",
            "description": "Where the sponsored post goes. Each platform is priced on its own metric: Instagram Reel plays, TikTok plays, YouTube views on videos 30+ days old.",
            "default": "instagram"
          },
          "handle": {
            "title": "Creator handle or profile link",
            "type": "string",
            "description": "For example @creator or https://www.instagram.com/creator/. The account must be public. BVAL reads its last ~30 posts to get real median views."
          },
          "niche": {
            "title": "Content niche",
            "enum": [
              "lifestyle",
              "finance",
              "business_saas",
              "tech",
              "education",
              "health",
              "health_credentialed",
              "fitness",
              "beauty",
              "fashion",
              "travel",
              "food",
              "parenting",
              "entertainment",
              "gaming",
              "other"
            ],
            "type": "string",
            "description": "Brands pay more per view in some niches: finance 1.9x, tech 1.45x, lifestyle 1.0x, gaming 0.55x. Pick the closest.",
            "default": "lifestyle"
          },
          "market": {
            "title": "Audience's main country",
            "type": "string",
            "description": "Where most of the creator's audience lives (ISO country code). The same views are worth more to brands in some countries. Pick a suggestion or type any code (e.g. FR, JP, NG); unlisted countries use their regional rate. GLOBAL = US benchmarks.",
            "default": "GLOBAL"
          },
          "offer": {
            "title": "The brand's offer",
            "required": [],
            "type": "object",
            "description": "What the brand is paying. No offer yet? Tick the first box and BVAL tells you what to charge.",
            "properties": {
              "noOffer": {
                "title": "No offer yet: suggest what I should charge",
                "type": "boolean",
                "editor": "checkbox",
                "default": false,
                "description": "Tick if the brand hasn't named a fee, or you're pitching first. The offer amount is ignored. You still get a price for whatever you fill in below (your own package), plus BVAL's recommended rate card: price per post, what each extra adds, and Starter / Standard / Premium packages."
              },
              "brandName": {
                "title": "Brand name",
                "type": "string",
                "editor": "textfield",
                "description": "Used to address the counter-offer email."
              },
              "amount": {
                "title": "Offer amount (whole deal)",
                "type": "integer",
                "editor": "number",
                "minimum": 0,
                "description": "The total fee the brand offered for everything below."
              },
              "currency": {
                "title": "Currency",
                "type": "string",
                "editor": "select",
                "enum": [
                  "USD",
                  "INR",
                  "GBP",
                  "EUR",
                  "BRL",
                  "MXN",
                  "CAD",
                  "AUD",
                  "IDR",
                  "JPY",
                  "PHP"
                ],
                "default": "USD",
                "description": "Currency of the offer. Converted at a dated exchange rate."
              },
              "productOnly": {
                "title": "Product only, no fee",
                "type": "boolean",
                "editor": "checkbox",
                "default": false,
                "description": "Tick if the brand offers only free product (gifted)."
              }
            },
            "additionalProperties": false
          },
          "deliverables": {
            "title": "What the brand wants you to post",
            "type": "array",
            "description": "Add one row per content type. Leave empty for one main post (Reel, TikTok video or YouTube integration). 2 items get 10% off, 3+ get 15%.",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "title": "Content type",
                  "type": "string",
                  "editor": "select",
                  "enum": [
                    "instagram_reel",
                    "instagram_story_frame",
                    "instagram_static_post",
                    "instagram_carousel",
                    "tiktok_video",
                    "youtube_integration",
                    "youtube_mention_15_30s",
                    "youtube_dedicated",
                    "youtube_short"
                  ],
                  "enumTitles": [
                    "Instagram · Reel",
                    "Instagram · Story frame",
                    "Instagram · Feed post",
                    "Instagram · Carousel",
                    "TikTok · Video",
                    "YouTube · Integration (60-90s mention)",
                    "YouTube · Short mention (15-30s)",
                    "YouTube · Dedicated video",
                    "YouTube · Short"
                  ],
                  "description": "Must match the platform chosen above."
                },
                "qty": {
                  "title": "How many",
                  "type": "integer",
                  "editor": "number",
                  "minimum": 1,
                  "maximum": 20,
                  "default": 1,
                  "description": "Number of pieces of this type."
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false
            }
          },
          "rights": {
            "title": "Rights the brand is asking for",
            "required": [],
            "type": "object",
            "description": "These clauses are where deals get underpriced. Each is priced as its own line. Leave at 0 if the brand didn't ask.",
            "properties": {
              "organicUsageDays": {
                "title": "Brand can repost it on its own channels (days)",
                "type": "integer",
                "description": "Reposting on the brand's Instagram/website/email. 0 = not asked.",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "paidUsageDays": {
                "title": "Brand can run it as its own ads (days)",
                "type": "integer",
                "description": "The brand uses your content in ads from its own account. 0 = not asked.",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "whitelistingDays": {
                "title": "Ads through your handle: Partnership / Spark Ads (days)",
                "type": "integer",
                "description": "The brand runs ads from your account (Meta Partnership Ads on Instagram, Spark Ads on TikTok). Not available on YouTube. 0 = not asked.",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "adSpendUsd": {
                "title": "Planned ad spend behind those ads (USD)",
                "type": "integer",
                "description": "Optional. If known, the ads fee is at least 3% of ad spend.",
                "editor": "number",
                "minimum": 0
              },
              "perpetualRights": {
                "title": "Rights forever (perpetual)",
                "type": "boolean",
                "editor": "checkbox",
                "default": false,
                "description": "Tick if the contract asks to use the content forever."
              },
              "exclusivityDays": {
                "title": "You can't work with competitors for (days)",
                "type": "integer",
                "description": "Up to 7 days around the post is normally free; longer is priced.",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "exclusivityScope": {
                "title": "Exclusivity covers",
                "type": "string",
                "editor": "select",
                "enum": [
                  "category",
                  "full"
                ],
                "enumTitles": [
                  "Direct competitors only",
                  "All other brands (priced 2x)"
                ],
                "default": "category",
                "description": "Category = only competing brands; full = no other brands at all."
              }
            },
            "additionalProperties": false
          },
          "extras": {
            "title": "Production extras",
            "required": [],
            "type": "object",
            "description": "Extra work or placements beyond the post itself. Leave defaults if not asked.",
            "properties": {
              "rushHours": {
                "title": "Deadline in hours (0 = normal timeline)",
                "type": "integer",
                "description": "Under 72h adds +35%, under 24h +50%.",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "revisionRounds": {
                "title": "Revision rounds requested",
                "type": "integer",
                "description": "One round is included; each extra round is priced.",
                "editor": "number",
                "minimum": 0,
                "default": 1
              },
              "rawFootage": {
                "title": "Raw / unedited footage",
                "type": "boolean",
                "editor": "checkbox",
                "default": false,
                "description": "Brand wants the source files (+25%)."
              },
              "crossPostPlatforms": {
                "title": "Also post on other platforms (count)",
                "type": "integer",
                "description": "Each extra platform for the same content adds 25%.",
                "editor": "number",
                "minimum": 0,
                "maximum": 5,
                "default": 0
              },
              "linkInBioDays": {
                "title": "Link in bio (days)",
                "type": "integer",
                "description": "Instagram and TikTok only.",
                "editor": "number",
                "minimum": 0,
                "default": 0
              },
              "storyLinkSticker": {
                "title": "Story link sticker",
                "type": "boolean",
                "editor": "checkbox",
                "default": false,
                "description": "Instagram only."
              },
              "pinnedCommentLink": {
                "title": "Pinned-comment link",
                "type": "boolean",
                "editor": "checkbox",
                "default": false,
                "description": "YouTube only. A description link is always included."
              }
            },
            "additionalProperties": false
          },
          "contract": {
            "title": "Contract terms",
            "required": [],
            "type": "object",
            "description": "Payment and legal terms BVAL checks for red flags.",
            "properties": {
              "paymentTermsDays": {
                "title": "Paid how many days after delivery (Net days)",
                "type": "integer",
                "description": "Over 60 is flagged.",
                "editor": "number",
                "minimum": 0,
                "default": 30
              },
              "depositPct": {
                "title": "Upfront deposit (%)",
                "type": "integer",
                "description": "Under 50% is flagged.",
                "editor": "number",
                "minimum": 0,
                "maximum": 100,
                "default": 50
              },
              "aiTrainingClause": {
                "title": "AI training / likeness clause",
                "type": "boolean",
                "editor": "checkbox",
                "default": false,
                "description": "Tick if the brand may use your content or likeness to train AI."
              }
            },
            "additionalProperties": false
          },
          "outputCurrency": {
            "title": "Show prices in",
            "enum": [
              "USD",
              "LOCAL"
            ],
            "type": "string",
            "description": "Local currency works for the named countries (INR, GBP, EUR, BRL, IDR, MXN, CAD).",
            "default": "USD"
          },
          "generateEmail": {
            "title": "Write the counter-offer email",
            "type": "boolean",
            "description": "A ready-to-send reply that uses only the computed numbers (+$0.20).",
            "default": true
          },
          "creatorName": {
            "title": "Your name for the email sign-off",
            "type": "string",
            "description": "Defaults to the profile's display name."
          },
          "sendReportTo": {
            "title": "Email me the result (optional)",
            "pattern": "^$|^[^@\\s,;]+@[^@\\s,;]+\\.[^@\\s,;]+$",
            "type": "string",
            "description": "The email address of your Apify account. BVAL sends you the verdict, the price range, the counter-offer email ready to copy, and a link to the full report. Apify only delivers to your own account's address, so other addresses are skipped. The address is used only to send this email and is not saved in the results."
          },
          "manualMetrics": {
            "title": "Use my own numbers instead of scraping",
            "required": [],
            "type": "object",
            "description": "Fill this to skip scraping (cheaper, instant), e.g. to re-price the same creator with different terms.",
            "properties": {
              "followers": {
                "title": "Followers / subscribers",
                "type": "integer",
                "description": "Sets the follower tier.",
                "editor": "number",
                "minimum": 0
              },
              "medianViews": {
                "title": "Median views per post",
                "type": "integer",
                "description": "Typical views of a recent post (Reel plays, TikTok plays or YouTube views).",
                "editor": "number",
                "minimum": 0
              },
              "engagementRate": {
                "title": "Engagement rate (0-1)",
                "type": "number",
                "editor": "number",
                "minimum": 0,
                "maximum": 1,
                "description": "Likes + comments divided by views, e.g. 0.035 for 3.5%."
              },
              "medianShortsViews": {
                "title": "Median YouTube Shorts views",
                "type": "integer",
                "description": "Only for YouTube deals that include Shorts.",
                "editor": "number",
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "llmModel": {
            "title": "Email AI model (optional)",
            "type": "string",
            "description": "OpenRouter model ID used through Apify's OpenRouter proxy. Leave empty for the default."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}