{
  "openapi": "3.0.1",
  "info": {
    "title": "Influencer Strategy Generator - AI-Powered Campaign Planning",
    "description": "Generate comprehensive influencer marketing strategies using AI. Creates campaign plans, budget allocations, content calendars, outreach templates & ROI projections based on your goals\nAI-Powered Strategy\nBudget Optimization\nContent Calendar\nOutreach Templates\nROI Projections\nInfluencer Briefs",
    "version": "1.0",
    "x-build-id": "WfZcrnyEMbVLbYUDN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alizarin_refrigerator-owner~influencer-strategy-generator---ai-powered-campaign-planning/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alizarin_refrigerator-owner-influencer-strategy-generator---ai-powered-campaign-planning",
        "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/alizarin_refrigerator-owner~influencer-strategy-generator---ai-powered-campaign-planning/runs": {
      "post": {
        "operationId": "runs-sync-alizarin_refrigerator-owner-influencer-strategy-generator---ai-powered-campaign-planning",
        "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/alizarin_refrigerator-owner~influencer-strategy-generator---ai-powered-campaign-planning/run-sync": {
      "post": {
        "operationId": "run-sync-alizarin_refrigerator-owner-influencer-strategy-generator---ai-powered-campaign-planning",
        "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": [
          "campaignGoal",
          "budget",
          "aiProvider"
        ],
        "properties": {
          "campaignGoal": {
            "title": "Campaign Goal",
            "enum": [
              "brand_awareness",
              "product_launch",
              "sales_conversion",
              "lead_generation",
              "app_installs",
              "event_promotion",
              "content_creation",
              "community_building",
              "reputation_management"
            ],
            "type": "string",
            "description": "Primary objective for your influencer campaign: brand_awareness (increase visibility), product_launch (launch new products), sales_conversion (drive sales), lead_generation (capture leads), app_installs (mobile downloads), event_promotion (promote events), content_creation (UGC), community_building (grow community), reputation_management (improve perception)",
            "default": "brand_awareness"
          },
          "budget": {
            "title": "Campaign Budget",
            "type": "object",
            "description": "Total budget for influencer partnerships",
            "properties": {
              "amount": {
                "title": "Amount",
                "description": "Total budget amount in the specified currency",
                "type": "number",
                "default": 10000
              },
              "currency": {
                "title": "Currency",
                "description": "Currency for the budget (USD, EUR, GBP, CAD, or AUD)",
                "type": "string",
                "enum": [
                  "USD",
                  "EUR",
                  "GBP",
                  "CAD",
                  "AUD"
                ],
                "default": "USD"
              }
            }
          },
          "targetAudience": {
            "title": "Target Audience",
            "type": "object",
            "description": "Who are you trying to reach?",
            "properties": {
              "ageRange": {
                "title": "Age Range",
                "description": "Target age range (e.g., 18-24, 25-34, 35-44)",
                "type": "string",
                "default": "25-34"
              },
              "gender": {
                "title": "Gender",
                "description": "Target gender: all, male, or female",
                "type": "string",
                "enum": [
                  "all",
                  "male",
                  "female"
                ],
                "default": "all"
              },
              "locations": {
                "title": "Locations",
                "description": "Target geographic locations (countries, cities, or regions)",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "interests": {
                "title": "Interests",
                "description": "Target audience interests (e.g., fitness, tech, fashion)",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "demographics": {
                "title": "Demographics Notes",
                "description": "Additional demographic notes about your target audience",
                "type": "string"
              }
            }
          },
          "brandInfo": {
            "title": "Brand Information",
            "type": "object",
            "description": "Tell us about your brand",
            "properties": {
              "name": {
                "title": "Brand Name",
                "type": "string",
                "description": "Your brand or company name"
              },
              "industry": {
                "title": "Industry",
                "type": "string",
                "description": "Your industry (e.g., fashion, tech, health)"
              },
              "description": {
                "title": "Description",
                "type": "string",
                "description": "Brief description of your brand"
              },
              "values": {
                "title": "Brand Values",
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Core brand values (e.g., sustainability, innovation)"
              },
              "tone": {
                "title": "Tone",
                "type": "string",
                "enum": [
                  "professional",
                  "casual",
                  "fun",
                  "inspirational",
                  "educational",
                  "luxury"
                ],
                "description": "Brand voice tone: professional, casual, fun, inspirational, educational, or luxury"
              },
              "productService": {
                "title": "Product/Service",
                "type": "string",
                "description": "Main product or service to promote"
              },
              "uniqueSellingPoints": {
                "title": "USPs",
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Key differentiators and unique selling points"
              },
              "website": {
                "title": "Website",
                "type": "string",
                "description": "Your brand website URL"
              },
              "competitors": {
                "title": "Competitors",
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Main competitors in your space"
              }
            }
          },
          "platforms": {
            "title": "Target Platforms",
            "type": "array",
            "description": "Which platforms to focus on",
            "items": {
              "type": "string",
              "enum": [
                "instagram",
                "tiktok",
                "youtube",
                "linkedin",
                "twitter"
              ]
            },
            "default": [
              "instagram",
              "tiktok"
            ]
          },
          "campaignDuration": {
            "title": "Campaign Duration",
            "enum": [
              "1_week",
              "2_weeks",
              "4_weeks",
              "3_months",
              "6_months",
              "12_months"
            ],
            "type": "string",
            "description": "How long will the campaign run? Options: 1_week (sprint), 2_weeks, 4_weeks (1 month), 3_months, 6_months, 12_months",
            "default": "4_weeks"
          },
          "influencerTiers": {
            "title": "Influencer Tiers to Include",
            "type": "array",
            "description": "Which influencer size tiers to target",
            "items": {
              "type": "string",
              "enum": [
                "nano",
                "micro",
                "mid",
                "macro",
                "mega"
              ]
            },
            "default": [
              "micro",
              "mid"
            ]
          },
          "contentTypes": {
            "title": "Content Types",
            "type": "array",
            "description": "What type of content should influencers create?",
            "items": {
              "type": "string",
              "enum": [
                "static_post",
                "reel_video",
                "story",
                "live_stream",
                "unboxing",
                "tutorial",
                "review",
                "takeover",
                "giveaway",
                "challenge"
              ]
            },
            "default": [
              "static_post",
              "reel_video",
              "story"
            ]
          },
          "analyzerDatasetId": {
            "title": "Analyzer Dataset ID",
            "type": "string",
            "description": "Dataset ID from influencer-analyzer to use for strategy"
          },
          "discoveryDatasetId": {
            "title": "Discovery Dataset ID",
            "type": "string",
            "description": "Dataset ID from influencer-discovery to use for strategy"
          },
          "aiProvider": {
            "title": "AI Provider",
            "enum": [
              "openai",
              "anthropic"
            ],
            "type": "string",
            "description": "AI provider for strategy generation (BYOK): openai (GPT-4) or anthropic (Claude)",
            "default": "openai"
          },
          "openaiApiKey": {
            "title": "OpenAI API Key",
            "type": "string",
            "description": "Your OpenAI API key"
          },
          "anthropicApiKey": {
            "title": "Anthropic API Key",
            "type": "string",
            "description": "Your Anthropic API key"
          },
          "generateOutreachTemplates": {
            "title": "Generate Outreach Templates",
            "type": "boolean",
            "description": "Create personalized outreach message templates",
            "default": true
          },
          "generateContentCalendar": {
            "title": "Generate Content Calendar",
            "type": "boolean",
            "description": "Create a posting schedule for the campaign",
            "default": true
          },
          "generateBriefs": {
            "title": "Generate Influencer Briefs",
            "type": "boolean",
            "description": "Create detailed creative briefs for influencers",
            "default": true
          },
          "demoMode": {
            "title": "Demo Mode",
            "type": "boolean",
            "description": "Run with sample strategy (no AI calls)",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional webhook URL to receive results when strategy generation completes"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}