{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Sales Research Pack Generator",
    "description": "Turn a list of company websites into structured, AI-ready sales research packs: company summary, key pages found, contact links, business signals, and an evidence URL behind every claim.",
    "version": "0.2",
    "x-build-id": "SChb252huWcxgd3zv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zerrouki-samir~ai-sales-research-pack-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zerrouki-samir-ai-sales-research-pack-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/zerrouki-samir~ai-sales-research-pack-generator/runs": {
      "post": {
        "operationId": "runs-sync-zerrouki-samir-ai-sales-research-pack-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/zerrouki-samir~ai-sales-research-pack-generator/run-sync": {
      "post": {
        "operationId": "run-sync-zerrouki-samir-ai-sales-research-pack-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",
        "required": [
          "companyUrls"
        ],
        "properties": {
          "companyUrls": {
            "title": "Company URLs",
            "maxItems": 100,
            "type": "array",
            "description": "One website per company — the homepage or any page on the domain. 'https://' is added automatically if missing. Duplicates (by root domain) are merged. Cap: 100 companies per run.",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerCompany": {
            "title": "Max pages per company",
            "minimum": 3,
            "maximum": 50,
            "type": "integer",
            "description": "Upper bound on pages fetched per domain (discovery + content pages combined). Controls cost, runtime, and load on the target site.",
            "default": 15
          },
          "crawlDepth": {
            "title": "Crawl depth",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Link-hops from the homepage that discovery will follow when the domain has no usable sitemap.",
            "default": 2
          },
          "pageCategoriesToPrioritize": {
            "title": "Page categories to prioritize",
            "type": "array",
            "description": "If maxPagesPerCompany is reached before every discovered page is fetched, pages in these categories are crawled first, in this order.",
            "default": [
              "home",
              "about",
              "product",
              "pricing",
              "team",
              "contact",
              "careers",
              "blog",
              "press",
              "case-studies"
            ],
            "items": {
              "type": "string"
            }
          },
          "renderingMode": {
            "title": "Rendering mode",
            "enum": [
              "auto",
              "static",
              "browser"
            ],
            "type": "string",
            "description": "auto (recommended): fetch with plain HTTP first and only escalate a domain to a headless browser when the static HTML looks JS-rendered (thin body, SPA shell). static: HTTP only — fastest and cheapest, fails on JS-only sites. browser: always render with a headless browser — slowest and most reliable on heavy front-ends.",
            "default": "auto"
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip paths disallowed by the site's robots.txt. Turning this off may violate the target site's terms of use.",
            "default": true
          },
          "requestTimeoutSecs": {
            "title": "Per-request timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time to wait for a single page fetch (static or browser) before giving up on it.",
            "default": 30
          },
          "maxCrawlBudgetPerCompanySecs": {
            "title": "Max time budget per company (seconds)",
            "minimum": 20,
            "maximum": 300,
            "type": "integer",
            "description": "Hard wall-clock cap on discovery + fetching for one company, so a single slow or hostile site cannot stall the whole run.",
            "default": 90
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of companies researched in parallel. Each company fetches its own pages one at a time.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy is strongly recommended. Datacenter proxies are fine for most marketing sites; switch a run to residential for domains that block datacenter IPs.",
            "default": {
              "useApifyProxy": true
            }
          },
          "enableAiSummary": {
            "title": "Enable AI summary",
            "type": "boolean",
            "description": "When on AND you supply an LLM API key, an LLM turns the extracted page text and signals into a natural-language summary, value proposition, target-customer guess, and outreach angles. With no key the pack still ships a heuristic summary — you are not charged for ai-summary-generated.",
            "default": true
          },
          "llmProvider": {
            "title": "LLM provider",
            "enum": [
              "anthropic",
              "openai",
              "xai",
              "none"
            ],
            "type": "string",
            "description": "Provider for the AI summary step. 'None' skips the AI step even if Enable AI summary is on.",
            "default": "anthropic"
          },
          "llmApiKey": {
            "title": "LLM API key",
            "type": "string",
            "description": "Your own key for the selected provider. Used only in-memory for the summary call; never logged or written to the dataset. Leave blank to force heuristic-only summaries."
          },
          "llmModel": {
            "title": "LLM model",
            "type": "string",
            "description": "Leave blank to use the default fast/cheap model for the selected provider (currently claude-haiku-4-5 for Anthropic, gpt-4o-mini for OpenAI, grok-build-0.1 for xAI)."
          },
          "includeRawText": {
            "title": "Include raw extracted text",
            "type": "boolean",
            "description": "Adds a rawText field with the cleaned full text of each crawled page to the output. Off by default — it can make the dataset large. Turn on if you plan to feed pages into your own downstream LLM.",
            "default": false
          },
          "outputLanguage": {
            "title": "Output language",
            "type": "string",
            "description": "Language the AI summary is written in (ISO 639-1 code). Structured/extracted fields are unaffected by this setting.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}